Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenDocCN
theme-apachecn
提交
667c5718
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 搜索 >>
提交
667c5718
编写于
2月 17, 2016
作者:
S
Samy Pessé
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Add header and page content
上级
f34e38a4
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
48 addition
and
4 deletion
+48
-4
_layouts/website/header.html
_layouts/website/header.html
+13
-0
_layouts/website/page.html
_layouts/website/page.html
+29
-0
_layouts/website/summary.html
_layouts/website/summary.html
+6
-4
未找到文件。
_layouts/website/header.html
0 → 100644
浏览文件 @
667c5718
{% block book_header %}
<div
class=
"book-header"
role=
"navigation"
>
{% if glossary.length > 0 %}
<a
href=
"{{ basePath }}/GLOSSARY.html"
class=
"btn pull-left"
aria-label=
"{{ __("
GLOSSARY_OPEN
")
}}"
><i
class=
"fa fa-sort-alpha-asc"
></i></a>
{% endif %}
<!-- Title -->
<h1>
<i
class=
"fa fa-circle-o-notch fa-spin"
></i>
<a
href=
"{{ basePath }}/"
>
{{ title }}
</a>
</h1>
</div>
{% endblock %}
_layouts/website/page.html
浏览文件 @
667c5718
...
...
@@ -14,8 +14,37 @@
{% block body %}
<div
class=
"book"
>
{% include "website/summary.html" %}
<div
class=
"book-body"
>
{% block book_body %}
<div
class=
"body-inner"
>
{% block book_inner %}
{% include "website/header.html" %}
<div
class=
"page-wrapper"
tabindex=
"-1"
role=
"main"
>
<div
class=
"page-inner"
>
{% block page %}
{{ page.content|safe }}
{% endblock %}
</div>
</div>
{% endblock %}
</div>
{% block book_navigation %}
{% if progress.current.prev and progress.current.prev.path %}
<a
href=
"{{ page.previous.path|resolveFile|contentURL }}"
class=
"navigation navigation-prev {% if not page.next %}navigation-unique{% endif %}"
aria-label=
"Previous page: {{ page.previous.title }}"
>
<i
class=
"fa fa-angle-left"
></i>
</a>
{% endif %}
{% if progress.current.next and progress.current.next.path %}
<a
href=
"{{ page.next.path|resolveFile|contentURL }}"
class=
"navigation navigation-next {% if not page.previous %}navigation-unique{% endif %}"
aria-label=
"Next page: {{ page.next.title }}"
>
<i
class=
"fa fa-angle-right"
></i>
</a>
{% endif %}
{% endblock %}
{% endblock %}
</div>
</div>
{% endblock %}
_layouts/website/summary.html
浏览文件 @
667c5718
...
...
@@ -2,14 +2,14 @@
{% for article in _articles %}
<li
class=
"chapter {% if article.path == file.path %}active{% endif %}"
data-level=
"{{ article.level }}"
{%
if
article.path
%}
data-path=
"{{ article.path|contentURL }}"
{%
endif
%}
>
{% if article.path %}
<a
href=
"{{
{{
article.path|resolveFile|contentURL }}"
>
<a
href=
"{{ article.path|resolveFile|contentURL }}"
>
{% else %}
<a
target=
"_blank"
href=
"{{ article.url }}"
>
{% endif %}
{% if
item
.level != "0" %}
<b>
{{
item
.level }}.
</b>
{% if
article
.level != "0" %}
<b>
{{
article
.level }}.
</b>
{% endif %}
{{
item
.title }}
{{
article
.title }}
</a>
{% if article.articles.length > 0 %}
...
...
@@ -22,6 +22,7 @@
{% endmacro %}
<div
class=
"book-summary"
>
{% block book_summary %}
<nav
role=
"navigation"
>
<ul
class=
"summary"
>
{% for part in summary.parts %}
...
...
@@ -38,4 +39,5 @@
</li>
</ul>
</nav>
{% endblock %}
</ul>
\ No newline at end of file
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录