makefile-static-blog
所属分类:前端开发
开发工具:JavaScript
文件大小:0KB
下载次数:0
上传日期:2022-12-08 17:44:07
上 传 者:
sh-1993
说明: 我的编程博客的新版本,使用定制的静态站点生成器(Makefile)
(New version of my programming blog which uses a bespoke static site generator (a Makefile))
文件列表:
.editorconfig (131, 2020-03-28)
Makefile (1310, 2020-03-28)
build/ (0, 2020-03-28)
build/ejs-helper.js (427, 2020-03-28)
build/ejs-index-helper.js (998, 2020-03-28)
build/marked-helper.js (310, 2020-03-28)
build/node-sass-helper.js (256, 2020-03-28)
build/strip-frontmatter.js (308, 2020-03-28)
package-lock.json (115824, 2020-03-28)
package.json (476, 2020-03-28)
src/ (0, 2020-03-28)
src/drafts/ (0, 2020-03-28)
src/favicon.ico (1150, 2020-03-28)
src/posts/ (0, 2020-03-28)
src/styles/ (0, 2020-03-28)
src/styles/main.scss (1441, 2020-03-28)
src/templates/ (0, 2020-03-28)
src/templates/index.ejs (523, 2020-03-28)
src/templates/partials/ (0, 2020-03-28)
src/templates/partials/footer.ejs (110, 2020-03-28)
src/templates/partials/header.ejs (766, 2020-03-28)
src/templates/post.ejs (134, 2020-03-28)
# makefile-static-blog
This repo will house my own blog as it grows and evolves.
Once I have things set up the way I want them, I will extract some kind of starter template / scaffolding from this repo without all the 'Dave' branding :) so other users can build blogs based on this setup.
## Requirements
Make sure to have these installed on your system:
- GNU Make
- NodeJS
## If you want to use Sass
The Makefile has a `USE_SASS` flag. Set it to `1` and call your main stylesheet `main.scss`. Otherwise to use regular CSS and skip the compilation step, set it to `0` (or anything else, or comment it out, or whatever) and call your main stylesheet `main.css`.
## Build the blog
First build:
```
npm i
make
```
Subsequent builds:
```
make clean && make
```
The generated site files will appear in `/dist`.
近期下载者:
相关文件:
收藏者: