Giter Site home page Giter Site logo

homepage's Introduction

My Homepage

Saafo's Homepage

人类的本质是造轮子。

我的博客和随之诞生的辣鸡博客模板

技术架构

依赖:

结构:

  • index.htmlrss.xmlgenerator.py根据原始index.html/blog文件夹下的markdown文件生成的文件。每次添加新博客后需要手动运行。
  • blog-template.html为所有博客页面的框架页面,客户端通过读取服务器上的markdown博客文件blog-template.html实时渲染出博客页面。
  • /blog文件夹存放博客。
  • 评论系统由utterances提供。

使用方法

  • clone this repository
  • 全文搜索saafo.cc替换为您的域名,并将有必要修改的地方都修改掉。这是基于我的需求创建的仓库,所以没有做分离,鲁棒性不好。
  • pip install markdown
  • nginx配置:
    server{
                  listen 443 ssl;
                  server_name blog.saafo.cc;
                  location = / {
                          return 301 https://saafo.cc;
                  }
                  location ~* \.md$ {
                          root (这里放homepage文件夹目录);
                          try_files $uri =404;
                  }
                  location / {
                          root (这里放homepage文件夹目录);
                          try_files $uri /blog-template.html =404;
                  }
          }
    
  • 每次更新博客时将markdown文件放入/blog文件夹,然后运行generator.py

注意事项

  • Github Pages不兼容。如果要在其上使用需要修改js文件。
  • utterances目前处于墙的薛定谔态,有时会出现加载不出评论区的情况。

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.