cpanm App::Dapper
mkdir dapper-site
cd dapper-site
dapper init
(会显示:
Creating _config.yml
Creating _source/index.md
Creating _layout/index.html
Project initialized.)
dapper build (这个就是生成/更新静态网站的命令)
(会显示:
Wrote _output/index.html
Project built.)
as3:~/dapper-site# ls
_config.yml _layout _output _source
(新出现了_output目录)
as3:~/dapper-site# cd _output
as3:~/dapper-site/_output# ls
index.html
as3:~/dapper-site/_output# nohup Rwebserver 34273 > /dev/null &
访问http://as3.brite.biz:34273/即可看到网站效果。
发贴方法:
as3:~/dapper-site/_output# cd ../_source
as3:~/dapper-site/_source# nano test1.md
格式为:
---
layout: index
title: 测试1
---
## 测试1
这是测试1.
然后,
as3:~/dapper-site/_source# cd ..
as3:~/dapper-site# dapper build (这个就是生成/更新静态网站的命令)
不过首页并不自动显示已发表的文章,可这样做:
as3:~/dapper-site# nano _source/index.md
as3:~/dapper-site# cat _source/index.md
---
layout: index
title: Welcome
---
Hello world.
<p><a href=/test1.html>测试1</a></p>
<p><a href=/test2.html>测试2</a></p>
<p><a href=/chinese-economy.html>中国经济</a></p>
as3:~/dapper-site# dapper build
演示站点:http://as3.brite.biz:34273,(浏览器的编码需选择unicode)
项目地址:http://vanilladraft.com/dapper/,
https://github.com/markdbenson/dapper
mkdir dapper-site
cd dapper-site
dapper init
(会显示:
Creating _config.yml
Creating _source/index.md
Creating _layout/index.html
Project initialized.)
dapper build (这个就是生成/更新静态网站的命令)
(会显示:
Wrote _output/index.html
Project built.)
as3:~/dapper-site# ls
_config.yml _layout _output _source
(新出现了_output目录)
as3:~/dapper-site# cd _output
as3:~/dapper-site/_output# ls
index.html
as3:~/dapper-site/_output# nohup Rwebserver 34273 > /dev/null &
访问http://as3.brite.biz:34273/即可看到网站效果。
发贴方法:
as3:~/dapper-site/_output# cd ../_source
as3:~/dapper-site/_source# nano test1.md
格式为:
---
layout: index
title: 测试1
---
## 测试1
这是测试1.
然后,
as3:~/dapper-site/_source# cd ..
as3:~/dapper-site# dapper build (这个就是生成/更新静态网站的命令)
不过首页并不自动显示已发表的文章,可这样做:
as3:~/dapper-site# nano _source/index.md
as3:~/dapper-site# cat _source/index.md
---
layout: index
title: Welcome
---
Hello world.
<p><a href=/test1.html>测试1</a></p>
<p><a href=/test2.html>测试2</a></p>
<p><a href=/chinese-economy.html>中国经济</a></p>
as3:~/dapper-site# dapper build
演示站点:http://as3.brite.biz:34273,(浏览器的编码需选择unicode)
项目地址:http://vanilladraft.com/dapper/,
https://github.com/markdbenson/dapper