提交 4262c51d 编写于 作者: S Samy Pessé

Add back support for custom links in summary

上级 d4420b2a
......@@ -31,6 +31,21 @@
{% block book_summary %}
<nav role="navigation">
<ul class="summary">
{% set _divider = false %}
{% if config.links.sidebar %}
{% for linkTitle, link in config.links.sidebar %}
{% set _divider = true %}
<li>
<a href="{{ link }}" target="_blank" class="custom-link">{{ linkTitle }}</a>
</li>
{% endfor %}
{% endif %}
{% if _divider %}
<li class="divider"></li>
{% endif %}
{% for part in summary.parts %}
{{ articles(part.articles) }}
<li class="divider"></li>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册