有没有办法*仅*在 html 中输出一些内容?
Is there a way to output some stuff *only* in html?
PDF/EPUB等其他格式基本没有。
我想在页面底部添加一些社交/fork me 类型的链接。
使用 GitBook 2.0.0,您可以使用模板语法来做到这一点:
{% if gitbook.generator == "ebook" %}
# Only for eBooks
{% else %}
# For website
{% endif %}
顺便说一句:从今天开始,GitBook 2.0.0 将成为 gitbook.com 的稳定版本和默认版本。
PDF/EPUB等其他格式基本没有。
我想在页面底部添加一些社交/fork me 类型的链接。
使用 GitBook 2.0.0,您可以使用模板语法来做到这一点:
{% if gitbook.generator == "ebook" %}
# Only for eBooks
{% else %}
# For website
{% endif %}
顺便说一句:从今天开始,GitBook 2.0.0 将成为 gitbook.com 的稳定版本和默认版本。