先按此文http://briteming.blogspot.com/2014/02/linux-vpserlang.html 安装erlang,再按此文
http://briteming.blogspot.com/2015/11/elixir.html安装elixir.
cd /usr/local
MIX_ENV=prod mix escript.build这2行命令)
http://briteming.blogspot.com/2015/11/elixir.html安装elixir.
cd /usr/local
git clone https://github.com/Dalgona/Serum serum-site
cd
serum-site
make && make install
mkdir serum-blog
cd serum-blog
serum init (此命令会在当前目录下,初始化博客的源码.上面的make命令其实就是运行了
mix deps.get |
root@localhost:/usr/local/serum-site/serum-blog# ls
assets media pages posts serum.json site templates
(此时的site是个空目录)
root@localhost:/usr/local/serum-site/serum-blog# serum build
(此即生成/更新静态网站的根目录的命令.不过现在运行
serum build会遇错。解决办法如下)
root@localhost:/usr/local/serum-site/serum-blog# cd templates
root@localhost:/usr/local/serum-site/serum-blog/templates# ls
base.html.eex list.html.eex nav.html.eex page.html.eex post.html.eex
root@localhost:/usr/local/serum-site/serum-blog/templates#
(修改
base.html.eex和
post.html.eex文件,把里面的
site_name()
,author()和
site_description()的“()”删除。)
root@localhost:/usr/local/serum-site/serum-blog/templates# cd ..
root@localhost:/usr/local/serum-site/serum-blog# serum build
root@localhost:/usr/local/serum-site/serum-blog# cd site
root@localhost:/usr/local/serum-site/serum-blog/site# ls
assets index.html media posts tags
root@localhost:/usr/local/serum-site/serum-blog/site#
(可见
/usr/local/serum-site/serum-blog/site就是静态网站的根目录)
新建源帖:
root@localhost:/usr/local/serum-site/serum-blog/site# cd ../posts
root@localhost:/usr/local/serum-site/serum-blog/posts# nano
2017-03-26-1433-test-1.md
root@localhost:/usr/local/serum-site/serum-blog/posts# cat 2017-03-26-1433-test-1.md
# 测试1
# misc1, misc2, misc3
这是测试1.
看看如何?
root@localhost:/usr/local/serum-site/serum-blog/posts# cd ..
root@localhost:/usr/local/serum-site/serum-blog# serum build
演示网站:http://sr.bright.biz.st,不过这个网站比较简陋。我们可以克隆作者的网站来用:
root@localhost:/usr/local/serum-site/serum-blog# cd ..
root@localhost:/usr/local/serum-site# git clone https://github.com/Dalgona/serum-site-ko
root@localhost:/usr/local/serum-site# cd serum-site-ko root@localhost:/usr/local/serum-site/serum-site-ko# cd templates root@localhost:/usr/local/serum-site/serum-site-ko/templates# ls base.html.eex list.html.eex nav.html.eex page.html.eex post.html.eex root@localhost:/usr/local/serum-site/serum-site-ko/templates#
(修改
base.html.eex
文件,把里面的
site_name()
,author()和
site_description()的“()”删除。)
root@localhost:/usr/local/serum-site/serum-site-ko/templates# cd ..
root@localhost:/usr/local/serum-site/serum-site-ko# cd posts
root@localhost:/usr/local/serum-site/serum-site-ko/posts# nano 2017-03-29-1201-test-1.md
root@localhost:/usr/local/serum-site/serum-site-ko/posts# cat 2017-03-29-1201-test-1.md
# 测试1
# misc1, misc2, misc3
这是测试1.
看看如何?
root@localhost:/usr/local/serum-site/serum-site-ko/posts# cd ..
root@localhost:/usr/local/serum-site/serum-site-ko# serum build
演示网站:http://ssk.bright.biz.st, http://ssk.bright.biz.st/posts/
项目地址:https://github.com/Dalgona/Serum/
https://github.com/Dalgona/Serum/issues/14
https://github.com/Dalgona/serum-site-ko
http://dalgona.hontou.moe/Serum/getting-started.html
---------
今天4,30日,作者修复了其源码
h
https://github.com/Dalgona/Serum-site,我们可以克隆此源码来安装静态博客。
此源码里的md文件全是用英文写的,而
https://github.com/Dalgona/Serum-site-ko里面
的md文件有一部分是用韩文写的。
No comments:
Post a Comment