Another Hexo Theme.
Execute the following command and modify theme
in _config.yml
to tyrant
.
git clone git://github.com/acgtyrant/hexo-theme-tyrant.git themes/tyrant
Execute the following command to update tyrant.
cd themes/tyrant
git pull
Default config:
menu:
Home: /
Archives: /archives
About: /about
RSS: atom.xml
widgets:
- search
- category
- recent_posts
- tag
excerpt_link: Read More
twitter:
username:
show_replies: false
tweet_count: 5
addthis:
enable: false
pubid:
facebook: true
twitter: true
google: true
pinterest: true
fancybox: true
google_analytics:
rss: /atom.xml
- menu - Main navigation menu
- widget - Widgets displaying in sidebar
- excerpt_link - "Read More" link text at the bottom of excerpted articles
- twitter - Twitter widget config
- username - Twitter username
- show_replies - Enable displaying replies
- tweet_count - Tweets display in widget
- addthis - Share buttons at the buttom of articles (Powered by AddThis)
- enable - Enable share buttons
- pubid - Profile ID of AddThis
- facebook - Enable Facebook button
- twitter - Enable Twitter button
- google - Enable Google+ button
- pinterest - Enable Pinterest button
- fancybox - Enable Fancybox
- google_analytics - Google Analytics ID
- rss - RSS subscription link (change if using Feedburner)
There is a RSS
page in the theme, so you should install the hexo-generator-feed following the manual or remove RSS: /atom.xml
& rss: /atom.xml
in theme/tyrant/_config.yml
.
If you are going to use favicon then you should use the ico format, there are two benefits:
- Many website which make favicon alaways create ico format's favicon.
- The
ico
format supports Retina display.
You can use faviconer to create simple favicon, or read How to Create Retina-Caliber Favicons.
After getting the favicon, put it in the source
(not that theme/tyrant/source
!) and excute these:
hexo generate
hexo deploy
Done.
中文用戶可直接閱讀 Favicon 二三事。
---
layout: photo
title: Gallery Post
photos:
- http://i.minus.com/ibobbTlfxZgITW.jpg
- http://i.minus.com/iedpg90Y0exFS.jpg
---
---
layout: link
title: Link Post
link: http://www.google.com/
---
This theme is modified based on light, the hexo default theme.
Thank the creator tommy351 and the other contributors very much!