先按此文http://briteming.blogspot.jp/2016/07/hakyll.html,安装stack,ghc.
cd /usr/local
git clone https://github.com/birdgg/birdgg.github.io
cd birdgg.github.io
root@AR:/usr/local/birdgg.github.io# stack build
会显示:
...
Linking .stack-work/dist/i386-linux/Cabal-1.24.0.0/build/site/site ...
blog-0.1.0.0: copy/register
Installing executable(s) in
/usr/local/birdgg.github.io/.stack-work/install/i386-linux/nightly-2016-12-14/8.0.1/bin
Completed 140 action(s).
root@AR:/usr/local/birdgg.github.io# .stack-work/dist/i386-linux/Cabal-1.24.0.0/build/site/site build
root@AR:/usr/local/birdgg.github.io# ls
Main.hs _cache blog.cabal css images js posts templates
Setup.hs _site circle.yml files index.md pages stack.yaml
root@AR:/usr/local/birdgg.github.io# cd _site
root@AR:/usr/local/birdgg.github.io/_site# ls
archive.html css files images index.html js pages posts tags
root@AR:/usr/local/birdgg.github.io/_site#
(可见/usr/local/birdgg.github.io/_site就是静态网站的根目录)
新建源帖:
root@AR:/usr/local/birdgg.github.io/_site# cd ../posts
root@AR:/usr/local/birdgg.github.io/posts# nano 2017-01-24-test-1.markdown
root@AR:/usr/local/birdgg.github.io/posts# cat 2017-01-24-test-1.markdown
---
tags: misc1, misc2, misc3
title: 测试1
---
这是测试1.
看看如何?
root@AR:/usr/local/birdgg.github.io/posts# cd ..
root@AR:/usr/local/birdgg.github.io# .stack-work/dist/i386-linux/Cabal-1.24.0.0/build/site/site build
演示网站:http://bgg.bright.biz.st, http://bgg.bright.biz.st/archive.html
项目地址:https://github.com/birdgg/birdgg.github.io
cd /usr/local
git clone https://github.com/birdgg/birdgg.github.io
cd birdgg.github.io
root@AR:/usr/local/birdgg.github.io# stack build
会显示:
...
Linking .stack-work/dist/i386-linux/Cabal-1.24.0.0/build/site/site ...
blog-0.1.0.0: copy/register
Installing executable(s) in
/usr/local/birdgg.github.io/.stack-work/install/i386-linux/nightly-2016-12-14/8.0.1/bin
Completed 140 action(s).
root@AR:/usr/local/birdgg.github.io# .stack-work/dist/i386-linux/Cabal-1.24.0.0/build/site/site build
root@AR:/usr/local/birdgg.github.io# ls
Main.hs _cache blog.cabal css images js posts templates
Setup.hs _site circle.yml files index.md pages stack.yaml
root@AR:/usr/local/birdgg.github.io# cd _site
root@AR:/usr/local/birdgg.github.io/_site# ls
archive.html css files images index.html js pages posts tags
root@AR:/usr/local/birdgg.github.io/_site#
(可见/usr/local/birdgg.github.io/_site就是静态网站的根目录)
新建源帖:
root@AR:/usr/local/birdgg.github.io/_site# cd ../posts
root@AR:/usr/local/birdgg.github.io/posts# nano 2017-01-24-test-1.markdown
root@AR:/usr/local/birdgg.github.io/posts# cat 2017-01-24-test-1.markdown
---
tags: misc1, misc2, misc3
title: 测试1
---
这是测试1.
看看如何?
root@AR:/usr/local/birdgg.github.io/posts# cd ..
root@AR:/usr/local/birdgg.github.io# .stack-work/dist/i386-linux/Cabal-1.24.0.0/build/site/site build
演示网站:http://bgg.bright.biz.st, http://bgg.bright.biz.st/archive.html
项目地址:https://github.com/birdgg/birdgg.github.io
No comments:
Post a Comment