Setup github pages
Install jekyll
apt install ruby ruby-dev
gem install jekyll bundler
Create site
mkdir mysite
jekyll new --skip-bundle .
- edit Gemfile, comment out
gem "jekyll"
, uncommentgem "github-pages"
Configure site
_config.yml
defaults:
- scope:
path: "" # an empty string here means all files in the project
type: "posts" # previously `post` in Jekyll 2.2.
values:
layout: "post" # use `post` layout for all posts
comments: true # show disqus comment for all posts
disqus:
shortname: xxxx # where is it used: minima-theme post template
url: "https://xxx" # disqus `this.page.url` prefix
Update dependency
rm Gemfile.lock
bundle update
Run locally
bundle exec jekyll serve -P 8080
Create post
cd _post
emacs `date -I`-post-name.md
-
M-x
auto-insert
where front matter template is defined as:
(define-auto-insert (rx (seq (= 4 digit) ?- (= 2 digit) ?- (= 2 digit) (one-or-more any) ".md")) (lambda () (insert "---\ntitle: ") (insert (substring (file-name-base (buffer-name)) 11)) (insert "\ndate: ") (insert (format-time-string "%Y-%m-%d %H:%M:%S %z\n---"))))