jekyll-rtd-theme 1.0.3 → 1.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e6ab3ca0b72d6b6ae550ce6e421c2c80eb5367ab5e7219c31b565cf0c1c4fe38
4
- data.tar.gz: c90717607dab1545b3b6b12376198000f962ba4b8efeca14b355c19b09011583
3
+ metadata.gz: cd0100e421bd3ccbc2da040ef98ccdbc657f8aad2224c6544f2baeded4761d5d
4
+ data.tar.gz: 6162401684e143cd3690c51dd1e8dcf4430dfe60c3fa670bd9b0928bbd134160
5
5
  SHA512:
6
- metadata.gz: 59c624650e717629807657c4595356d9cf08b7ff8ffc516430eecb26689d9e64664d0ca7b72b5b4c3420c5b4ce14ea5c9b84c272ff74b8d4bc18720e83252419
7
- data.tar.gz: b424b8d443805882799667df8f8a4a7fa99c2046425bf915b2afa2c162d98db4f3e999342999f5411d16580d55613d6b1a5d4551882cadbe97321b106c8f9cc9
6
+ metadata.gz: 30acf708a39d44c221d0a01a74791df3ed94bf5384122ac472574ebd9196fcd25bfe1031c6ec32508e746f5c9444da6fdc2f0e02d896f94b521f627621bbf77a
7
+ data.tar.gz: 946c8bf42fb42359567acb26ab3c6ee2cd029d5a7ea5d412524d087081f83223b62bc24a1ba936bfbd4853c2e2cad09de7da1fc6cadceddd4bc49138bad6ae82
@@ -8,7 +8,7 @@
8
8
  {%- assign items = site.addons | default: addons -%}
9
9
  {% for item in items -%}
10
10
  {%- if addons contains item -%}
11
- {% include addons/source/{{ item }}.liquid %}
11
+ {% include addons/{{ item }}.liquid %}
12
12
  {%- endif -%}
13
13
  {% endfor -%}
14
14
  <hr>
@@ -1,7 +1,7 @@
1
1
  <div class="album">
2
2
  {%- for item in include.data -%}
3
3
  <a class="item" href="{{ item.link | default: '#' }}">
4
- <img src="{{ item.image }}">{{ item.title }}
4
+ <img src="{{ item.image }}" alt="{{ item.title }}">{{ item.title }}
5
5
  </a>
6
6
  {%- endfor -%}
7
7
  </div>
@@ -6,10 +6,10 @@
6
6
  {%- assign size_p1 = size | plus: 1 -%}
7
7
 
8
8
  {%- assign dir = site_pages | where: "url", workdir | first %}
9
- {% include extend/tabs.liquid size=size %}- [{{ dir.title | default: dir.url }}]({{ site.baseurl | append: dir.url }})
9
+ {% include extend/tabs.liquid size=size %}- [{{ dir.title | default: dir.url }}]({{ dir.url | relative_url }})
10
10
 
11
11
  {%- for item in workdir_files %}
12
- {% include extend/tabs.liquid size=size_p1 %}- [{{ item.title | default: item.url }}]({{ site.baseurl | append: item.url }})
12
+ {% include extend/tabs.liquid size=size_p1 %}- [{{ item.title | default: item.url }}]({{ item.url | relative_url }})
13
13
  {%- endfor -%}
14
14
 
15
15
  {%- for workdir in workdir_dirs %}{% include extend/list.liquid %}{% endfor -%}
@@ -7,7 +7,7 @@
7
7
  {%- if workdir_level == 2 %}
8
8
  <p class="caption"><span class="caption-text">{{ dir.title | default: dir.url }}</span></p>
9
9
  {%- else %}
10
- <a class="reference internal" href="{{ site.baseurl | append: dir.url }}">{{ dir.title | default: dir.url }}</a>
10
+ <a class="reference internal" href="{{ dir.url | relative_url }}">{{ dir.title | default: dir.url }}</a>
11
11
  {%- endif -%}
12
12
 
13
13
  <ul>
@@ -21,11 +21,12 @@
21
21
  {%- endif -%}
22
22
 
23
23
  <li class="toctree-l{{ level }} {{ current }}">
24
- <a class="reference internal {{ current }}" href="{{ site.baseurl | append: item.url }}">
24
+ <a class="reference internal {{ current }}" href="{{ item.url | relative_url }}">
25
25
  {%- if item.sort and site.show_sorted != false -%}
26
- {{ item.sort }}.
27
- {%- endif %}
28
- {{ item.title | default: item.url }}
26
+ {{ item.sort }}. {{ item.title | default: item.url }}
27
+ {%- else -%}
28
+ {{ item.title | default: item.url }}
29
+ {%- endif -%}
29
30
  </a>
30
31
  </li>
31
32
  {%- endfor -%}
@@ -2,12 +2,12 @@
2
2
  {%- if next or prev -%}
3
3
  <div class="rst-footer-buttons" role="navigation" aria-label="footer navigation">
4
4
  {%- if next -%}
5
- <a href="{{ site.baseurl | append: next.url }}" class="btn btn-neutral float-right" title="{{ next.title }}" accesskey="n" rel="next">
5
+ <a href="{{ next.url | relative_url }}" class="btn btn-neutral float-right" title="{{ next.title }}" accesskey="n" rel="next">
6
6
  {{- __next }} <span class="fa fa-arrow-circle-right"></span>
7
7
  </a>
8
8
  {%- endif -%}
9
9
  {%- if prev -%}
10
- <a href="{{ site.baseurl | append: prev.url }}" class="btn btn-neutral float-left" title="{{ prev.title }}" accesskey="p" rel="prev">
10
+ <a href="{{ prev.url | relative_url }}" class="btn btn-neutral float-left" title="{{ prev.title }}" accesskey="p" rel="prev">
11
11
  <span class="fa fa-arrow-circle-left"></span> {{ __previous -}}
12
12
  </a>
13
13
  {%- endif -%}
@@ -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,10 +1,23 @@
1
1
  {%- assign description = content | strip_html | split: " " | join: " " | escape | truncate: 150 -%}
2
- {%- assign version = "1.0.3" -%}
2
+ {%- assign version = "1.0.4" -%}
3
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 -%}
7
+
8
+ {% comment %} scss {% endcomment %}
9
+ {%- capture site_scss -%}
10
+ @import "site.scss";
11
+ {% if site.fluid %}@import "fluid.scss";{% endif %}
12
+ {% include assets/custom.scss %} {{ site.scss }}
13
+ {%- endcapture -%}
14
+
15
+ {% comment %} cdn {% endcomment %}
16
+ {%- if site.debug -%}
17
+ {%- assign cdn = site.baseurl -%}
18
+ {%- else -%}
19
+ {%- assign cdn = "https://cdn.jsdelivr.net/gh/rundocs/jekyll-rtd-theme@" | append: version -%}
20
+ {%- endif -%}
8
21
 
9
22
  {% comment %} github-metadata {% endcomment %}
10
23
  {%- if site.github_metadata != false -%}
@@ -36,25 +49,8 @@
36
49
  {%- assign addons = "i18n, plugins, analytics" | split: ", " -%}
37
50
  {%- endif -%}
38
51
 
39
- {% comment %} scss and script {% endcomment %}
40
- {%- capture site_scss -%}
41
- @import "site.scss";
42
- {%- if site.fluid %}
43
- @import "fluid.scss";
44
- {% endif -%}
45
- {% include assets/custom.scss %} {{ site.scss }}
46
- {%- endcapture -%}
47
-
48
- {%- capture site_script %}
49
- {% include assets/common.js %}
50
- {% include assets/custom.js %} {{ site.script }}
51
- {%- endcapture -%}
52
-
53
- {%- if site.debug -%}
54
- {%- assign cdn = site.baseurl -%}
55
- {%- else -%}
56
- {%- assign cdn = "https://cdn.jsdelivr.net/gh/rundocs/jekyll-rtd-theme@" | append: version -%}
57
- {%- endif -%}
52
+ {%- include reset/site_pages.liquid %}
53
+ {%- include reset/i18n.liquid -%}
58
54
 
59
55
  {% comment %} title {% endcomment %}
60
56
  {%- case page.url -%}
@@ -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>
@@ -14,13 +14,13 @@ layout: plugins/compress
14
14
  {%- endif %}
15
15
  -->
16
16
 
17
- <html class="writer-html5" lang="{{ lang }}">
17
+ <html amp class="writer-html5" lang="{{ lang }}">
18
18
 
19
19
  <head>
20
20
  <meta charset="utf-8">
21
21
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
22
22
  <meta content="IE=Edge" http-equiv="X-UA-Compatible">
23
- <title>{{ title }}</title>
23
+ <title>{{ title | truncate: 110 }}</title>
24
24
  <script>
25
25
  window.dataLayer = window.dataLayer || [];
26
26
 
@@ -41,22 +41,49 @@ layout: plugins/compress
41
41
  <meta name="author" content="{{ author }}">
42
42
  <meta name="revised" content="{{ commit }}">
43
43
  <meta name="generator" content="jekyll-rtd-theme v{{ version }}">
44
- <!-- custom meta -->
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 -->
45
53
  {% for meta in site.meta -%}
46
54
  <meta name="{{ meta.first }}" content="{{ meta.last }}">
47
55
  {% endfor -%}
48
- <!-- og -->
49
- {% include addons/seo/og.liquid %}
50
56
  <!-- schema -->
51
- {% include addons/seo/schema.liquid %}
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>
52
83
  <!-- link -->
53
- {% if prev -%}
54
- <link rel="prev" href="{{ prev.url | absolute_url | xml_escape }}">
55
- {%- endif -%}
56
- {%- if next -%}
57
- <link rel="next" href="{{ next.url | absolute_url | xml_escape }}">
58
- {%- endif -%}
59
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 %}
60
87
  <!-- theme -->
61
88
  <link rel="stylesheet" href="{{ cdn }}/assets/css/theme.css">
62
89
  <link rel="stylesheet" href="{{ cdn }}/assets/css/rougify/{{ site.rougify | default: 'github' }}.css">
@@ -64,9 +91,7 @@ layout: plugins/compress
64
91
  <!-- icon -->
65
92
  <link rel="icon" type="image/svg+xml" href="{{ site.baseurl }}/assets/favicon.svg">
66
93
  <!-- script -->
67
- <!--[if lt IE 9]>
68
- <script src="{{ cdn }}/assets/js/html5shiv.min.js"></script>
69
- <![endif]-->
94
+ <!--[if lt IE 9]><script src="{{ cdn }}/assets/js/html5shiv.min.js"></script><![endif]-->
70
95
  <script src="{{ cdn }}/assets/js/jquery.min.js"></script>
71
96
  <script>
72
97
  const ui = {
@@ -94,7 +119,7 @@ layout: plugins/compress
94
119
 
95
120
  <body class="wy-body-for-nav">
96
121
  <div class="wy-grid-for-nav">
97
- <!-- SIDE NAV, TOGGLES ON MOBILE -->
122
+ <!-- NAV -->
98
123
  <nav data-toggle="wy-nav-shift" class="wy-nav-side">
99
124
  <div class="wy-side-scroll">
100
125
  <div class="wy-side-nav-search">
@@ -112,16 +137,13 @@ layout: plugins/compress
112
137
  </form>
113
138
  </div>
114
139
  </div>
115
- <div class="wy-menu wy-menu-vertical" data-spy="affix" role="navigation" aria-label="main navigation">
116
- {% include toctree.liquid %}
117
- </div>
140
+ <div class="wy-menu wy-menu-vertical" data-spy="affix" role="navigation" aria-label="main navigation">{% include toctree.liquid %}</div>
118
141
  {%- if site.embed -%}
119
- <div class="wy-embed-wrap">
120
- <div class="wy-embed">{{ site.embed }}</div>
121
- </div>
142
+ <div class="wy-embed-wrap"><div class="wy-embed">{{ site.embed }}</div></div>
122
143
  {%- endif -%}
123
144
  </div>
124
145
  </nav>
146
+
125
147
  <section data-toggle="wy-nav-shift" class="wy-nav-content-wrap">
126
148
  <!-- MOBILE NAV -->
127
149
  <nav class="wy-nav-top" aria-label="top navigation">
@@ -131,15 +153,24 @@ layout: plugins/compress
131
153
  <div class="wy-nav-content">
132
154
  <div class="rst-content">
133
155
  {% include breadcrumbs.liquid %}
134
- <div role="main" class="document" itemscope="itemscope" itemtype="http://schema.org/Article">
135
- <div itemprop="articleBody">
136
- {%- if page.url == "/search.html" -%}
137
- {{ content }}
138
- {%- else -%}
139
- <div class="section">{{ content }}</div>
140
- {%- endif -%}
141
- </div>
142
- {% include addons/comments/disqus.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 %}
143
174
  </div>
144
175
  {% include footer.liquid %}
145
176
  </div>
@@ -150,11 +181,51 @@ layout: plugins/compress
150
181
  <!-- script -->
151
182
  <script src="{{ cdn }}/assets/js/theme.js"></script>
152
183
  <script src="{{ cdn }}/assets/js/anchor.min.js"></script>
153
- <script>{{ site_script }}</script>
154
- <!-- analytics -->
155
- {%- include addons/analytics/baidu.liquid -%}
156
- {%- include addons/analytics/cnzz.liquid -%}
157
- {%- include addons/analytics/google.liquid -%}
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 -%}
158
229
  </body>
159
230
 
160
231
  </html>
@@ -6,4 +6,4 @@ permalink: /robots.txt
6
6
  User-agent: *
7
7
  Allow: /
8
8
 
9
- Sitemap: {{ "sitemap.xml" | absolute_url }}
9
+ Sitemap: {{ "sitemap.xml" | absolute_url | replace: "http://", "https://" }}
@@ -0,0 +1,17 @@
1
+ ---
2
+ layout: plugins/compress
3
+ permalink: /sitemap.xml
4
+ ---
5
+
6
+ {%- include reset/site_pages.liquid -%}
7
+
8
+ <?xml version="1.0" encoding="UTF-8"?>
9
+ <urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
10
+ {%- for page in site_pages -%}
11
+ <url>
12
+ <loc>{{ page.url | absolute_url | replace: "http://", "https://" | xml_escape }}</loc>
13
+ <priority>{{ page.content | size | divided_by: 2048.0 | times: 10 | ceil | divided_by: 10.0 | at_least: 0.1 | at_most: 1.0 }}</priority>
14
+ <lastmod>{{ site.time | date_to_xmlschema }}</lastmod>
15
+ </url>
16
+ {%- endfor %}
17
+ </urlset>
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-rtd-theme
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.3
4
+ version: 1.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - saowang
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-08-08 00:00:00.000000000 Z
11
+ date: 2020-08-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: github-pages
@@ -34,16 +34,10 @@ files:
34
34
  - LICENSE
35
35
  - README.md
36
36
  - _includes/addons.liquid
37
- - _includes/addons/analytics/baidu.liquid
38
- - _includes/addons/analytics/cnzz.liquid
39
- - _includes/addons/analytics/google.liquid
40
- - _includes/addons/comments/disqus.liquid
41
- - _includes/addons/seo/og.liquid
42
- - _includes/addons/seo/schema.liquid
43
- - _includes/addons/source/analytics.liquid
44
- - _includes/addons/source/github.liquid
45
- - _includes/addons/source/i18n.liquid
46
- - _includes/addons/source/plugins.liquid
37
+ - _includes/addons/analytics.liquid
38
+ - _includes/addons/github.liquid
39
+ - _includes/addons/i18n.liquid
40
+ - _includes/addons/plugins.liquid
47
41
  - _includes/album.liquid
48
42
  - _includes/assets/common.js
49
43
  - _includes/assets/custom.js
@@ -65,7 +59,6 @@ files:
65
59
  - _includes/reset/defaults.liquid
66
60
  - _includes/reset/i18n.liquid
67
61
  - _includes/reset/languages.liquid
68
- - _includes/reset/schema.liquid
69
62
  - _includes/reset/site_pages.liquid
70
63
  - _includes/reset/workdir.liquid
71
64
  - _includes/toctree.liquid
@@ -125,7 +118,7 @@ files:
125
118
  - assets/pages.json
126
119
  - assets/robots.txt
127
120
  - assets/search.liquid
128
- - assets/sitemap.xml
121
+ - assets/sitemap.liquid
129
122
  homepage: https://github.com/rundocs/jekyll-rtd-theme
130
123
  licenses:
131
124
  - MIT
@@ -148,5 +141,5 @@ requirements: []
148
141
  rubygems_version: 3.1.2
149
142
  signing_key:
150
143
  specification_version: 4
151
- summary: Just another documentation theme compatible with GitHub Pages, based on sphinx_rtd_theme
144
+ summary: Just another jekyll docs theme compatible with GitHub Pages, based on sphinx_rtd_theme
152
145
  test_files: []
@@ -1,18 +0,0 @@
1
- {%- if site.baidu.linksubmit -%}
2
- <script>
3
- (function(script) {
4
- script.src = "https://zz.bdstatic.com/linksubmit/push.js";
5
- document.head.appendChild(script);
6
- })(document.createElement("script"));
7
- </script>
8
- {%- endif -%}
9
-
10
- {%- if site.baidu.hm -%}
11
- <script>
12
- var _hmt = _hmt || [];
13
- (function(script) {
14
- script.src = "https://hm.baidu.com/hm.js?{{ site.baidu.hm }}";
15
- document.head.appendChild(script);
16
- })(document.createElement("script"));
17
- </script>
18
- {%- endif -%}
@@ -1,4 +0,0 @@
1
- {%- if site.cnzz -%}
2
- <span id="cnzz_stat_icon_{{ site.cnzz }}" style="display: none;"></span>
3
- <script async src="https://v1.cnzz.com/z_stat.php?id={{ site.cnzz }}"></script>
4
- {%- endif -%}
@@ -1,12 +0,0 @@
1
- {%- if site.google.gtag -%}
2
- <!-- Google Analytics -->
3
- <script async src="https://www.googletagmanager.com/gtag/js?id={{ site.google.gtag }}"></script>
4
- <script>
5
- gtag("config", "{{ site.google.gtag }}");
6
- </script>
7
- {%- endif -%}
8
-
9
- {%- if site.google.adsense -%}
10
- <!-- Google AdSense -->
11
- <script data-ad-client="{{ site.google.adsense }}" async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
12
- {%- endif -%}
@@ -1,10 +0,0 @@
1
- {% if site.disqus %}
2
- <div id="disqus_thread" class="articleComments"></div>
3
- <script>
4
- (function(script) {
5
- script.src = "https://{{ site.disqus }}.disqus.com/embed.js";
6
- script.setAttribute("data-timestamp", +new Date());
7
- document.head.appendChild(script);
8
- })(document.createElement("script"));
9
- </script>
10
- {% endif %}
@@ -1,7 +0,0 @@
1
- <meta property="og:title" content="{{ title }}">
2
- <meta property="og:description" content="{{ description }}">
3
- <meta property="og:locale" content="{{ lang }}">
4
- <meta property="og:url" content="{{ schema_url }}">
5
- <meta property="og:type" content="article">
6
- <meta property="article:author" content="{{ author }}">
7
- <meta property="article:modified_time" content="{{ schema_lastmod }}">
@@ -1,10 +0,0 @@
1
- <script type="application/ld+json">
2
- {
3
- "@context": "http://schema.org",
4
- "@type": "Article",
5
- "name": "{{ title }}",
6
- "author": "{{ author }}",
7
- "url": "{{ schema_url }}",
8
- "dateModified": "{{ schema_lastmod }}"
9
- }
10
- </script>
@@ -1,6 +0,0 @@
1
- {%- assign schema_url = page.url | absolute_url | xml_escape -%}
2
- {%- assign schema_lastmod = page.date | default: site.time | date_to_xmlschema -%}
3
-
4
- {%- assign schema_weight_title = page.title | size | divided_by: 200.0 -%}
5
- {%- assign schema_weight_content = page.content | size | divided_by: 1024.0 -%}
6
- {%- assign schema_priority = schema_weight_content | plus: schema_weight_title | times: 10 | ceil | divided_by: 10.0 | at_least: 0.1 | at_most: 1.0 -%}
@@ -1,18 +0,0 @@
1
- ---
2
- layout: plugins/compress
3
- permalink: /sitemap.xml
4
- ---
5
-
6
- {%- include reset/site_pages.liquid -%}
7
-
8
- <?xml version="1.0" encoding="UTF-8"?>
9
- <urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
10
- {%- for page in site_pages -%}
11
- {% include reset/schema.liquid %}
12
- <url>
13
- <loc>{{ schema_url }}</loc>
14
- <priority>{{ schema_priority }}</priority>
15
- <lastmod>{{ schema_lastmod }}</lastmod>
16
- </url>
17
- {%- endfor %}
18
- </urlset>