Skip to content

Instantly share code, notes, and snippets.

@morris821028
Created March 2, 2015 00:20
Show Gist options
  • Save morris821028/8480a9e88c4cbedbe89e to your computer and use it in GitHub Desktop.
Save morris821028/8480a9e88c4cbedbe89e to your computer and use it in GitHub Desktop.
hexo _config.yml

Hexo Configuration

Site

title: Morris' Blog subtitle: Can you find me ? description: ACMer NEET NCU UVa OJ author: Shiang-Yun Yang email: morris821028@gmail.com language:

URL

If your site is put in a subdirectory, set url as 'http://yoursite.com/child' and root as '/child/'

url: http://morris821028.github.io/ root: / permalink: :year/:month/:day/:title/ tag_dir: tags archive_dir: archives category_dir: categories code_dir: downloads/code

Directory

source_dir: source public_dir: public

Writing

new_post_name: :title.md # File name of new posts default_layout: post auto_spacing: false # Add spaces between asian characters and western characters titlecase: false # Transform title into titlecase external_link: true # Open external links in new tab max_open_file: 100 multi_thread: true filename_case: 0 render_drafts: false post_asset_folder: false highlight: enable: true line_number: true tab_replace:

Category & Tag

default_category: uncategorized category_map: tag_map:

Archives

2: Enable pagination

1: Disable pagination

0: Fully Disable

archive: 4 category: 2 tag: 4

Server

Hexo uses Connect as a server

You can customize the logger format as defined in

port: 4000 server_ip: 0.0.0.0 logger: false logger_format:

Date / Time format

Hexo uses Moment.js to parse and display date

You can customize the date format as defined in

date_format: MMM D YYYY time_format: H:mm:ss

Pagination

Set per_page to 0 to disable pagination

per_page: 10 pagination_dir: page

Disqus

disqus_shortname: morris1028

Extensions

theme: landscape exclude_generator:

Markdown

markdown: gfm: true pedantic: false sanitize: false tables: true breaks: true smartLists: true smartypants: true

Stylus

stylus: compress: true

Deployment

deploy: type: github repository: https://github.com/morris821028/morris821028.github.io.git branch: master

Plugins

plugins:

  • hexo-generator-feed
  • hexo-generator-sitemap
  • hexo-math
  • hexo-tag-oj
  • hexo-local-image

RSS hexo-generator-feed

feed: type: atom path: atom.xml limit: 20

Fancybox

fancybox: false

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment