as3:~# git clone https://github.com/sculpin/sculpin-blog-skeleton.git
as3:~# cd sculpin-blog-skeleton
as3:~/sculpin-blog-skeleton# curl -O https://download.sculpin.io/sculpin.phar
as3:~/sculpin-blog-skeleton# ls
app README.md s3-publish.sh sculpin.lock source
publish.sh s3.conf.dist sculpin.json sculpin.phar
as3:~/sculpin-blog-skeleton# php sculpin.phar install
as3:~/sculpin-blog-skeleton# php sculpin.phar generate (这个就是生成/更新静态网站的命令)
(nohup php sculpin.phar generate --watch --server --port=7863 > /dev/null &是生成预览服务器的命令)
as3:~/sculpin-blog-skeleton# ls
app publish.sh s3.conf.dist sculpin.json sculpin.phar
output_dev README.md s3-publish.sh sculpin.lock source
as3:~/sculpin-blog-skeleton# ls output_dev
about blog components css favicon.ico index.html page
as3:~/sculpin-blog-skeleton#
可见上述新生成的output_dev目录就是静态网站的根目录。可绑定域名到该目录。
demo site: http://as3.brite.biz:7863,http://sculpin.brite.biz/
所用的模板是非常流行的twitter bootstrap模板。
发贴方法:
as3:~/sculpin-blog-skeleton# cd source/_posts/
as3:~/sculpin-blog-skeleton/source/_posts# nano 2013-11-01-test1.md
按~/sculpin-blog-skeleton/source/_posts/里面的md文件的格式,新建帖子2013-11-01-test1.md,格式如下:
---
title: test1
layout: post
categories: misc
---
这是测试1.
保存更改,然后:
as3:~/sculpin-blog-skeleton/source/_posts# cd ~/sculpin-blog-skeleton
as3:~/sculpin-blog-skeleton# php sculpin.phar generate
项目地址:https://github.com/sculpin/sculpin-blog-skeleton,
官网:http://sculpin.io/
https://github.com/sculpin/sculpin
------------
这个源码:https://github.com/jtreminio/jtreminio.com 就是基于sculpin的。
as3:~# cd sculpin-blog-skeleton
as3:~/sculpin-blog-skeleton# curl -O https://download.sculpin.io/sculpin.phar
as3:~/sculpin-blog-skeleton# ls
app README.md s3-publish.sh sculpin.lock source
publish.sh s3.conf.dist sculpin.json sculpin.phar
as3:~/sculpin-blog-skeleton# php sculpin.phar install
as3:~/sculpin-blog-skeleton# php sculpin.phar generate (这个就是生成/更新静态网站的命令)
(nohup php sculpin.phar generate --watch --server --port=7863 > /dev/null &是生成预览服务器的命令)
as3:~/sculpin-blog-skeleton# ls
app publish.sh s3.conf.dist sculpin.json sculpin.phar
output_dev README.md s3-publish.sh sculpin.lock source
as3:~/sculpin-blog-skeleton# ls output_dev
about blog components css favicon.ico index.html page
as3:~/sculpin-blog-skeleton#
可见上述新生成的output_dev目录就是静态网站的根目录。可绑定域名到该目录。
demo site: http://as3.brite.biz:7863,http://sculpin.brite.biz/
所用的模板是非常流行的twitter bootstrap模板。
发贴方法:
as3:~/sculpin-blog-skeleton# cd source/_posts/
as3:~/sculpin-blog-skeleton/source/_posts# nano 2013-11-01-test1.md
按~/sculpin-blog-skeleton/source/_posts/里面的md文件的格式,新建帖子2013-11-01-test1.md,格式如下:
---
title: test1
layout: post
categories: misc
---
这是测试1.
保存更改,然后:
as3:~/sculpin-blog-skeleton/source/_posts# cd ~/sculpin-blog-skeleton
as3:~/sculpin-blog-skeleton# php sculpin.phar generate
项目地址:https://github.com/sculpin/sculpin-blog-skeleton,
官网:http://sculpin.io/
https://github.com/sculpin/sculpin
------------
这个源码:https://github.com/jtreminio/jtreminio.com 就是基于sculpin的。
------------
Although this is not needed when creating or updating content, it may be useful to be able to run the website on a local machine.
To do so, make sure you have the following tools installed:
- php php7.3-curl php-xml (
apt-get install php php-curl php-xml
) - composer 1 (
php composer-setup.php --version=1.10.21
) - yui-compressor (
apt-get install yui-compressor
) - lessc (
sudo npm install -g less
).
Next, from the project directory, run the following:
composer install # or php composer.phar install
vendor/bin/sculpin generate --watch --server
from https://github.com/sabre-io/sabre.io