Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenDocCN
theme-apachecn
提交
e3b5d3eb
T
theme-apachecn
项目概览
OpenDocCN
/
theme-apachecn
通知
0
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
T
theme-apachecn
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
e3b5d3eb
编写于
4月 12, 2016
作者:
J
Johan Preynat
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Update website/page.html
上级
ffda6664
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
66 addition
and
1 deletion
+66
-1
_layouts/website/page.html
_layouts/website/page.html
+66
-1
未找到文件。
_layouts/website/page.html
浏览文件 @
e3b5d3eb
...
...
@@ -38,9 +38,44 @@
data-basepath=
"{{ './'|resolveFile }}"
data-revision=
"{{ gitbook.time }}"
data-innerlanguage=
"{{ innerlanguage }}"
>
{% include "website/summary.html" %}
<div
class=
"book-summary"
>
{% block search_input %}{% endblock %}
{% 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, file) }}
<li
class=
"divider"
></li>
{% endfor %}
<li>
<a
href=
"https://www.gitbook.com"
target=
"blank"
class=
"gitbook-link"
>
{{ "GITBOOK_LINK"|t }}
</a>
</li>
</ul>
</nav>
{% endblock %}
</div>
<div
class=
"book-body"
>
{% block search_results %}
{% block book_body %}
<div
class=
"body-inner"
>
{% block book_inner %}
...
...
@@ -71,6 +106,36 @@
{% endif %}
{% endblock %}
{% endblock %}
{% endblock %}
</div>
</div>
{% endblock %}
{% macro articles(_articles, file) %}
{% for article in _articles %}
<li
class=
"chapter {% if article.path == file.path and not article.anchor %}active{% endif %}"
data-level=
"{{ article.level }}"
{%
if
article.path
%}
data-path=
"{{ article.path|resolveFile }}"
{%
endif
%}
>
{% if article.path %}
<a
href=
"{{ article.path|resolveFile }}{{ article.anchor }}"
>
{% elif article.url %}
<a
target=
"_blank"
href=
"{{ article.url }}"
>
{% else %}
<span>
{% endif %}
{% if article.level != "0" %}
<b>
{{ article.level }}.
</b>
{% endif %}
{{ article.title }}
{% if article.path or article.url %}
</a>
{% else %}
</span>
{% endif %}
{% if article.articles.length > 0 %}
<ul
class=
"articles"
>
{{ articles(article.articles, file) }}
</ul>
{% endif %}
</li>
{% endfor %}
{% endmacro %}
\ No newline at end of file
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录