先按此文http://briteming.blogspot.jp/2016/07/hakyll.html,安装stack,ghc,HAKYLL.
cd /usr/local
git clone https://github.com/iomonad/inother.space
cd inother.space
root@AR:/usr/local/inother.space# ghc --make site.hs
root@AR:/usr/local/inother.space# ./site build
root@AR:/usr/local/inother.space# ls
404.html _site images posts site.o
README.md about.md index.html site stack.yaml
_cache bower.json inother-space.cabal site.hi templates
_drafts css js site.hs
root@AR:/usr/local/inother.space# cd _site
root@AR:/usr/local/inother.space/_site# ls
404 about archive css images index.html js posts rss.xml tags
root@AR:/usr/local/inother.space/_site#
(可见/usr/local/inother.space/_site就是静态网站的根目录)
新建源帖:
root@AR:/usr/local/inother.space/_site# cd ../posts
root@AR:/usr/local/inother.space/posts# nano 2017-01-24-test-1.markdown
root@AR:/usr/local/inother.space/posts# cat 2017-01-24-test-1.markdown
---
title: 测试1
tags: misc1, misc2, misc3
---
这是测试1.
看看如何?
root@AR:/usr/local/inother.space/posts# cd ..
root@AR:/usr/local/inother.space# ./site build
演示网站:http://is.bright.biz.st/
项目地址:https://github.com/iomonad/inother.space
cd /usr/local
git clone https://github.com/iomonad/inother.space
cd inother.space
root@AR:/usr/local/inother.space# ghc --make site.hs
root@AR:/usr/local/inother.space# ./site build
root@AR:/usr/local/inother.space# ls
404.html _site images posts site.o
README.md about.md index.html site stack.yaml
_cache bower.json inother-space.cabal site.hi templates
_drafts css js site.hs
root@AR:/usr/local/inother.space# cd _site
root@AR:/usr/local/inother.space/_site# ls
404 about archive css images index.html js posts rss.xml tags
root@AR:/usr/local/inother.space/_site#
(可见/usr/local/inother.space/_site就是静态网站的根目录)
新建源帖:
root@AR:/usr/local/inother.space/_site# cd ../posts
root@AR:/usr/local/inother.space/posts# nano 2017-01-24-test-1.markdown
root@AR:/usr/local/inother.space/posts# cat 2017-01-24-test-1.markdown
---
title: 测试1
tags: misc1, misc2, misc3
---
这是测试1.
看看如何?
root@AR:/usr/local/inother.space/posts# cd ..
root@AR:/usr/local/inother.space# ./site build
演示网站:http://is.bright.biz.st/
项目地址:https://github.com/iomonad/inother.space
No comments:
Post a Comment