Other SSG
导言
Divide the bulky and outdated content about investigating other SSG
into individual posts, ensuring both the thematic integrity and a balanced size for each blog entry.
jekyll¶
Introduction¶
Jekyll is a Ruby-based static site generator that was initially released by Tom Preston-Werner in 2008. 1
Right from the beginning, Jekyll was presented as a blogging solution. Its tagline reads: “Jekyll is a blog-aware static site generator in Ruby”.
It can be used for more than simple blogs, though. Extendibility is at the heart of Jekyll’s design and that is achieved through a vast ecosystem of plugins.
Jekyll on Windows¶
# download rubyinstaller
https://github.com/oneclick/rubyinstaller2/releases/download/RubyInstaller-3.1.2-1/rubyinstaller-devkit-3.1.2-1-x64.exe
# 图形化界面最后执行ridk install,目的是配置gems的环境
gem install bundler jekyll
bundle exec jekyll serve
bugs
Ensure you have either installed the shared-mime-info package for your distribution, or obtain a version of freedesktop.org.xml and set FREEDESKTOP_MIME_TYPES_PATH to the location of that file.
使用¶
$ gem install bundler jekyll
$ jekyll new my-awesome-site
$ cd my-awesome-site
~/my-awesome-site $ bundle exec jekyll serve
# => 打开浏览器 http://localhost:4000
Stanford 模版¶
https://github.com/SU-SWS/stanford_basic
基于decanter¶
https://github.com/SU-SWS/decanter
decanter是斯坦福大学自己用于网站设计的
Get started¶
Drupal 8¶
一个简便的网络框架?
Download & Install¶
https://www.drupal.org/download
# Installing PHP 7.2 with Apache
sudo apt install php libapache2-mod-php
sudo systemctl restart apache2
# install Composer by php
php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
php -r "if (hash_file('sha384', 'composer-setup.php') === '55ce33d7678c5a611085589f1f3ddf8b3c52d662cd01d4ba75c0ee0459970c2200a51f492d557530c71c15d8dba01eae') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;"
php composer-setup.php
php -r "unlink('composer-setup.php');"
# 4 lines above will download the latest composer.phar
sudo mv composer.phar /usr/local/bin/composer
mv composer.phar ~/.local/bin/composer
composer create-project drupal/recommended-project drupal
- Bug1: Your lock file does not contain a compatible set of packages. Please run composer update
- fix1: cd drupal & composer update --ignore-platform-reqs
Install theme¶
https://www.drupal.org/docs/extending-drupal/installing-themes