jekyll-theme-apollo
Port hexo-theme-apollo to Jekyll.
Installation
npm install -g pug
jekyll new blog && cd blog
echo gem \"jekyll-theme-apollo\", \"~\> 0.1.2\" >> Gemfile
sed -i "s/minima/jekyll-theme-apollo/g" _config.yml
bundle install
Customization
In _config.yml
:
...
lang: zh-cn
copyright: <code>MIT License</code>
startyear: "2018"
favicon_url: /assets/favicon.png
logo_url: /assets/favicon.png
menu:
- title: one
url: /one
- title: two
url: http://two
...
excerpt_separator: <!--more-->
valine:
app_id: your-id
app_key: your-key
google_analytics: ua-xxxxxxx
plugins:
- jekyll-feed
feed:
path: atom.xml
...
- Comment system is powered by valine.js
- Ensure that you have the right
valine.app_id
and valine.app_key
set in _config.yml
- Comment is enabled by default, you can add
comment: false
to the front matter to disable it
MathJax
MathJax is disabled by default, add mathjax: true
to the front matter if you want to enable it
Tip in post
You can use the block IAL to make a tip. Just add {:.tip}
before/after a paragraph, like:
{:.tip}
Big Brother is watching you.
This is no longer a tip.
Translated article
If your article is translated from another source, then you can specify from: http://orginal-post
in the front matter, it will make a link refer to the http://orignal-post
.
Archive
Create a file such as archive.md
, in anywhere you like, and make the front matter like:
---
layout: archive
---
See also
- hexo-theme-apollo/doc
- jekyll-theme-apollo/_doc