Giter VIP home page Giter VIP logo

blog's Introduction

子舒的博客

分享生活和笔记!

在线访问:https://zishu.me

1.介绍

使用 Hugo 框架构建,在 GitHub 托管代码,Netlify 部署,CloudFlare 解析域名。

评论使用 giscus,基于 Discussions 构建而成。

博客文章数据保留版权,其他代码开源,可直接使用。

  • /content:博客文章数据
  • /themes:博客主题文件夹,多主题

2.运行博客

这是一个基于 Hugo 开源静态博客程序生成的项目,在运行本项目前,需要在你电脑中安装 Go 和 Hugo 环境。

将代码 clone 到本地,把 /content/ 目录下的文章清除,并且修改 config.yml 配置。

# 下载项目源码
git clone https://github.com/dlzmoe/blog.git
# 本地运行
hugo serve
# 打包构建
hugo

可以通过 Netlify 部署上传到 GitHub 仓库的代码。

3.插件脚本

1. 自动生成 md 文件,备份文章目录。

py toc.py

2. 设置不想在首页显示的分类

index.html 中:

  • 7 表示过滤完还显示 7 条,如果不写的话,可能会设置的数量;
  • weekly 表示要过滤的分类。
<!-- /layouts/index.html -->
{{ if and (not (in .Params.categories "weekly")) (lt $count 7) }}

4.联系我

如对博客内容,排版等有疑问、建议或者其他问题,欢迎给我邮件 ([email protected]) 或者在评论区留言 (https://zishu.me/message/)。

邮箱:

5.Star History

Star History Chart

6.LICENSE

开源协议:Apache-2.0 license

blog's People

Contributors

dlzmoe avatar anghunk1 avatar

Stargazers

zhaomeicheng avatar hqqich avatar Shixiaocaia avatar  avatar Zhazha_JiaYiZhen avatar F&H avatar  avatar 司徒仲豪 avatar  avatar

Watchers

 avatar

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.