Skip to content

Added a example of footnote #567

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

Merged
merged 5 commits into from
Oct 25, 2017
Merged

Added a example of footnote #567

merged 5 commits into from
Oct 25, 2017

Conversation

Jinjiang
Copy link
Member

@Jinjiang Jinjiang commented Oct 16, 2017

试着写了一个 footnote 的例子,用来放译者注。看看这种写法是否可接受。
(hexo markdown 不支持 [^footnote] 的写法,所以代码有点“恶心”)

@Jinjiang Jinjiang requested a review from Justineo October 16, 2017 15:52
<small>
<div id="译者注">__译者注__</div>
[1] truthy 不是 `true`,详见 [MDN](https://developer.mozilla.org/zh-CN/docs/Glossary/Truthy) 的解释。
</small>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

好处是方便多处共享注释,但是可能还是不如 inline 的方式简单……页面能加 JS 么,比如搞个浮层来显示注释之类的……

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

我担心搞得太复杂之后跟网站本身的设计耦合过多。目前的写法的复杂度已经是我可以忍受的上限了😞

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这种写法本身我觉得没啥问题。

@yyx990803
Copy link
Member

有截图能看下效果吗

@Jinjiang
Copy link
Member Author

This is the footnote marker in the content:
2017-10-21 10 26 17

And this is the footnote in the bottom:
2017-10-21 10 26 29

@yyx990803
Copy link
Member

yyx990803 commented Oct 21, 2017 via email

@Jinjiang
Copy link
Member Author

OK,那接下来需要加译注的地方就先按这个方式来吧,正好最近在整理翻译注意事项,一块加进去放到一个对贡献者来说醒目的位置。

@Justineo
Copy link
Member

@Jinjiang 点链接跳到脚注以后有办法返回去么?

@Jinjiang
Copy link
Member Author

没有了,因为注脚可能被重复引用,只能用浏览器的后退按钮回退。
Any ideas?

@Justineo
Copy link
Member

原生返回能用的话感觉也行吧。

@Jinjiang
Copy link
Member Author

把译者注的写法更新到了 wiki:https://github.com/vuejs/cn.vuejs.org/wiki
同时增加一些起步介绍到 github template
有劳过目

@Jinjiang Jinjiang merged commit 241a20e into master Oct 25, 2017
@Jinjiang Jinjiang deleted the footnote branch October 25, 2017 07:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants