jekyll-rtd-theme 0.1.9 → 1.0.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (50) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +5 -5
  3. data/_includes/addons.liquid +4 -2
  4. data/_includes/addons/{source/analytics.liquid → analytics.liquid} +1 -3
  5. data/_includes/addons/{source/github.liquid → github.liquid} +0 -0
  6. data/_includes/addons/i18n.liquid +13 -0
  7. data/_includes/addons/{source/gems.liquid → plugins.liquid} +1 -1
  8. data/_includes/album.liquid +2 -2
  9. data/_includes/assets/common.js +40 -0
  10. data/_includes/assets/search.js +76 -0
  11. data/_includes/breadcrumbs.liquid +8 -2
  12. data/_includes/extend/list.liquid +2 -2
  13. data/_includes/extend/toctree.liquid +16 -5
  14. data/_includes/footer.liquid +4 -4
  15. data/_includes/i18n/en.liquid +4 -2
  16. data/_includes/i18n/fr.liquid +29 -0
  17. data/_includes/i18n/it.liquid +29 -0
  18. data/_includes/i18n/ja.liquid +29 -0
  19. data/_includes/i18n/ko.liquid +29 -0
  20. data/_includes/i18n/ru.liquid +29 -0
  21. data/_includes/i18n/{zh.liquid → zh-cn.liquid} +3 -1
  22. data/_includes/list.liquid +1 -1
  23. data/_includes/reset/defaults.liquid +40 -33
  24. data/_includes/reset/i18n.liquid +30 -2
  25. data/_includes/reset/languages.liquid +110 -0
  26. data/_includes/reset/workdir.liquid +17 -1
  27. data/_includes/toctree.liquid +1 -1
  28. data/_layouts/default.liquid +228 -2
  29. data/_sass/_album.scss +1 -1
  30. data/_sass/_embed.scss +1 -1
  31. data/_sass/fluid.scss +1 -1
  32. data/_sass/site.scss +13 -10
  33. data/assets/404.liquid +1 -0
  34. data/assets/favicon.svg +1 -1
  35. data/assets/js/html5shiv.min.js +4 -0
  36. data/assets/robots.txt +1 -1
  37. data/assets/search.liquid +17 -1
  38. data/assets/sitemap.liquid +17 -0
  39. metadata +20 -20
  40. data/_includes/addons/analytics/baidu.liquid +0 -18
  41. data/_includes/addons/analytics/cnzz.liquid +0 -4
  42. data/_includes/addons/analytics/google.liquid +0 -18
  43. data/_includes/addons/comments/disqus.liquid +0 -10
  44. data/_includes/addons/seo/og.liquid +0 -7
  45. data/_includes/addons/seo/schema.liquid +0 -10
  46. data/_includes/assets/site.js +0 -125
  47. data/_includes/reset/schema.liquid +0 -2
  48. data/_includes/searchbox.liquid +0 -5
  49. data/_layouts/basic.liquid +0 -107
  50. data/assets/sitemap.xml +0 -18
@@ -0,0 +1,29 @@
1
+ {% comment %} Korean {% 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 = "검색어와 일치하는 문서가 없습니다. 모든 문자의 철자가 올바른지 확인하십시오!" -%}
@@ -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,10 @@
1
+ {% comment %} Chinese Simplified {% endcomment %}
1
2
  {%- assign __github = "开源文档" -%}
2
3
  {%- assign __homepage = "仓库" -%}
3
4
  {%- assign __issues = "反馈" -%}
4
5
  {%- assign __download = "下载" -%}
5
- {%- assign __gems = "主题插件" -%}
6
+ {%- assign __plugins = "主题插件" -%}
7
+ {%- assign __translations = "文档翻译" -%}
6
8
  {%- assign __statistics = "访问统计" -%}
7
9
  {%- assign __total_visits = "累计浏览次数:" -%}
8
10
 
@@ -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 }}]({{ site.baseurl | append: 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 = "0.1.9" -%}
3
- {%- assign addons = "github, gems, analytics" | split: ", " -%}
2
+ {%- assign version = "1.0.4" -%}
3
+ {%- assign addons = "github, i18n, plugins, analytics" | split: ", " -%}
4
4
 
5
- {%- include reset/site_pages.liquid %}
6
- {%- include reset/i18n.liquid -%}
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 %} github-metadata {% endcomment %}
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
- {%- if site.fluid %}
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
- {%- capture site_script %}
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 "/" -%}
@@ -1,3 +1,31 @@
1
- {%- assign lang = site.lang | default: "en-US" -%}
1
+ {%- include reset/languages.liquid -%}
2
2
 
3
- {%- include i18n/{{ lang | split: "-" | first }}.liquid -%}
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 %}
10
+ {%- capture langs -%}
11
+ {{ site_lang }}|
12
+ {%- for item in site_dirs -%}
13
+ {%- assign chapter = item.dir | remove_first: "/" | split: "/" | first -%}
14
+ {%- if languages contains chapter -%}
15
+ {{ chapter }}|
16
+ {%- endif -%}
17
+ {%- endfor -%}
18
+ {%- endcapture -%}
19
+ {%- assign site_langs = langs | split: "|" | uniq -%}
20
+
21
+ {% comment %} include language by the root subdirectory {% endcomment %}
22
+ {%- assign lang = site_lang -%}
23
+
24
+ {%- if page.dir != "/" -%}
25
+ {%- assign chapter = page.dir | remove_first: "/" | split: "/" | first -%}
26
+ {%- if languages contains chapter -%}
27
+ {%- assign lang = chapter -%}
28
+ {%- endif -%}
29
+ {%- endif -%}
30
+
31
+ {%- include i18n/{{ lang }}.liquid -%}
@@ -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,4 +1,13 @@
1
+ {% comment %} Start from the language chapter(eg: en-us) or root(/) {% endcomment %}
1
2
  {%- assign workdir = include.workdir | default: "/" -%}
3
+
4
+ {%- if page.dir != "/" -%}
5
+ {%- assign chapter = page.dir | remove_first: "/" | split: "/" | first -%}
6
+ {%- if languages contains chapter -%}
7
+ {%- capture workdir %}/{{ chapter }}/{% endcapture -%}
8
+ {%- endif -%}
9
+ {%- endif -%}
10
+
2
11
  {%- assign workdir_level = workdir | append: "temp/" | split: "/" | size | minus: 1 -%}
3
12
  {%- assign workdir_files = site_files | where_exp: "item", "item.dir == workdir" -%}
4
13
 
@@ -8,8 +17,15 @@
8
17
  {%- if workdir_level == current_m1 -%}
9
18
  {%- assign temp = workdir | append: "@@" -%}
10
19
  {%- assign dir = item.dir | replace: workdir, temp | split: "@@" | first -%}
20
+ {% comment %} In the current subdirectory {% endcomment %}
11
21
  {%- if workdir == dir -%}
12
- {{ item.dir }}|
22
+ {% comment %} Root directory does not display other languages {% endcomment %}
23
+ {%- if workdir == "/" -%}
24
+ {%- assign language = item.dir | replace: "/", "" -%}
25
+ {%- unless languages contains language %}{{ item.dir }}|{% endunless -%}
26
+ {%- else -%}
27
+ {{ item.dir }}|
28
+ {%- endif -%}
13
29
  {%- endif -%}
14
30
  {%- endif -%}
15
31
  {%- endfor -%}
@@ -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="{{ site.baseurl | append: item.url }}">
10
+ <a class="reference internal {{ current }}" href="{{ item.url | relative_url }}">
11
11
  {{ item.title | default: item.url }}
12
12
  </a>
13
13
  </li>
@@ -1,5 +1,231 @@
1
1
  ---
2
- layout: basic
2
+ layout: plugins/compress
3
3
  ---
4
4
 
5
- <div class="section">{{ content }}</div>
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
+ }
82
+ </script>
83
+ <!-- link -->
84
+ <link rel="canonical" href="{{ schema_url }}">
85
+ {% if prev %}<link rel="prev" href="{{ prev.url | absolute_url | replace: 'http://', 'https://' }}">{% endif %}
86
+ {% if next %}<link rel="next" href="{{ next.url | absolute_url | replace: 'http://', 'https://' }}">{% endif %}
87
+ <!-- theme -->
88
+ <link rel="stylesheet" href="{{ cdn }}/assets/css/theme.css">
89
+ <link rel="stylesheet" href="{{ cdn }}/assets/css/rougify/{{ site.rougify | default: 'github' }}.css">
90
+ <style>{{ site_scss | scssify }}</style>
91
+ <!-- icon -->
92
+ <link rel="icon" type="image/svg+xml" href="{{ site.baseurl }}/assets/favicon.svg">
93
+ <!-- script -->
94
+ <!--[if lt IE 9]><script src="{{ cdn }}/assets/js/html5shiv.min.js"></script><![endif]-->
95
+ <script src="{{ cdn }}/assets/js/jquery.min.js"></script>
96
+ <script>
97
+ const ui = {
98
+ baseurl: "{{ site.baseurl }}",
99
+ title: "{{ site.title }}",
100
+ lang: "{{ lang }}",
101
+ admonition: {
102
+ note: "{{ __note }}",
103
+ tip: "{{ __tip }}",
104
+ warning: "{{ __warning }}",
105
+ danger: "{{ __danger }}"
106
+ }
107
+ };
108
+ </script>
109
+ {%- if jekyll.environment == "production" -%}
110
+ <script async src="https://www.googletagmanager.com/gtag/js?id=UA-174262874-1"></script>
111
+ <script>
112
+ gtag("set", {
113
+ "user_id": location.host
114
+ });
115
+ gtag("config", "UA-174262874-1");
116
+ </script>
117
+ {%- endif -%}
118
+ </head>
119
+
120
+ <body class="wy-body-for-nav">
121
+ <div class="wy-grid-for-nav">
122
+ <!-- NAV -->
123
+ <nav data-toggle="wy-nav-shift" class="wy-nav-side">
124
+ <div class="wy-side-scroll">
125
+ <div class="wy-side-nav-search">
126
+ {% if site.logo %}
127
+ <a href="{{ site.baseurl }}/{% if site_lang != lang %}{{ lang }}/{% endif %}">
128
+ <img src="{{ site.baseurl }}/{{ site.logo }}" class="logo" alt="{{ site.title }}">
129
+ </a>
130
+ {% else %}
131
+ <a href="{{ site.baseurl }}/{% if site_lang != lang %}{{ lang }}/{% endif %}" class="icon icon-home"> {{ site.title }}</a>
132
+ {% endif %}
133
+ <div role="search">
134
+ <form id="rtd-search-form" class="wy-form" action="{{ site.baseurl }}/search.html" method="get" autocomplete="off">
135
+ <input type="text" name="q" placeholder="{{ __search_docs }}...">
136
+ <input type="hidden" name="lang" value="{{ lang }}">
137
+ </form>
138
+ </div>
139
+ </div>
140
+ <div class="wy-menu wy-menu-vertical" data-spy="affix" role="navigation" aria-label="main navigation">{% include toctree.liquid %}</div>
141
+ {%- if site.embed -%}
142
+ <div class="wy-embed-wrap"><div class="wy-embed">{{ site.embed }}</div></div>
143
+ {%- endif -%}
144
+ </div>
145
+ </nav>
146
+
147
+ <section data-toggle="wy-nav-shift" class="wy-nav-content-wrap">
148
+ <!-- MOBILE NAV -->
149
+ <nav class="wy-nav-top" aria-label="top navigation">
150
+ <i data-toggle="wy-nav-top" class="fa fa-bars"></i>
151
+ <a href="{{ site.baseurl }}/{% if site_lang != lang %}{{ lang }}/{% endif %}">{{ site.title }}</a>
152
+ </nav>
153
+ <div class="wy-nav-content">
154
+ <div class="rst-content">
155
+ {% include breadcrumbs.liquid %}
156
+ <div class="document" role="main">
157
+ {%- if page.url == "/search.html" -%}
158
+ {{ content }}
159
+ {%- else -%}
160
+ <div class="section">{{ content }}</div>
161
+ {%- endif -%}
162
+
163
+ {% comment %} comments {% endcomment %}
164
+ {% if site.disqus %}
165
+ <div id="disqus_thread" class="articleComments"></div>
166
+ <script>
167
+ (function(script) {
168
+ script.src = "https://{{ site.disqus }}.disqus.com/embed.js";
169
+ script.setAttribute("data-timestamp", +new Date());
170
+ document.head.appendChild(script);
171
+ })(document.createElement("script"));
172
+ </script>
173
+ {% endif %}
174
+ </div>
175
+ {% include footer.liquid %}
176
+ </div>
177
+ </div>
178
+ </section>
179
+ </div>
180
+ {%- if site.addons %}{% include addons.liquid %}{% endif %}
181
+ <!-- script -->
182
+ <script src="{{ cdn }}/assets/js/theme.js"></script>
183
+ <script src="{{ cdn }}/assets/js/anchor.min.js"></script>
184
+ <script>
185
+ {% include assets/common.js %}
186
+ {% include assets/custom.js %} {{ site.script }}
187
+ </script>
188
+
189
+ {% comment %} Baidu link submit {% endcomment %}
190
+ {%- if site.baidu.linksubmit -%}
191
+ <script>
192
+ (function(script) {
193
+ script.src = "https://zz.bdstatic.com/linksubmit/push.js";
194
+ document.head.appendChild(script);
195
+ })(document.createElement("script"));
196
+ </script>
197
+ {%- endif -%}
198
+
199
+ {% comment %} Baidu Analytics {% endcomment %}
200
+ {%- if site.baidu.hm -%}
201
+ <script>
202
+ var _hmt = _hmt || [];
203
+ (function(script) {
204
+ script.src = "https://hm.baidu.com/hm.js?{{ site.baidu.hm }}";
205
+ document.head.appendChild(script);
206
+ })(document.createElement("script"));
207
+ </script>
208
+ {%- endif -%}
209
+
210
+ {% comment %} CNZZ Analytics {% endcomment %}
211
+ {%- if site.cnzz -%}
212
+ <span id="cnzz_stat_icon_{{ site.cnzz }}" style="display: none;"></span>
213
+ <script async src="https://v1.cnzz.com/z_stat.php?id={{ site.cnzz }}"></script>
214
+ {%- endif -%}
215
+
216
+ {% comment %} Google Analytics {% endcomment %}
217
+ {%- if site.google.gtag -%}
218
+ <!-- -->
219
+ <script async src="https://www.googletagmanager.com/gtag/js?id={{ site.google.gtag }}"></script>
220
+ <script>
221
+ gtag("config", "{{ site.google.gtag }}");
222
+ </script>
223
+ {%- endif -%}
224
+
225
+ {% comment %} Google AdSense {% endcomment %}
226
+ {%- if site.google.adsense -%}
227
+ <script data-ad-client="{{ site.google.adsense }}" async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
228
+ {%- endif -%}
229
+ </body>
230
+
231
+ </html>