一.介绍
静态网站生成器到底有多少呢?GitHub用户对静态博客生成程序进行了大规模总结,太多了啊,太恐怖,萌新被吓傻了……
GitHub地址: https://github.com/pinceladasdaweb/Static-Site-Generators
我选了jekyll博客, 因为两大代码仓库GitHub(国外)和Coding(国内)都提供免费空间自动构建Jekyll网站!
我的博客同时部署在GitHub Pages和Coding Pages,感谢Github的各路同行奉献,让我有幸能用到这么方便的高效工具,制作自己喜欢的博客。当然还要感谢GitHub和Coding网站,能让我这样一穷二白且毫无商业价值的码畜,免费使用服务器空间!
近期发现Coding Pages部署网站大小不能超过100M(代码仓库免费容量是256M), 还没发现GitHub Pages有大小限制!
GitHub和Coding的默认博客地址都太长了,不好记忆,
所以我在阿里云买了十年域名lioil.win,域名.win太便宜了,没商业价值没人要!
GitHub博客: http://lioil.win
Coding博客: http://c.lioil.win
二.在windows安装jekyll
1.下载Ruby
1.1点击安装Ruby
1.2添加环境变量,输入命令查看版本 ruby -v
2.下载RubyDevKit,模拟Linux的gcc编译
2.1点击安装RubyDevKit
2.2在config.yml文件加入Ruby安装目录
- xx\xx\Ruby
2.3初始化命令
ruby dk.rb init
ruby dk.rb install
3.输入Jekyll安装命令(需联网下载软件)
3.1换镜像源 gem sources --add http://gems.ruby-china.org --remove https://rubygems.org
3.2安装 gem install jekyll
3.3安装 gem install jekyll-sitemap
查看镜像源 gem sources -l
查看已安装软件 gem list
查询远程软件库 gem query –r 软件名
4.生成和运行网站命令
4.1生成网站模板 jekyll new mysite
4.2运行网站
cd mysite
jekyll s
在_posts中存放文章,输入命令jekyll s
在浏览器打开http://127.0.0.1:4000,查看网站
下划线开头文件夹会被jekyll编译成html和css,其它文件夹保持原样
注意:
因为众所周知原因,国外镜像源经常不可用,一定要将RubyGems镜像源改为国内的!
网上流传淘宝的镜像源已经不可用,我被坑了很久啊,血泪的教训啊!
花了很多时间才在Ruby中文社区找到新镜像源https://gems.ruby-china.org
三.在GitHub或Coding部署jekyll网站
1.注册登陆GitHub 或Coding网站
2.创建代码仓库
3.找到GitHub Pages 或GitHub Pages设置,可以添加自己域名
4.把本地jekyll网站上传到代码仓库,GitHub 或Coding都会默认用jekyll工具生成网站
四.静态网站生成器汇总
GitHub地址: https://github.com/pinceladasdaweb/Static-Site-Generators
.NET
Awk
Bash
C++
C Sharp
C and Perl
- BlazeBlogger
- blosxom
- Bryar
- Dapper
- HiD
- ikiwiki
- Papery
- Quietly::Confident
- StaticVolt
- Statocles
- Templer
- Website Meta Language
- XDO
- Zucchini
Clojure
Common Lisp
Dropbox
- 900dpi
- Blogmark
- Brace
- Calepin
- Chili
- Cloud Cannon
- Drapache
- DropPages
- KISSr
- Pancake.io
- Scriptogr.am
- Site44
- Sitebox.io
- Telegram
- Yoozon
Elixir
Erlang
Go
Groovy
Haskell
Java
Language Agnostic
Lua
Nimrod
Node.js
- antwar
- Apto
- Assemble
- Automaton
- BAM
- Bi Sheng
- blacksmith
- Blode
- Bloguizim
- bread
- Broccoli Taco
- Brunch
- Cabin
- CMS.js
- Codex
- Conf-Boilerplate (For Conference and Events)
- Derby
- DocPad
- Easystatic
- Enfield
- Equiprose
- Gabby
- Gatsby
- generator-gulp-webapp
- Genesis
- ghost-render
- GloriaJS
- Go-Static!
- Grunt
- GruntStart
- grunt-bear
- Grunt-Carpenter
- grunt-html-builder
- grunt-stencil
- gulp-ssg
- Harmonic
- Harp
- Heckle
- Hexo
- Hoodie
- jen
- Jekyde
- Jott
- Kel
- Kerouac
- Lineman
- Lingon
- Lumbar
- markdown-styles
- markx
- Metalsmith
- Mimosa
- modan
- Modjs
- Nirman
- Nico
- node-blog
- node-buster
- node-jekyll
- noflo-jekyll
- Nog
- pagen
- Petrify
- Phenomic
- Poet
- Pop
- Propeller
- Punch
- Qabex
- Quick Start Guide Template
- Quill
- React Static Site
- React Static Site Webpack plugin
- React + Webpack
- Reptar
- romulus
- roots
- Rufio
- Surge
- Scotch
- Situs
- squareboy
- Staticman
- static site generator webpack plugin
- Static Site Starter Kit
- statil
- Statix
- SuSi
- Szyslak
- Techy
- thumbsup
- volo
- wainwright
- Wanna
- Wheat
- Wikismith
- Wintersmith
- Woods
- yassg
- Yeoman
OCaml
PHP
- Animal
- BloggerCMS
- Carew
- Couscous
- Dropplets
- Fansoro
- Grav
- Gumdrop
- PHPoole
- Phrozn
- PieCrust
- Purepress
- Sculpin
- Second Crack
- SG
- Site-builder
- SiteMaker
- Snowshoe
- Spress
- Stacey
- Statamic
- Static
- Tempo
- Vaseman
- Yellow
- Wadoo
Python
- Acrylamid
- Blatter
- Blogofile
- Blogen
- buster
- Cactus
- Chisel
- Cipherpress
- Composer
- cyrax
- django-medusa
- djangothis
- drupan
- Elyse
- Engineer
- Firedrop2
- fjord
- Floyd
- Fragments
- Frozen-Flask
- Glynn
- growl
- Halwa
- handcrank
- Hyde
- Igor
- Jinja
- jinjet
- Lektor
- Letterpress
- Lightning
- lilac
- Logya
- Mako
- Markbox
- Markdoc
- MkDocs
- mynt
- Nib
- Nikola
- Obraz
- Pelican
- PILCROW
- Poole
- PyBlosxom
- PyKwiki
- Pyll
- rstblog
- Serious Chicken
- sg
- Socrates
- Speech Hub
- Sphinx
- Squirrel
- Stadø
- staticjinja
- StrangeCase
- Syte
- Tags
- tahchee
- Tinkerer
- Voldemort
- Volt
- Webber
- Wok
Racket
Ruby
- Ace
- Bonsai
- Brochure
- deplot
- DynamicMatic
- Fairytale
- Frank
- gollum-site
- Gravity
- High Voltage
- hobix
- Hobix
- Jekyll
- korma
- Laze
- Machined
- Magneto
- Massimo
- Middleman
- Moka
- Nanoc
- NestaCMS
- Octopress
- Pith
- Rakeweb
- Rassmalog
- Rog
- rote
- RubyFrontier
- Ruhoh
- Serif
- Serve
- Shelob
- stasis
- StaticMatic 2
- StaticMatic
- StaticWeb
- Striker
- toto
- Webby
- webgen
- Yurt CMS
- zenweb
- { :awestruct }
Rust
Scala
Scheme
Shell
Tcl
简书:http://www.jianshu.com/p/42dcb7784f42
CSDN博客: http://blog.csdn.net/qq_32115439/article/details/51038561
GitHub博客: http://lioil.win/2016/04/01/Static-Site-Generators.html
Coding博客: http://c.lioil.win/2016/04/01/Static-Site-Generators.html