asr-pub / hexo-theme-astrid

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Astrid

Build Status GitHub license

A theme for Hexo.

Live Preview | 中文文档

Desktop Preview

Mobile Preview

Installation

  1. Get it from GitHub
$ git clone https://github.com/Laueray/hexo-theme-astrid.git themes/astrid
  1. Enable

Modify theme setting in _config.yml to astrid.

# Extensions
## Plugins: http://hexo.io/plugins/
## Themes: http://hexo.io/themes/
theme: astrid
  1. Update
$ cd themes/Astrid
$ git pull

Configuration

Theme configuration example

# ---------------------------------------------------------------
# Site Information Settings
# ---------------------------------------------------------------

# Header Menu
menu:
  Home: /
  Archives: /archives
  Categories: /categories
  Tags: /tags
  #About: /about

# Specify the date when the site was setup
since: 2016

# Set default keywords (Use a comma to separate)
keywords: ""

# Put your favicon.ico into `/themes/astrid/source/` directory.
# Of course you can use a target link instead.
# (E.g. `http://abc.com/favicon.ico` or `css/images/favicon.ico`)
favicon: css/images/favicon.ico

# Home auto excerpt
auto_excerpt: true

# Random thumb for article placeholder
random_thumb: true

# Statistics article reading volume based on leancloud
leancloud_visitors:
  enable: true
  app_id: #app_id
  app_key: #app_key

# Sidebar
widgets:
- recent_post
- social
- archive
- tagcloud
- category
- recent_comment

# Social Links
# Key is the name of social.
# Value is the target link
social:
  Github: https://github.com
  Facebook: https://www.facebook.com
  Google+: https://plus.google.com
  Weibo: http://www.weibo.com

# Code Highlight theme
# Available value:
#    normal | night | night eighties | night blue | night bright
highlight_theme: normal

# widget behavior
archive_type: 'monthly'
show_count: true

# Reward for article (Unfulfilled)
reward:
  enable: false
  alipay:
  wechatpay:

# Comments
# Choose only one to display
duoshuo_shortname: laueray # Enter your duoshuo shortname here.
disqus_shortname: # Enter your duoshuo shortname here.
uyan_id: # Enter your uyan id

# Webmaster tools verification setting
google_site_verification:
baidu_site_verification:
qihu_site_verification:

# Analytics
baidu_analytics:
google_analytics:
gauges_analytics:
tencent_analytics:
tencent_mta:

# Facebook SDK Support
facebook_sdk:
  enable: false
  app_id:       #<app_id>
  fb_admin:     #<user_id>
  like_button:  #true
  webmaster:    #true

# CNZZ count
cnzz_siteid:

# Application Insights
application_insights:

# MathJax Support
mathjax:
  enable: false
  per_page: false

Features

lightgallery

Astrid uses lightgallery.js to showcase these photos.

Sidebar

Astrid provides 6 built-in widgets:

  • recent_post
  • social
  • archive
  • tagcloud
  • category
  • recent_comment

All of them are enabled by default. You can edit them in widget setting.

Comment support

Astrid has native support for DuoShuo & Disqus & uyan comment systems. Modify the following snippets to astrid astrid/_config.yml:

# Comments
# Choose only one to display
duoshuo_shortname: laueray # Enter your duoshuo shortname here.
disqus_shortname: # Enter your duoshuo shortname here.
uyan_id: # Enter your uyan id

Browser support

Contributing

All kinds of contributions (enhancements, new features, documentation & code improvements, issues & bugs reporting) are welcome.

Looking forward to your pull request.

About

License:MIT License


Languages

Language:JavaScript 47.3%Language:CSS 43.5%Language:HTML 9.3%