mirror of
https://github.com/yihui/hugo-xmin.git
synced 2024-10-23 04:29:20 +03:00
1.8 KiB
1.8 KiB
title | author | date | slug | categories | tags | simpletoc | |||
---|---|---|---|---|---|---|---|---|---|
another toc solution for blogdown fixing the pure Chinese issue | Heaven Zone | 2018-01-11 | another-toc-solution-for-blogdown-fixing-the-pure-Chinese-issue |
|
|
true |
origination
after taking a little bit of effort to read these two articles in ENGLISH from yihui's blog: 1st, 2nd, I decided to make a pull request to give some feedbacks to Yihui.
As a amateur and beginneR, thanks for Yihui's GREAT present BLOGDOWN.
@yihui, I love reading your articles, especially the Chinese articles, like: 16 小时骑行——我的天津绝望之旅. Yihui's words are always sharp. I feel some sad that it has been a very very long time since you last updated your blog for Chinese articles as a literary youth.
feture
- Originally intended for fixing the issue that not generating the links for pure Chinese headlines
- Toc with fixed position floating right
- Automatically generate the sections numbers
usage
just add simpletoc: true
into the block ---
.
like this:
title: another toc solution for blogdown fixing the pure Chinese issue
author: Heaven Zone
date: '2018-01-11'
slug: another-toc-solution-for-blogdown-fixing-the-pure-Chinese-issue
categories:
- R
tags:
- R
- blogdown
simpletoc: true
what i did for this pull requrest?
- add one partial file
simpletoc.html
- add one js file
simpletoc.js
- modified single.html appending three rows of codes
- add one post for example using custom param
simpletoc: true
for generating the toc
H4 Test Section
Test