Skip to content

acgtyrant/hexo-theme-tyrant

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

tyrant

Another Hexo Theme.

demo

Install

Execute the following command and modify theme in _config.yml to tyrant.

git clone git://github.com/acgtyrant/hexo-theme-tyrant.git themes/tyrant

Update

Execute the following command to update tyrant.

cd themes/tyrant
git pull

Notes

Config

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)

RSS

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.

Favicon

If you are going to use favicon then you should use the ico format, there are two benefits:

  1. Many website which make favicon alaways create ico format's favicon.
  2. 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 二三事

Features

Gallery Post

---
layout: photo
title: Gallery Post
photos:
- http://i.minus.com/ibobbTlfxZgITW.jpg
- http://i.minus.com/iedpg90Y0exFS.jpg
---

Link Post

---
layout: link
title: Link Post
link: http://www.google.com/
---

Tweet Widget

Fancybox

Thanks

This theme is modified based on light, the hexo default theme.

Thank the creator tommy351 and the other contributors very much!

About

A simple Theme for hexo whitch based at the default theme "light".

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published