About Maupassant
大道至简
A simple Hexo template with great performance on different devices, ported from a Typecho theme by Cho, forked and modified from icylogic.
Installation
Install theme and renderers:
|
|
Then change your theme
setting in _config.yml
to maupassant
.
Configuration
Default config:
|
|
- fancybox - Enable Fancybox
- duoshuo - Duoshuo shortname
- disqus - Disqus shortname
- google_search - Default search engine
- baidu_search - Search engine for users in China
- swiftype - Swiftype Search key
- tinysou - Tiny Search key
- self_search - A jQuery-based local search engine, with the dependency on the plugin hexo-generator-search.
- google_analytics - Google Analytics tracking id
- baidu_analytics - Baidu Analytics tracking id
- show_category_count - Show the count of categories in the sidebar widget.
- shareto - Enable share button
- busuanzi - Enable Busuanzi page views
- widgets_on_small_screens - Show the widgets at the bottom of small screens.
- menu - Customize your menu of pages here, just follow the format of existied items. Don’t forget to create corresponding folders inlcuding
index.md
insource
folder to ensure the pages will correctly display. FontAwesome icon fonts have been integrated, and you can choose other icons which you like here and use them according to the instruction. - widgets - Choose and arrange the widgets in sidebar here.
- links - Edit your blogroll here.
- timeline - Show a timeline of the website by setting
layout: timeline
of a page. - Static files - Static files directory, for convenience of CDN usage.
- Theme version - For automatic refresh of static files on CDN.
Features
Logo
You can set a favicon.ico for your website, please put it into source
folder of hexo directory, recommended size: 32px*32px.
You can add a website logo for apple devices, please put an image named apple-touch-icon.png into source
folder of hexo directory, recommended size: 114px*114px.
Abstract
You can control the abstract of a post shown at index, by either filling a description:
item in front-matter
of the post.md
, or just inserting a <!--more-->
before your hidden content.
Page
Create folders inlcuding index.md
in source
folder to add pages, and add a layout: page
in front-matter
of index.md
. If you need a single column page without sidebar, just set layout: single-column
instead of layout: page
.
Table of Contents
TOC in a post can be enabled by adding a toc: true
item in front-matter
.
Comments
Comment feature of each post and page can be enabled (default) and disabled by adding a comments: true
or a comments: false
in front-matter
. This could be useful when you want comment feature for a guestbook page, but don’t want comment feature for a about page.
Syntax Highlighting
Highlighted code showcase is supported, please set the highlight
option in _config.yml
of hexo directory like this:
|
|
Math Equation
Add
in Hexo’s _config.yml
.
In the post which you would like to use math equation, add mathjax: true
in the front-matter
. For example:
|
|
The default math delimiters are $$...$$
and \\[...\\]
for displayed mathematics,
and $...$
and \\(...\\)
for in-line mathematics.
However, if your post contains dollar signs ($
), and they appear often in non-mathematical parts, in other words, you want to use $
as dollar sign not inline math delimiter, please add
|
|
in Hexo’s _config.yml
instead of mathjax: true
. Correspondingly, add mathjax2: true
to the front-matter
of the post in which
you would like to use math equation.
See the example.
Languages
Seven languages are available for this theme currently: Simplified Chinese (zh-CN), Traditional Chinese (zh-TW), English (en), French (fr-FR), German (de-DE), Korean (ko) and Spanish (es-ES). Contributions of translating to other languages will be highly appreciated.
Solutions
Check whether your Terminal’s current directory is in hexo’s root directory which contains
source/
,themes/
, etc.If you have any trouble in using this theme, please feel free to open an issue.
Browser Support
Contributing
All kinds of contributions (enhancements, new features, documentation & code improvements, issues & bugs reporting) are welcome.
Looking forward to your pull request.
Acknowledgements
Thank JamesPan for his help to improve this theme
.