cd /usr/local
git clone https://github.com/ThibaudDauce/thibaud-dauce thibaud.dauce.fr
cd thibaud.dauce.fr
root@AR:/usr/local/thibaud.dauce.fr# ghc --make thibaud.hs (会在当前目录下,生成可执行文件thibaud)
root@AR:/usr/local/thibaud.dauce.fr# ./thibaud rebuild
it shows:
...
[ERROR] Hakyll.Core.UnixFilter.unixFilterWith: sassc ./sass/app.sass gave exit code 1
root@AR:/usr/local/thibaud.dauce.fr#
root@AR:/usr/local/thibaud.dauce.fr# gem install sassc
root@AR:/usr/local/thibaud.dauce.fr# which sassc
/usr/local/bin/sassc
root@AR:/usr/local/thibaud.dauce.fr# ./thibaud rebuild
仍然遇错:
[ERROR] Hakyll.Core.UnixFilter.unixFilterWith: sassc ./sass/app.sass gave exit code 1
root@AR:/usr/local/thibaud.dauce.fr# ls
README.md files package.json templates videos
icons posts thibaud yarn.lock
images sass thibaud-dauce.cabal
blog.html index.html stack.yaml thibaud.hi
bower.json js talks thibaud.hs
deploy.sh node_modules talks.html thibaud.o
root@AR:/usr/local/thibaud.dauce.fr# npm install (看到package.json ,就需运行npm install来安装 package.json文件中指定的node模块。 不过我运行 npm install时,没有显示安装过程,即由
root@AR:/usr/local/thibaud.dauce.fr# npm install直接变成了root@AR:/usr/local/thibaud.dauce.fr# ,原来是因为我是用nvm安装nodejs环境而每次登陆vps,都需运行命令:nvm use 7.4.0来启动nodejs环境,而我忘了运行nvm use 7.4.0,所以node/npm根本就没在运行中。详见:http://briteming.blogspot.com/2017/01/node-nvm-n.html)
root@AR:/usr/local/thibaud.dauce.fr# ./thibaud rebuild
root@AR:/usr/local/thibaud.dauce.fr# ls
README.md files package.json templates videos
_cache icons posts thibaud yarn.lock
_site images sass thibaud-dauce.cabal
blog.html index.html stack.yaml thibaud.hi
bower.json js talks thibaud.hs
deploy.sh node_modules talks.html thibaud.o
root@AR:/usr/local/thibaud.dauce.fr# cd _site
root@AR:/usr/local/thibaud.dauce.fr/_site# ls
atom.xml feed.xml images js sass talks.html
blog.html files index.html posts talks videos
root@AR:/usr/local/thibaud.dauce.fr/_site#
(可见/usr/local/thibaud.dauce.fr/_site就是静态网站的根目录)
新建源帖:
root@AR:/usr/local/thibaud.dauce.fr/_site# cd ../posts
root@AR:/usr/local/thibaud.dauce.fr/posts# nano 2017-01-26-test-1.md
root@AR:/usr/local/thibaud.dauce.fr/posts# cat 2017-01-26-test-1.md
---
title: 测试1
description: abc
---
这是测试1.
<!--more-->
看看如何?
root@AR:/usr/local/thibaud.dauce.fr/posts# cd ..
root@AR:/usr/local/thibaud.dauce.fr# ./thibaud rebuild
演示网站:http://tdf.bright.biz.st,http://tdf.bright.biz.st/blog.html
项目地址:https://github.com/ThibaudDauce/thibaud-dauce/,
https://github.com/ThibaudDauce/thibaud-dauce/issues/4
No comments:
Post a Comment