站名“菠菜眾長”,取“兼收並蓄,博採眾長”之意。
博客基于 Hugo 和 FixIt 搭建,建站的初衷不是为了炫耀所知,而是记录无知。
博客内容主要以 Web 前端开发方向为主,分享一些有趣程序、技巧、开发教程、心情和学习记录等。
你可以通过我的微信公众号、GitHub 或 RSS 来订阅本博客。
博客相关源码:
本博客已部署到 Vercel 和 GitHub Pages,工作流如下图所示:
▸ .github/ # GitHub configuration
▸ .scripts/ # custom scripts
▸ .shell/ # shell commands for hugo project, entrance: hugo_main.sh
▸ archetypes/ # page archetypes (like scaffolds of archetypes)
▸ assets/ # css, js, third-party libraries etc.
▸ config/ # configuration files
▸ content/ # markdown files for hugo project
▸ private/ # private submodule for encrypted content
▸ data/ # blog data (allow: yaml, json, toml), e.g. friends.yml
▸ public/ # build directory
▸ static/ # static files, e.g. favicon.ico
▸ themes/ # theme submodules
首先点上 Star 😜,然后下载源码:
git clone --recursive git@github.com:Lruihao/hugo-blog.git && cd hugo-blog
下载源码后,有两种方法可以启动这个博客。
npm install
# build the blog
npm run build
# run a local debugging server with watch
npm run server
# run a local debugging server in production environment
npm run server:production
# update theme submodules
npm run update:theme
# Development environment
hugo server --disableFastRender --navigateToChanged --bind 0.0.0.0
# Production environment
hugo server --disableFastRender --navigateToChanged --environment production --bind 0.0.0.0
content/private
目录不在任何许可范围内