git clone https://github.com/fkrauthan/fkrauthan.de fkrauthan.de-site
cd fkrauthan.de-site
as3:~/fkrauthan.de-site# ls
contents deploy.json.dist package.json templates wintersmith
config.json deploy README.md wercker.yml
as3:~/fkrauthan.de-site# npm install (因为有package.json存在,于是运行npm install)
as3:~/fkrauthan.de-site# ls
contents deploy.json.dist package.json templates wintersmith
config.json deploy README.md wercker.yml node_modules
as3:~/fkrauthan.de-site# ./wintersmith build (这个就是生成/更新静态网站的命令)
as3:~/fkrauthan.de-site# ls
build contents deploy.json.dist package.json templates wintersmith
config.json deploy node_modules README.md wercker.yml
(新出现了build目录)
as3:~/fkrauthan.de-site# cd build
as3:~/fkrauthan.de-site/build# ls
404.html assets index.html links.html projects.html
about-me.html contact.html links projects test1.html
(可见~/fkrauthan.de-site/build/就是静态网站的根目录)
as3:~/fkrauthan.de-site/build# nohup Rwebserver 34294 > /dev/null &
访问http://as3.brite.biz:34294/就可看到网站效果。
发贴方法:
as3:~/fkrauthan.de-site/build# cd ../contents
as3:~/fkrauthan.de-site/contents# ls
404.json assets index.md links.json projects.json
about-me.md contact.md links projects
as3:~/fkrauthan.de-site/contents# nano test1.md
按index.md的格式,新建帖子test1.md,格式如下:
---
title: 测试1
template: page.html
---
# 测试1
这是测试1.
然后,
as3:~/fkrauthan.de-site/contents# cd ..
as3:~/fkrauthan.de-site# ./wintersmith build (这个就是生成/更新静态网站的命令)
不过所发表的文章的链接地址并不自动出现在首页。可这样做:
as3:~/fkrauthan.de-site# cd contents
as3:~/fkrauthan.de-site/contents# nano index.md
在index.md的末尾加上:
<p><a href=/test1.html>测试1</a></p>
<p><a href=/test2.html>测试2</a></p>
<p><a href=/chinese-economy.html>中国经济</a></p>
<p><a href=/mother-s-kiss.html>妈妈的吻</a></p>
as3:~/fkrauthan.de-site/contents# cd ..
as3:~/fkrauthan.de-site# ./wintersmith build
演示站点:http://as3.brite.biz:34294/,http://fkrt.brite.biz.st
项目地址:https://github.com/fkrauthan/fkrauthan.de
看到里面有wintersmith,我估计它是改编自静态博客程序wintersmith:
http://briteming.blogspot.co.uk/2013/10/linux-vpsnodejs-wintersmith.html
cd fkrauthan.de-site
as3:~/fkrauthan.de-site# ls
contents deploy.json.dist package.json templates wintersmith
config.json deploy README.md wercker.yml
as3:~/fkrauthan.de-site# npm install (因为有package.json存在,于是运行npm install)
as3:~/fkrauthan.de-site# ls
contents deploy.json.dist package.json templates wintersmith
config.json deploy README.md wercker.yml node_modules
as3:~/fkrauthan.de-site# ./wintersmith build (这个就是生成/更新静态网站的命令)
as3:~/fkrauthan.de-site# ls
build contents deploy.json.dist package.json templates wintersmith
config.json deploy node_modules README.md wercker.yml
(新出现了build目录)
as3:~/fkrauthan.de-site# cd build
as3:~/fkrauthan.de-site/build# ls
404.html assets index.html links.html projects.html
about-me.html contact.html links projects test1.html
(可见~/fkrauthan.de-site/build/就是静态网站的根目录)
as3:~/fkrauthan.de-site/build# nohup Rwebserver 34294 > /dev/null &
访问http://as3.brite.biz:34294/就可看到网站效果。
发贴方法:
as3:~/fkrauthan.de-site/build# cd ../contents
as3:~/fkrauthan.de-site/contents# ls
404.json assets index.md links.json projects.json
about-me.md contact.md links projects
as3:~/fkrauthan.de-site/contents# nano test1.md
按index.md的格式,新建帖子test1.md,格式如下:
---
title: 测试1
template: page.html
---
# 测试1
这是测试1.
然后,
as3:~/fkrauthan.de-site/contents# cd ..
as3:~/fkrauthan.de-site# ./wintersmith build (这个就是生成/更新静态网站的命令)
不过所发表的文章的链接地址并不自动出现在首页。可这样做:
as3:~/fkrauthan.de-site# cd contents
as3:~/fkrauthan.de-site/contents# nano index.md
在index.md的末尾加上:
<p><a href=/test1.html>测试1</a></p>
<p><a href=/test2.html>测试2</a></p>
<p><a href=/chinese-economy.html>中国经济</a></p>
<p><a href=/mother-s-kiss.html>妈妈的吻</a></p>
as3:~/fkrauthan.de-site/contents# cd ..
as3:~/fkrauthan.de-site# ./wintersmith build
演示站点:http://as3.brite.biz:34294/,http://fkrt.brite.biz.st
项目地址:https://github.com/fkrauthan/fkrauthan.de
看到里面有wintersmith,我估计它是改编自静态博客程序wintersmith:
http://briteming.blogspot.co.uk/2013/10/linux-vpsnodejs-wintersmith.html