jekyll-rtd-theme 1.0.0 → 1.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +11 -19
- data/_includes/addons.liquid +4 -2
- data/_includes/addons/{source/analytics.liquid → analytics.liquid} +1 -3
- data/_includes/addons/{source/github.liquid → github.liquid} +0 -0
- data/_includes/addons/{source/i18n.liquid → i18n.liquid} +1 -1
- data/_includes/addons/{source/gems.liquid → plugins.liquid} +1 -1
- data/_includes/album.liquid +1 -1
- data/_includes/assets/common.js +40 -0
- data/_includes/assets/search.js +76 -0
- data/_includes/breadcrumbs.liquid +1 -1
- data/_includes/extend/list.liquid +2 -2
- data/_includes/extend/toctree.liquid +6 -5
- data/_includes/footer.liquid +5 -5
- data/_includes/i18n/{en-US.liquid → en.liquid} +3 -2
- data/_includes/i18n/fr.liquid +29 -0
- data/_includes/i18n/it.liquid +29 -0
- data/_includes/i18n/ja.liquid +29 -0
- data/_includes/i18n/ko.liquid +29 -0
- data/_includes/i18n/ru.liquid +29 -0
- data/_includes/i18n/{zh-CN.liquid → zh-cn.liquid} +2 -1
- data/_includes/list.liquid +1 -1
- data/_includes/reset/defaults.liquid +40 -33
- data/_includes/reset/i18n.liquid +11 -3
- data/_includes/reset/languages.liquid +110 -0
- data/_includes/reset/workdir.liquid +4 -3
- data/_includes/toctree.liquid +1 -1
- data/_layouts/default.liquid +219 -2
- data/_sass/_album.scss +1 -1
- data/_sass/_embed.scss +1 -1
- data/_sass/fluid.scss +1 -1
- data/_sass/site.scss +14 -11
- data/assets/favicon.svg +1 -1
- data/assets/js/html5shiv.min.js +4 -0
- data/assets/robots.txt +1 -1
- data/assets/search.liquid +17 -1
- data/assets/sitemap.liquid +17 -0
- metadata +21 -22
- data/_includes/addons/analytics/baidu.liquid +0 -18
- data/_includes/addons/analytics/cnzz.liquid +0 -4
- data/_includes/addons/analytics/google.liquid +0 -18
- data/_includes/addons/comments/disqus.liquid +0 -10
- data/_includes/addons/seo/og.liquid +0 -7
- data/_includes/addons/seo/schema.liquid +0 -10
- data/_includes/assets/site.js +0 -125
- data/_includes/reset/schema.liquid +0 -2
- data/_includes/searchbox.liquid +0 -5
- data/_layouts/basic.liquid +0 -107
- data/assets/sitemap.xml +0 -18
@@ -0,0 +1,29 @@
|
|
1
|
+
{% comment %} Russian {% endcomment %}
|
2
|
+
{%- assign __github = "Github" -%}
|
3
|
+
{%- assign __homepage = "домашняя страница" -%}
|
4
|
+
{%- assign __issues = "вопросы" -%}
|
5
|
+
{%- assign __download = "Скачать" -%}
|
6
|
+
{%- assign __plugins = "Плагины тем" -%}
|
7
|
+
{%- assign __translations = "Переводы" -%}
|
8
|
+
{%- assign __statistics = "Статистика" -%}
|
9
|
+
{%- assign __total_visits = "Всего посещений:" -%}
|
10
|
+
|
11
|
+
{%- assign __note = "замечания" -%}
|
12
|
+
{%- assign __tip = "подсказки" -%}
|
13
|
+
{%- assign __warning = "Предупреждение" -%}
|
14
|
+
{%- assign __danger = "Опасность" -%}
|
15
|
+
|
16
|
+
{%- assign __next = "Следующая Страница" -%}
|
17
|
+
{%- assign __previous = "Предыдущая страница" -%}
|
18
|
+
{%- assign __copyright = "авторское право" -%}
|
19
|
+
{%- assign __revision = "пересмотр" -%}
|
20
|
+
|
21
|
+
{%- assign __404 = "404" -%}
|
22
|
+
{%- assign __not_found = "Эта страница еще не существует!" -%}
|
23
|
+
|
24
|
+
{%- assign __searching = "Поиск" -%}
|
25
|
+
{%- assign __search = "Поиск" -%}
|
26
|
+
{%- assign __search_docs = "Искать в Документах" -%}
|
27
|
+
{%- assign __search_results = "результаты поиска" -%}
|
28
|
+
{%- assign __search_results_found = "Поиск завершен, найдено # страниц, соответствующих поисковому запросу." -%}
|
29
|
+
{%- assign __search_results_not_found = "По вашему запросу не найдено ни одного документа, убедитесь, что все символы написаны правильно!" -%}
|
@@ -1,8 +1,9 @@
|
|
1
|
+
{% comment %} Chinese Simplified {% endcomment %}
|
1
2
|
{%- assign __github = "开源文档" -%}
|
2
3
|
{%- assign __homepage = "仓库" -%}
|
3
4
|
{%- assign __issues = "反馈" -%}
|
4
5
|
{%- assign __download = "下载" -%}
|
5
|
-
{%- assign
|
6
|
+
{%- assign __plugins = "主题插件" -%}
|
6
7
|
{%- assign __translations = "文档翻译" -%}
|
7
8
|
{%- assign __statistics = "访问统计" -%}
|
8
9
|
{%- assign __total_visits = "累计浏览次数:" -%}
|
data/_includes/list.liquid
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
{%- include reset/workdir.liquid workdir=page.dir -%}
|
3
3
|
|
4
4
|
{%- for item in workdir_files %}
|
5
|
-
- [{{ item.title | default: item.url }}]({{
|
5
|
+
- [{{ item.title | default: item.url }}]({{ item.url | relative_url }})
|
6
6
|
{%- endfor -%}
|
7
7
|
|
8
8
|
{%- if include.all -%}
|
@@ -1,50 +1,57 @@
|
|
1
1
|
{%- assign description = content | strip_html | split: " " | join: " " | escape | truncate: 150 -%}
|
2
|
-
{%- assign version = "1.0.
|
3
|
-
{%- assign addons = "github, i18n,
|
2
|
+
{%- assign version = "1.0.5" -%}
|
3
|
+
{%- assign addons = "github, i18n, plugins, analytics" | split: ", " -%}
|
4
4
|
|
5
|
-
{%-
|
6
|
-
{%-
|
7
|
-
{%- include reset/schema.liquid -%}
|
5
|
+
{%- assign schema_lastmod = site.time | date_to_xmlschema -%}
|
6
|
+
{%- assign schema_url = page.url | absolute_url | replace: 'http://', 'https://' | xml_escape -%}
|
8
7
|
|
9
|
-
{% comment %}
|
10
|
-
{%- if jekyll.environment != "production" -%}
|
11
|
-
{%- assign author = site.author | default: "[author]" -%}
|
12
|
-
{%- assign branch = "[branch]" -%}
|
13
|
-
{%- assign commit = "[commit]" -%}
|
14
|
-
{%- assign repository_url = "#" -%}
|
15
|
-
{%- assign issues_url = "#" -%}
|
16
|
-
{%- assign zip_url = "#" -%}
|
17
|
-
{%- assign github_edit_link = "#" -%}
|
18
|
-
{%- else -%}
|
19
|
-
{%- assign author = site.author | default: site.github.owner_name -%}
|
20
|
-
{%- assign branch = site.github.source.branch -%}
|
21
|
-
{%- assign commit = site.github.build_revision | slice: 0, 7 -%}
|
22
|
-
{%- assign repository_url = site.github.repository_url -%}
|
23
|
-
{%- assign issues_url = site.github.issues_url -%}
|
24
|
-
{%- assign zip_url = site.github.zip_url -%}
|
25
|
-
{%- capture github_edit_link %}{% github_edit_link %}{% endcapture -%}
|
26
|
-
{%- endif -%}
|
27
|
-
|
28
|
-
{% comment %} scss and script {% endcomment %}
|
8
|
+
{% comment %} scss {% endcomment %}
|
29
9
|
{%- capture site_scss -%}
|
30
10
|
@import "site.scss";
|
31
|
-
{
|
32
|
-
@import "fluid.scss";
|
33
|
-
{% endif -%}
|
11
|
+
{% if site.fluid %}@import "fluid.scss";{% endif %}
|
34
12
|
{% include assets/custom.scss %} {{ site.scss }}
|
35
13
|
{%- endcapture -%}
|
36
14
|
|
37
|
-
{
|
38
|
-
{% include assets/site.js %}
|
39
|
-
{% include assets/custom.js %} {{ site.script }}
|
40
|
-
{%- endcapture -%}
|
41
|
-
|
15
|
+
{% comment %} cdn {% endcomment %}
|
42
16
|
{%- if site.debug -%}
|
43
17
|
{%- assign cdn = site.baseurl -%}
|
44
18
|
{%- else -%}
|
45
19
|
{%- assign cdn = "https://cdn.jsdelivr.net/gh/rundocs/jekyll-rtd-theme@" | append: version -%}
|
46
20
|
{%- endif -%}
|
47
21
|
|
22
|
+
{% comment %} github-metadata {% endcomment %}
|
23
|
+
{%- if site.github_metadata != false -%}
|
24
|
+
{%- if jekyll.environment == "production" -%}
|
25
|
+
{%- assign author = site.author | default: site.github.owner_name -%}
|
26
|
+
{%- assign branch = site.github.source.branch -%}
|
27
|
+
{%- assign commit = site.github.build_revision | slice: 0, 7 -%}
|
28
|
+
{%- assign repository_url = site.github.repository_url -%}
|
29
|
+
{%- assign issues_url = site.github.issues_url -%}
|
30
|
+
{%- assign zip_url = site.github.zip_url -%}
|
31
|
+
{%- capture github_edit_link %}{% github_edit_link %}{% endcapture -%}
|
32
|
+
{%- else -%}
|
33
|
+
{%- assign author = site.author | default: "[author]" -%}
|
34
|
+
{%- assign branch = "[branch]" -%}
|
35
|
+
{%- assign commit = "[commit]" -%}
|
36
|
+
{%- assign repository_url = "#" -%}
|
37
|
+
{%- assign issues_url = "#" -%}
|
38
|
+
{%- assign zip_url = "#" -%}
|
39
|
+
{%- assign github_edit_link = "#" -%}
|
40
|
+
{%- endif -%}
|
41
|
+
{%- else -%}
|
42
|
+
{%- assign author = site.author | default: "[author]" -%}
|
43
|
+
{%- assign branch = "" -%}
|
44
|
+
{%- assign commit = "" -%}
|
45
|
+
{%- assign repository_url = "" -%}
|
46
|
+
{%- assign issues_url = "" -%}
|
47
|
+
{%- assign zip_url = "" -%}
|
48
|
+
{%- assign github_edit_link = "" -%}
|
49
|
+
{%- assign addons = "i18n, plugins, analytics" | split: ", " -%}
|
50
|
+
{%- endif -%}
|
51
|
+
|
52
|
+
{%- include reset/site_pages.liquid %}
|
53
|
+
{%- include reset/i18n.liquid -%}
|
54
|
+
|
48
55
|
{% comment %} title {% endcomment %}
|
49
56
|
{%- case page.url -%}
|
50
57
|
{%- when "/" -%}
|
data/_includes/reset/i18n.liquid
CHANGED
@@ -1,21 +1,29 @@
|
|
1
|
-
{%-
|
1
|
+
{%- include reset/languages.liquid -%}
|
2
2
|
|
3
|
+
{% comment %} Set default lang {% endcomment %}
|
4
|
+
{%- assign site_lang = "en" -%}
|
5
|
+
{%- if languages contains site.lang -%}
|
6
|
+
{%- assign site_lang = site.lang -%}
|
7
|
+
{%- endif -%}
|
8
|
+
|
9
|
+
{% comment %} Get docs all avaiable langs {% endcomment %}
|
3
10
|
{%- capture langs -%}
|
4
11
|
{{ site_lang }}|
|
5
12
|
{%- for item in site_dirs -%}
|
6
13
|
{%- assign chapter = item.dir | remove_first: "/" | split: "/" | first -%}
|
7
|
-
{%- if
|
14
|
+
{%- if languages contains chapter -%}
|
8
15
|
{{ chapter }}|
|
9
16
|
{%- endif -%}
|
10
17
|
{%- endfor -%}
|
11
18
|
{%- endcapture -%}
|
12
19
|
{%- assign site_langs = langs | split: "|" | uniq -%}
|
13
20
|
|
21
|
+
{% comment %} include language by the root subdirectory {% endcomment %}
|
14
22
|
{%- assign lang = site_lang -%}
|
15
23
|
|
16
24
|
{%- if page.dir != "/" -%}
|
17
25
|
{%- assign chapter = page.dir | remove_first: "/" | split: "/" | first -%}
|
18
|
-
{%- if
|
26
|
+
{%- if languages contains chapter -%}
|
19
27
|
{%- assign lang = chapter -%}
|
20
28
|
{%- endif -%}
|
21
29
|
{%- endif -%}
|
@@ -0,0 +1,110 @@
|
|
1
|
+
{% comment %} https://cloud.google.com/translate/docs/languages ISO-639-1 {% endcomment %}
|
2
|
+
{% comment %} https://github.com/matheuss/google-translate-api/blob/master/languages.js {% endcomment %}
|
3
|
+
{%- capture iso_codes -%}
|
4
|
+
af
|
5
|
+
sq
|
6
|
+
am
|
7
|
+
ar
|
8
|
+
hy
|
9
|
+
az
|
10
|
+
eu
|
11
|
+
be
|
12
|
+
bn
|
13
|
+
bs
|
14
|
+
bg
|
15
|
+
ca
|
16
|
+
ceb
|
17
|
+
ny
|
18
|
+
zh-cn
|
19
|
+
zh-tw
|
20
|
+
co
|
21
|
+
hr
|
22
|
+
cs
|
23
|
+
da
|
24
|
+
nl
|
25
|
+
en
|
26
|
+
eo
|
27
|
+
et
|
28
|
+
tl
|
29
|
+
fi
|
30
|
+
fr
|
31
|
+
fy
|
32
|
+
gl
|
33
|
+
ka
|
34
|
+
de
|
35
|
+
el
|
36
|
+
gu
|
37
|
+
ht
|
38
|
+
ha
|
39
|
+
haw
|
40
|
+
iw
|
41
|
+
hi
|
42
|
+
hmn
|
43
|
+
hu
|
44
|
+
is
|
45
|
+
ig
|
46
|
+
id
|
47
|
+
ga
|
48
|
+
it
|
49
|
+
ja
|
50
|
+
jw
|
51
|
+
kn
|
52
|
+
kk
|
53
|
+
km
|
54
|
+
ko
|
55
|
+
ku
|
56
|
+
ky
|
57
|
+
lo
|
58
|
+
la
|
59
|
+
lv
|
60
|
+
lt
|
61
|
+
lb
|
62
|
+
mk
|
63
|
+
mg
|
64
|
+
ms
|
65
|
+
ml
|
66
|
+
mt
|
67
|
+
mi
|
68
|
+
mr
|
69
|
+
mn
|
70
|
+
my
|
71
|
+
ne
|
72
|
+
no
|
73
|
+
ps
|
74
|
+
fa
|
75
|
+
pl
|
76
|
+
pt
|
77
|
+
ma
|
78
|
+
ro
|
79
|
+
ru
|
80
|
+
sm
|
81
|
+
gd
|
82
|
+
sr
|
83
|
+
st
|
84
|
+
sn
|
85
|
+
sd
|
86
|
+
si
|
87
|
+
sk
|
88
|
+
sl
|
89
|
+
so
|
90
|
+
es
|
91
|
+
su
|
92
|
+
sw
|
93
|
+
sv
|
94
|
+
tg
|
95
|
+
ta
|
96
|
+
te
|
97
|
+
th
|
98
|
+
tr
|
99
|
+
uk
|
100
|
+
ur
|
101
|
+
uz
|
102
|
+
vi
|
103
|
+
cy
|
104
|
+
xh
|
105
|
+
yi
|
106
|
+
yo
|
107
|
+
zu
|
108
|
+
{%- endcapture -%}
|
109
|
+
|
110
|
+
{%- assign languages = iso_codes | split: " " -%}
|
@@ -1,9 +1,9 @@
|
|
1
|
-
{% comment %} Start from the language chapter(eg: en-
|
1
|
+
{% comment %} Start from the language chapter(eg: en-us) or root(/) {% endcomment %}
|
2
2
|
{%- assign workdir = include.workdir | default: "/" -%}
|
3
3
|
|
4
4
|
{%- if page.dir != "/" -%}
|
5
5
|
{%- assign chapter = page.dir | remove_first: "/" | split: "/" | first -%}
|
6
|
-
{%- if
|
6
|
+
{%- if languages contains chapter -%}
|
7
7
|
{%- capture workdir %}/{{ chapter }}/{% endcapture -%}
|
8
8
|
{%- endif -%}
|
9
9
|
{%- endif -%}
|
@@ -21,7 +21,8 @@
|
|
21
21
|
{%- if workdir == dir -%}
|
22
22
|
{% comment %} Root directory does not display other languages {% endcomment %}
|
23
23
|
{%- if workdir == "/" -%}
|
24
|
-
{%-
|
24
|
+
{%- assign language = item.dir | replace: "/", "" -%}
|
25
|
+
{%- unless languages contains language %}{{ item.dir }}|{% endunless -%}
|
25
26
|
{%- else -%}
|
26
27
|
{{ item.dir }}|
|
27
28
|
{%- endif -%}
|
data/_includes/toctree.liquid
CHANGED
@@ -7,7 +7,7 @@
|
|
7
7
|
{%- if page.url == item.url %}current{% endif -%}
|
8
8
|
{%- endcapture %}
|
9
9
|
<li class="toctree-l{{ level }} {{ current }}">
|
10
|
-
<a class="reference internal {{ current }}" href="{{
|
10
|
+
<a class="reference internal {{ current }}" href="{{ item.url | relative_url }}">
|
11
11
|
{{ item.title | default: item.url }}
|
12
12
|
</a>
|
13
13
|
</li>
|
data/_layouts/default.liquid
CHANGED
@@ -1,5 +1,222 @@
|
|
1
1
|
---
|
2
|
-
layout:
|
2
|
+
layout: plugins/compress
|
3
3
|
---
|
4
4
|
|
5
|
-
|
5
|
+
{%- include reset/defaults.liquid -%}
|
6
|
+
|
7
|
+
<!DOCTYPE html>
|
8
|
+
|
9
|
+
<!--
|
10
|
+
{% if site.remote_theme -%}
|
11
|
+
rundocs.io, remote_theme: {{ site.remote_theme }}, based on v{{ version }}
|
12
|
+
{%- else -%}
|
13
|
+
rundocs.io, theme: {{ site.theme | default: "jekyll-rtd-theme, based on" }} v{{ version }}
|
14
|
+
{%- endif %}
|
15
|
+
-->
|
16
|
+
|
17
|
+
<html amp class="writer-html5" lang="{{ lang }}">
|
18
|
+
|
19
|
+
<head>
|
20
|
+
<meta charset="utf-8">
|
21
|
+
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
|
22
|
+
<meta content="IE=Edge" http-equiv="X-UA-Compatible">
|
23
|
+
<title>{{ title | truncate: 110 }}</title>
|
24
|
+
<script>
|
25
|
+
window.dataLayer = window.dataLayer || [];
|
26
|
+
|
27
|
+
function gtag() {
|
28
|
+
dataLayer.push(arguments);
|
29
|
+
}
|
30
|
+
|
31
|
+
function feedback(messages) {
|
32
|
+
gtag("event", "exception", {
|
33
|
+
"description": messages.join(":")
|
34
|
+
});
|
35
|
+
}
|
36
|
+
|
37
|
+
gtag("js", new Date());
|
38
|
+
</script>
|
39
|
+
<!-- meta -->
|
40
|
+
<meta name="description" content="{{ description }}">
|
41
|
+
<meta name="author" content="{{ author }}">
|
42
|
+
<meta name="revised" content="{{ commit }}">
|
43
|
+
<meta name="generator" content="jekyll-rtd-theme v{{ version }}">
|
44
|
+
<!-- meta-og -->
|
45
|
+
<meta property="og:title" content="{{ title }}">
|
46
|
+
<meta property="og:description" content="{{ description }}">
|
47
|
+
<meta property="og:locale" content="{{ lang }}">
|
48
|
+
<meta property="og:url" content="{{ schema_url }}">
|
49
|
+
<meta property="og:type" content="article">
|
50
|
+
<meta property="article:author" content="{{ author }}">
|
51
|
+
<meta property="article:modified_time" content="{{ schema_lastmod }}">
|
52
|
+
<!-- meta-custom -->
|
53
|
+
{% for meta in site.meta -%}
|
54
|
+
<meta name="{{ meta.first }}" content="{{ meta.last }}">
|
55
|
+
{% endfor -%}
|
56
|
+
<!-- schema -->
|
57
|
+
<script type="application/ld+json">
|
58
|
+
{
|
59
|
+
"@context": "https://schema.org",
|
60
|
+
"@type": "Article",
|
61
|
+
"mainEntityOfPage": {
|
62
|
+
"@type": "WebPage",
|
63
|
+
"@id": "{{ schema_url }}"
|
64
|
+
},
|
65
|
+
"headline": "{{ title | truncate: 110 }}",
|
66
|
+
"image": [{% for image in page.images %}"{{ image }}"{% unless forloop.last %},{% endunless %}{% endfor %}],
|
67
|
+
"author": {
|
68
|
+
"@type": "Person",
|
69
|
+
"name": "{{ author }}"
|
70
|
+
},
|
71
|
+
"datePublished": "{{ page.date | default: site.time | date_to_xmlschema }}",
|
72
|
+
"dateModified": "{{ schema_lastmod }}",
|
73
|
+
"publisher": {
|
74
|
+
"@type": "Organization",
|
75
|
+
"name": "RunDocs",
|
76
|
+
"logo": {
|
77
|
+
"@type": "ImageObject",
|
78
|
+
"url": "https://rundocs.io/logo.png"
|
79
|
+
}
|
80
|
+
},
|
81
|
+
"description": "{{ description }}"
|
82
|
+
}
|
83
|
+
</script>
|
84
|
+
<!-- link -->
|
85
|
+
<link rel="canonical" href="{{ schema_url }}">
|
86
|
+
{% if prev %}<link rel="prev" href="{{ prev.url | absolute_url | replace: 'http://', 'https://' }}">{% endif %}
|
87
|
+
{% if next %}<link rel="next" href="{{ next.url | absolute_url | replace: 'http://', 'https://' }}">{% endif %}
|
88
|
+
<!-- theme -->
|
89
|
+
<link rel="stylesheet" href="{{ cdn }}/assets/css/theme.css">
|
90
|
+
<link rel="stylesheet" href="{{ cdn }}/assets/css/rougify/{{ site.rougify | default: 'github' }}.css">
|
91
|
+
<style>{{ site_scss | scssify }}</style>
|
92
|
+
<!-- icon -->
|
93
|
+
<link rel="icon" type="image/svg+xml" href="{{ site.baseurl }}/assets/favicon.svg">
|
94
|
+
<!-- script -->
|
95
|
+
<!--[if lt IE 9]><script src="{{ cdn }}/assets/js/html5shiv.min.js"></script><![endif]-->
|
96
|
+
<script src="{{ cdn }}/assets/js/jquery.min.js"></script>
|
97
|
+
<script>
|
98
|
+
const ui = {
|
99
|
+
baseurl: "{{ site.baseurl }}",
|
100
|
+
title: "{{ site.title }}",
|
101
|
+
lang: "{{ lang }}",
|
102
|
+
admonition: {
|
103
|
+
note: "{{ __note }}",
|
104
|
+
tip: "{{ __tip }}",
|
105
|
+
warning: "{{ __warning }}",
|
106
|
+
danger: "{{ __danger }}"
|
107
|
+
}
|
108
|
+
};
|
109
|
+
</script>
|
110
|
+
</head>
|
111
|
+
|
112
|
+
<body class="wy-body-for-nav">
|
113
|
+
<div class="wy-grid-for-nav">
|
114
|
+
<!-- NAV -->
|
115
|
+
<nav data-toggle="wy-nav-shift" class="wy-nav-side">
|
116
|
+
<div class="wy-side-scroll">
|
117
|
+
<div class="wy-side-nav-search">
|
118
|
+
{% if site.logo %}
|
119
|
+
<a href="{{ site.baseurl }}/{% if site_lang != lang %}{{ lang }}/{% endif %}">
|
120
|
+
<img src="{{ site.baseurl }}/{{ site.logo }}" class="logo" alt="{{ site.title }}">
|
121
|
+
</a>
|
122
|
+
{% else %}
|
123
|
+
<a href="{{ site.baseurl }}/{% if site_lang != lang %}{{ lang }}/{% endif %}" class="icon icon-home"> {{ site.title }}</a>
|
124
|
+
{% endif %}
|
125
|
+
<div role="search">
|
126
|
+
<form id="rtd-search-form" class="wy-form" action="{{ site.baseurl }}/search.html" method="get" autocomplete="off">
|
127
|
+
<input type="text" name="q" placeholder="{{ __search_docs }}...">
|
128
|
+
<input type="hidden" name="lang" value="{{ lang }}">
|
129
|
+
</form>
|
130
|
+
</div>
|
131
|
+
</div>
|
132
|
+
<div class="wy-menu wy-menu-vertical" data-spy="affix" role="navigation" aria-label="main navigation">{% include toctree.liquid %}</div>
|
133
|
+
{%- if site.embed -%}
|
134
|
+
<div class="wy-embed-wrap"><div class="wy-embed">{{ site.embed }}</div></div>
|
135
|
+
{%- endif -%}
|
136
|
+
</div>
|
137
|
+
</nav>
|
138
|
+
|
139
|
+
<section data-toggle="wy-nav-shift" class="wy-nav-content-wrap">
|
140
|
+
<!-- MOBILE NAV -->
|
141
|
+
<nav class="wy-nav-top" aria-label="top navigation">
|
142
|
+
<i data-toggle="wy-nav-top" class="fa fa-bars"></i>
|
143
|
+
<a href="{{ site.baseurl }}/{% if site_lang != lang %}{{ lang }}/{% endif %}">{{ site.title }}</a>
|
144
|
+
</nav>
|
145
|
+
<div class="wy-nav-content">
|
146
|
+
<div class="rst-content">
|
147
|
+
{% include breadcrumbs.liquid %}
|
148
|
+
<div class="document" role="main">
|
149
|
+
{%- if page.url == "/search.html" -%}
|
150
|
+
{{ content }}
|
151
|
+
{%- else -%}
|
152
|
+
<div class="section">{{ content }}</div>
|
153
|
+
{%- endif -%}
|
154
|
+
|
155
|
+
{% comment %} comments {% endcomment %}
|
156
|
+
{% if site.disqus %}
|
157
|
+
<div id="disqus_thread" class="articleComments"></div>
|
158
|
+
<script>
|
159
|
+
(function(script) {
|
160
|
+
script.src = "https://{{ site.disqus }}.disqus.com/embed.js";
|
161
|
+
script.setAttribute("data-timestamp", +new Date());
|
162
|
+
document.head.appendChild(script);
|
163
|
+
})(document.createElement("script"));
|
164
|
+
</script>
|
165
|
+
{% endif %}
|
166
|
+
</div>
|
167
|
+
{% include footer.liquid %}
|
168
|
+
</div>
|
169
|
+
</div>
|
170
|
+
</section>
|
171
|
+
</div>
|
172
|
+
{%- if site.addons %}{% include addons.liquid %}{% endif %}
|
173
|
+
<!-- script -->
|
174
|
+
<script src="{{ cdn }}/assets/js/theme.js"></script>
|
175
|
+
<script src="{{ cdn }}/assets/js/anchor.min.js"></script>
|
176
|
+
<script>
|
177
|
+
{% include assets/common.js %}
|
178
|
+
{% include assets/custom.js %} {{ site.script }}
|
179
|
+
</script>
|
180
|
+
|
181
|
+
{% comment %} Baidu link submit {% endcomment %}
|
182
|
+
{%- if site.baidu.linksubmit -%}
|
183
|
+
<script>
|
184
|
+
(function(script) {
|
185
|
+
script.src = "https://zz.bdstatic.com/linksubmit/push.js";
|
186
|
+
document.head.appendChild(script);
|
187
|
+
})(document.createElement("script"));
|
188
|
+
</script>
|
189
|
+
{%- endif -%}
|
190
|
+
|
191
|
+
{% comment %} Baidu Analytics {% endcomment %}
|
192
|
+
{%- if site.baidu.hm -%}
|
193
|
+
<script>
|
194
|
+
var _hmt = _hmt || [];
|
195
|
+
(function(script) {
|
196
|
+
script.src = "https://hm.baidu.com/hm.js?{{ site.baidu.hm }}";
|
197
|
+
document.head.appendChild(script);
|
198
|
+
})(document.createElement("script"));
|
199
|
+
</script>
|
200
|
+
{%- endif -%}
|
201
|
+
|
202
|
+
{% comment %} CNZZ Analytics {% endcomment %}
|
203
|
+
{%- if site.cnzz -%}
|
204
|
+
<span id="cnzz_stat_icon_{{ site.cnzz }}" style="display: none;"></span>
|
205
|
+
<script async src="https://v1.cnzz.com/z_stat.php?id={{ site.cnzz }}"></script>
|
206
|
+
{%- endif -%}
|
207
|
+
|
208
|
+
{% comment %} Google Analytics {% endcomment %}
|
209
|
+
{%- if site.google.gtag -%}
|
210
|
+
<script async src="https://www.googletagmanager.com/gtag/js?id={{ site.google.gtag }}"></script>
|
211
|
+
<script>
|
212
|
+
gtag("config", "{{ site.google.gtag }}");
|
213
|
+
</script>
|
214
|
+
{%- endif -%}
|
215
|
+
|
216
|
+
{% comment %} Google AdSense {% endcomment %}
|
217
|
+
{%- if site.google.adsense -%}
|
218
|
+
<script data-ad-client="{{ site.google.adsense }}" async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
|
219
|
+
{%- endif -%}
|
220
|
+
</body>
|
221
|
+
|
222
|
+
</html>
|