Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

another-toc-solution-for-blogdown-fixing-the-pure-Chinese-issue #17

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

heavenzone
Copy link

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

  1. Originally intended for fixing the issue that not generating the links for pure Chinese headlines
  2. Toc with fixed position floating right
  3. 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?

  1. add one partial file simpletoc.html
  2. add one js file simpletoc.js
  3. modified single.html appending three rows of codes
  4. add one post for example using custom param simpletoc: true for generating the toc

H4 Test Section

Test

H2 Test Section

@yihui yihui added the feature label Jan 12, 2018
@yihui
Copy link
Owner

yihui commented Jan 12, 2018

Thanks! Like other pull requests, I'm not going to merge this one, but leave it open for other people to study.

BTW, I plan to update my Chinese blog by the end of this month or early next month. I will have about 100 new posts. Hopefully they will kill enough of your time :)

@CLAassistant
Copy link

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants