标签 blog 下的文章

看你用的是只有nginx的还是有apache后端的,apache的就直接用.htaccess
nginx的就修改网站信息,有个模版,自带了一写程序的伪静态规则,比如wordpress

加个文件在网站根目录下,确实好用了。
.htaccess

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /index.php/$1 [L]
</IfModule>

golang hugo markdown caddy nginx freebsd

https://golang.org/doc/install 

http://gohugo.io/overview/installing/

go build -o hugo main.go

export GOROOT=$HOME/go

export PATH=$PATH:$GOROOT/bin
hugo version
hugo new site u.zhaoweifeng.cn
mkdir themes
cd themes
git clone https://github.com/spf13/hyde.git
cd ..

vi config.toml