jekyll-rtd-theme 1.0.3 → 1.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +12 -18
- data/_includes/addons.liquid +1 -1
- data/_includes/addons/analytics.liquid +8 -0
- data/_includes/addons/{source/github.liquid → github.liquid} +0 -0
- data/_includes/addons/{source/i18n.liquid → i18n.liquid} +0 -0
- data/_includes/addons/{source/plugins.liquid → plugins.liquid} +0 -0
- data/_includes/album.liquid +1 -1
- data/_includes/assets/common.js +9 -2
- data/_includes/extend/list.liquid +2 -2
- data/_includes/extend/toctree.liquid +14 -7
- data/_includes/footer.liquid +4 -4
- data/_includes/i18n/es.liquid +29 -0
- data/_includes/i18n/sv.liquid +29 -0
- data/_includes/list.liquid +1 -1
- data/_includes/reset/defaults.liquid +20 -23
- data/_includes/reset/workdir.liquid +2 -2
- data/_includes/toctree.liquid +7 -2
- data/_layouts/default.liquid +107 -40
- data/_layouts/plugins/compress.liquid +12 -1
- data/_sass/_album.scss +2 -8
- data/_sass/{site.scss → jekyll-rtd-theme.scss} +46 -4
- data/assets/404.liquid +1 -1
- data/assets/{favicon.svg → favicon.liquid} +6 -1
- data/assets/{pages.json → pages.liquid} +0 -0
- data/assets/robots.liquid +9 -0
- data/assets/search.liquid +2 -2
- data/assets/sitemap.liquid +17 -0
- metadata +14 -19
- data/_includes/addons/analytics/baidu.liquid +0 -18
- data/_includes/addons/analytics/cnzz.liquid +0 -4
- data/_includes/addons/analytics/google.liquid +0 -12
- 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/addons/source/analytics.liquid +0 -14
- data/_includes/reset/schema.liquid +0 -6
- data/assets/robots.txt +0 -9
- data/assets/sitemap.xml +0 -18
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2e823e3b01e51ae8671337a94314e736ab6227762eb7477bf0ae8fbb0d0ad1c3
|
4
|
+
data.tar.gz: 222f110766405f9cd0a299dfccde339f04ac85ea82abf8258ca471a3d39353e5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9ded9e6c16623c617ea73684a082742b29bf850f4bf7dab8d99e3ee58cf2dfb6730c97f0a6863b5ad9cb9be71436b119947544f4d610e3e415c9a875792fd0b1
|
7
|
+
data.tar.gz: acdbeaf0a2631fe40d1c08b2c2245ce18af876fcba2304b4b949368476a785629373f6241c419a8776293672531e790385277ad992f24f7e8879737e759d6ddf
|
data/README.md
CHANGED
@@ -5,39 +5,33 @@
|
|
5
5
|
[![](https://data.jsdelivr.com/v1/package/gh/rundocs/jekyll-rtd-theme/badge)][cdn]
|
6
6
|
[![](https://www.codefactor.io/repository/github/rundocs/jekyll-rtd-theme/badge)][codefactor]
|
7
7
|
[![](https://img.shields.io/badge/featured%20on-JekyllThemes-red.svg)](https://jekyll-themes.com)
|
8
|
+
[![](https://badges.gitter.im/rundocs/jekyll-rtd-theme.svg)][gitter]
|
8
9
|
|
9
10
|
Just another documentation theme compatible with GitHub Pages, based on sphinx_rtd_theme
|
10
11
|
|
11
|
-
![]
|
12
|
+
![](https://user-images.githubusercontent.com/68011645/89026666-ad3a8680-d35b-11ea-9f4b-d3fe26ae12ed.png)
|
12
13
|
|
13
|
-
##
|
14
|
-
-
|
14
|
+
## Features
|
15
|
+
- Automatically generate sidebar based on directory
|
15
16
|
- Only need one file `_config.yml` to configure site
|
16
|
-
-
|
17
|
-
- Compatible with GitHub Pages.
|
18
|
-
- Optimized for search engines with support for Open Graph data.
|
19
|
-
- Optimized for search engines with `robots.txt` and `sitemap.xml`.
|
20
|
-
- Search engine (RegExp supported)
|
21
|
-
- Commenting support
|
22
|
-
- Google,Baidu,CNZZ Analytics support.
|
17
|
+
- Search engine optimized
|
23
18
|
- Multi-language supported
|
24
|
-
-
|
19
|
+
- Document search (RegExp supported)
|
20
|
+
- Support third-party comments
|
21
|
+
- Google, Baidu, CNZZ Analytics supported
|
25
22
|
|
26
23
|
## Roadmap
|
27
|
-
See the [open issues]
|
24
|
+
See the [open issues](https://github.com/rundocs/jekyll-rtd-theme/issues) for a list of proposed features (and known issues)
|
28
25
|
|
29
26
|
## Documents
|
30
|
-
|
27
|
+
You can view theme related [tests](https://rundocs.github.io/jekyll-rtd-theme), For full documentation, please refer to [https://rundocs.io](https://rundocs.io)
|
31
28
|
|
32
29
|
## The License
|
33
|
-
The theme is available as open source under the terms of the [MIT License]
|
30
|
+
The theme is available as open source under the terms of the [MIT License](https://github.com/rundocs/jekyll-rtd-theme/blob/master/LICENSE).
|
34
31
|
|
35
32
|
|
36
33
|
[repository]: https://github.com/rundocs/jekyll-rtd-theme
|
37
|
-
[issues]: https://github.com/rundocs/jekyll-rtd-theme/issues
|
38
|
-
[license]: https://github.com/rundocs/jekyll-rtd-theme/blob/master/LICENSE
|
39
|
-
[site]: https://jekyll-rtd-theme.rundocs.io
|
40
34
|
[rubygem]: https://rubygems.org/gems/jekyll-rtd-theme
|
41
35
|
[cdn]: https://cdn.jsdelivr.net/gh/rundocs/jekyll-rtd-theme/
|
42
36
|
[codefactor]: https://www.codefactor.io/repository/github/rundocs/jekyll-rtd-theme
|
43
|
-
[
|
37
|
+
[gitter]: https://gitter.im/rundocs/jekyll-rtd-theme?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge
|
data/_includes/addons.liquid
CHANGED
File without changes
|
File without changes
|
File without changes
|
data/_includes/album.liquid
CHANGED
data/_includes/assets/common.js
CHANGED
@@ -1,4 +1,5 @@
|
|
1
1
|
$(document).ready(function() {
|
2
|
+
let analytics = new URL("https://rundocs-analytics.glitch.me/collect?v={{ version }}&lang={{ lang }}");
|
2
3
|
let highlight = new URL(location.href).searchParams.get("highlight");
|
3
4
|
|
4
5
|
SphinxRtdTheme.Navigation.reset = function() {
|
@@ -33,8 +34,14 @@ $(document).ready(function() {
|
|
33
34
|
});
|
34
35
|
}
|
35
36
|
for (let item in ui.admonition) {
|
36
|
-
|
37
|
-
|
37
|
+
$(".admonition-title").each(function() {
|
38
|
+
$(this).html(ui.admonition[$(this).attr("ui")]);
|
39
|
+
});
|
38
40
|
}
|
39
41
|
anchors.add();
|
42
|
+
|
43
|
+
analytics.searchParams.append("user_lang", navigator.language);
|
44
|
+
analytics.searchParams.append("host", location.host);
|
45
|
+
analytics.searchParams.append("platform", navigator.platform);
|
46
|
+
$.getJSON(analytics.toString(), (data) => $("#counter").html(data.count));
|
40
47
|
});
|
@@ -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 }}]({{
|
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 }}]({{
|
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 -%}
|
@@ -1,18 +1,22 @@
|
|
1
1
|
{%- include reset/workdir.liquid %}
|
2
2
|
|
3
|
+
{% comment %} display the directory name {% endcomment %}
|
3
4
|
{%- assign dir = site_pages | where: "url", workdir | first -%}
|
4
5
|
{%- if site_lang != lang -%}
|
6
|
+
{% comment %} current in language directory (level-1) {% endcomment %}
|
5
7
|
{%- assign workdir_level = workdir_level | minus: 1 -%}
|
6
8
|
{%- endif -%}
|
7
9
|
{%- if workdir_level == 2 %}
|
10
|
+
{% comment %} display the root sub-directory as "p.caption" {% endcomment %}
|
8
11
|
<p class="caption"><span class="caption-text">{{ dir.title | default: dir.url }}</span></p>
|
9
12
|
{%- else %}
|
10
|
-
<a class="reference internal" href="{{
|
13
|
+
<a class="reference internal" href="{{ dir.url | relative_url }}">{{ dir.title | default: dir.url }}</a>
|
11
14
|
{%- endif -%}
|
12
15
|
|
13
16
|
<ul>
|
17
|
+
{% comment %} list file {% endcomment %}
|
14
18
|
{%- for item in workdir_files -%}
|
15
|
-
{%- assign level = item.dir | append: "temp/" | split: "/" | size | minus:
|
19
|
+
{%- assign level = item.dir | append: "temp" | replace_first: "/", "" | split: "/" | size | minus: 1 -%}
|
16
20
|
{%- capture current -%}
|
17
21
|
{%- if page.url == item.url %}current{% endif -%}
|
18
22
|
{%- endcapture %}
|
@@ -21,16 +25,19 @@
|
|
21
25
|
{%- endif -%}
|
22
26
|
|
23
27
|
<li class="toctree-l{{ level }} {{ current }}">
|
24
|
-
<a class="reference internal {{ current }}" href="{{
|
28
|
+
<a class="reference internal {{ current }}" href="{{ item.url | relative_url }}">
|
25
29
|
{%- if item.sort and site.show_sorted != false -%}
|
26
|
-
{{ item.sort }}.
|
27
|
-
{%-
|
28
|
-
|
30
|
+
{{ item.sort }}. {{ item.title | default: item.url }}
|
31
|
+
{%- else -%}
|
32
|
+
{{ item.title | default: item.url }}
|
33
|
+
{%- endif -%}
|
29
34
|
</a>
|
30
35
|
</li>
|
31
36
|
{%- endfor -%}
|
37
|
+
|
38
|
+
{% comment %} list dirs {% endcomment %}
|
32
39
|
{%- for workdir in workdir_dirs -%}
|
33
|
-
{%- assign level = workdir | append: "temp/" | split: "/" | size | minus:
|
40
|
+
{%- assign level = workdir | append: "temp" | replace_first: "/", "" | split: "/" | size | minus: 2 %}
|
34
41
|
{%- if site_lang != lang -%}
|
35
42
|
{%- assign level = level | minus: 1 -%}
|
36
43
|
{%- endif -%}
|
data/_includes/footer.liquid
CHANGED
@@ -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="{{
|
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="{{
|
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 -%}
|
@@ -31,7 +31,7 @@
|
|
31
31
|
</p>
|
32
32
|
</div>
|
33
33
|
{%- endif -%}
|
34
|
-
<div role="contentinfo" class="copyright
|
35
|
-
Powered by <a href="https://rundocs.io">rundocs.io</a>
|
34
|
+
<div role="contentinfo" class="copyright rundocs">
|
35
|
+
<p>Powered by <a href="https://rundocs.io">rundocs.io</a> using the jekyll docs theme <a href="https://rundocs.github.io/jekyll-rtd-theme">jekyll-rtd-theme</a></p>
|
36
36
|
</div>
|
37
37
|
</footer>
|
@@ -0,0 +1,29 @@
|
|
1
|
+
{% comment %} Spanish {% endcomment %}
|
2
|
+
{%- assign __github = "Github" -%}
|
3
|
+
{%- assign __homepage = "Página principal" -%}
|
4
|
+
{%- assign __issues = "Cuestiones" -%}
|
5
|
+
{%- assign __download = "Descargar" -%}
|
6
|
+
{%- assign __plugins = "Complementos temáticos" -%}
|
7
|
+
{%- assign __translations = "Traducciones" -%}
|
8
|
+
{%- assign __statistics = "Estadísticas" -%}
|
9
|
+
{%- assign __total_visits = "Visitas totales:" -%}
|
10
|
+
|
11
|
+
{%- assign __note = "Observaciones" -%}
|
12
|
+
{%- assign __tip = "Consejos" -%}
|
13
|
+
{%- assign __warning = "Advertencia" -%}
|
14
|
+
{%- assign __danger = "Peligro" -%}
|
15
|
+
|
16
|
+
{%- assign __next = "Siguiente página" -%}
|
17
|
+
{%- assign __previous = "Pagina anterior" -%}
|
18
|
+
{%- assign __copyright = "Derechos de autor" -%}
|
19
|
+
{%- assign __revision = "Revisión" -%}
|
20
|
+
|
21
|
+
{%- assign __404 = "404" -%}
|
22
|
+
{%- assign __not_found = "¡Esta página aún no existe!" -%}
|
23
|
+
|
24
|
+
{%- assign __searching = "Buscando" -%}
|
25
|
+
{%- assign __search = "Buscar" -%}
|
26
|
+
{%- assign __search_docs = "Buscar documentos" -%}
|
27
|
+
{%- assign __search_results = "Resultados de la búsqueda" -%}
|
28
|
+
{%- assign __search_results_found = "Búsqueda finalizada, se encontraron # páginas que coinciden con la consulta de búsqueda." -%}
|
29
|
+
{%- assign __search_results_not_found = "Su búsqueda no coincide con ningún documento, asegúrese de que todos los caracteres estén escritos correctamente." -%}
|
@@ -0,0 +1,29 @@
|
|
1
|
+
{% comment %} Swedish {% endcomment %}
|
2
|
+
{%- assign __github = "Github" -%}
|
3
|
+
{%- assign __homepage = "Hemsida" -%}
|
4
|
+
{%- assign __issues = "frågor" -%}
|
5
|
+
{%- assign __download = "Ladda ner" -%}
|
6
|
+
{%- assign __plugins = "Tema Plugins" -%}
|
7
|
+
{%- assign __translations = "översättningar" -%}
|
8
|
+
{%- assign __statistics = "Statistik" -%}
|
9
|
+
{%- assign __total_visits = "Totalt antal besök:" -%}
|
10
|
+
|
11
|
+
{%- assign __note = "Anmärkningar" -%}
|
12
|
+
{%- assign __tip = "tips" -%}
|
13
|
+
{%- assign __warning = "Varning" -%}
|
14
|
+
{%- assign __danger = "Fara" -%}
|
15
|
+
|
16
|
+
{%- assign __next = "Nästa sida" -%}
|
17
|
+
{%- assign __previous = "Föregående sida" -%}
|
18
|
+
{%- assign __copyright = "upphovsrätt" -%}
|
19
|
+
{%- assign __revision = "Revision" -%}
|
20
|
+
|
21
|
+
{%- assign __404 = "404" -%}
|
22
|
+
{%- assign __not_found = "Den här sidan finns inte ännu!" -%}
|
23
|
+
|
24
|
+
{%- assign __searching = "Sökande" -%}
|
25
|
+
{%- assign __search = "Sök" -%}
|
26
|
+
{%- assign __search_docs = "Sök i dokument" -%}
|
27
|
+
{%- assign __search_results = "sökresultat" -%}
|
28
|
+
{%- assign __search_results_found = "Sökningen är klar, hittade # sida (er) som matchar sökfrågan." -%}
|
29
|
+
{%- assign __search_results_not_found = "Din sökning matchade inga dokument, se till att alla tecken stavas korrekt!" -%}
|
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,10 +1,24 @@
|
|
1
1
|
{%- assign description = content | strip_html | split: " " | join: " " | escape | truncate: 150 -%}
|
2
|
-
{%- assign version = "1.
|
2
|
+
{%- assign version = "1.1.2" -%}
|
3
3
|
{%- assign addons = "github, i18n, plugins, analytics" | split: ", " -%}
|
4
4
|
|
5
|
-
{%-
|
6
|
-
{%-
|
7
|
-
{%-
|
5
|
+
{%- assign schema_date = page.date | default: site.time | date_to_xmlschema -%}
|
6
|
+
{%- assign schema_modi = site.time | date_to_xmlschema -%}
|
7
|
+
{%- assign schema_surl = page.url | absolute_url | replace: 'http://', 'https://' | xml_escape -%}
|
8
|
+
|
9
|
+
{% comment %} scss {% endcomment %}
|
10
|
+
{%- capture site_scss -%}
|
11
|
+
@import "jekyll-rtd-theme.scss";
|
12
|
+
{% if site.fluid %}@import "fluid.scss";{% endif %}
|
13
|
+
{% include assets/custom.scss %} {{ site.scss }}
|
14
|
+
{%- endcapture -%}
|
15
|
+
|
16
|
+
{% comment %} cdn {% endcomment %}
|
17
|
+
{%- if site.debug -%}
|
18
|
+
{%- assign cdn = site.baseurl -%}
|
19
|
+
{%- else -%}
|
20
|
+
{%- assign cdn = "https://cdn.jsdelivr.net/gh/rundocs/jekyll-rtd-theme@" | append: version -%}
|
21
|
+
{%- endif -%}
|
8
22
|
|
9
23
|
{% comment %} github-metadata {% endcomment %}
|
10
24
|
{%- if site.github_metadata != false -%}
|
@@ -36,25 +50,8 @@
|
|
36
50
|
{%- assign addons = "i18n, plugins, analytics" | split: ", " -%}
|
37
51
|
{%- endif -%}
|
38
52
|
|
39
|
-
{
|
40
|
-
{%-
|
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 -%}
|
53
|
+
{%- include reset/site_pages.liquid %}
|
54
|
+
{%- include reset/i18n.liquid -%}
|
58
55
|
|
59
56
|
{% comment %} title {% endcomment %}
|
60
57
|
{%- case page.url -%}
|
@@ -8,12 +8,12 @@
|
|
8
8
|
{%- endif -%}
|
9
9
|
{%- endif -%}
|
10
10
|
|
11
|
-
{%- assign workdir_level = workdir | append: "temp/" | split: "/" | size
|
11
|
+
{%- assign workdir_level = workdir | append: "temp" | replace_first: "/", "" | split: "/" | size -%}
|
12
12
|
{%- assign workdir_files = site_files | where_exp: "item", "item.dir == workdir" -%}
|
13
13
|
|
14
14
|
{%- capture items -%}
|
15
15
|
{%- for item in site_dirs -%}
|
16
|
-
{%- assign current_m1 = item.dir | append: "temp/" | split: "/" | size | minus:
|
16
|
+
{%- assign current_m1 = item.dir | append: "temp" | replace_first: "/", "" | split: "/" | size | minus: 1 -%}
|
17
17
|
{%- if workdir_level == current_m1 -%}
|
18
18
|
{%- assign temp = workdir | append: "@@" -%}
|
19
19
|
{%- assign dir = item.dir | replace: workdir, temp | split: "@@" | first -%}
|
data/_includes/toctree.liquid
CHANGED
@@ -1,17 +1,22 @@
|
|
1
1
|
{%- include reset/workdir.liquid %}
|
2
2
|
|
3
|
+
{% comment %} list the root files {% endcomment %}
|
3
4
|
<ul>
|
4
5
|
{%- for item in workdir_files -%}
|
5
|
-
{%- assign level = item.dir | append: "temp/" | split: "/" | size
|
6
|
+
{%- assign level = item.dir | append: "temp" | replace_first: "/", "" | split: "/" | size -%}
|
7
|
+
{%- if site_lang != lang -%}
|
8
|
+
{%- assign level = level | minus: 1 -%}
|
9
|
+
{%- endif -%}
|
6
10
|
{%- capture current -%}
|
7
11
|
{%- if page.url == item.url %}current{% endif -%}
|
8
12
|
{%- endcapture %}
|
9
13
|
<li class="toctree-l{{ level }} {{ current }}">
|
10
|
-
<a class="reference internal {{ current }}" href="{{
|
14
|
+
<a class="reference internal {{ current }}" href="{{ item.url | relative_url }}">
|
11
15
|
{{ item.title | default: item.url }}
|
12
16
|
</a>
|
13
17
|
</li>
|
14
18
|
{%- endfor %}
|
15
19
|
</ul>
|
16
20
|
|
21
|
+
{% comment %} list the root dirs {% endcomment %}
|
17
22
|
{%- for workdir in workdir_dirs %}{% include extend/toctree.liquid %}{% endfor -%}
|
data/_layouts/default.liquid
CHANGED
@@ -20,7 +20,7 @@ layout: plugins/compress
|
|
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,32 +41,60 @@ 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
|
-
<!--
|
44
|
+
<!-- meta-ogp -->
|
45
|
+
{% comment %} https://ogp.me {% endcomment %}
|
46
|
+
<meta property="og:title" content="{{ title }}">
|
47
|
+
<meta property="og:description" content="{{ description }}">
|
48
|
+
<meta property="og:locale" content="{{ lang }}">
|
49
|
+
<meta property="og:url" content="{{ schema_surl }}">
|
50
|
+
<meta property="og:type" content="article">
|
51
|
+
<meta property="article:author" content="{{ author }}">
|
52
|
+
<meta property="article:published_time" content="{{ schema_date }}">
|
53
|
+
<meta property="article:modified_time" content="{{ schema_modi }}">
|
54
|
+
<!-- meta-custom -->
|
45
55
|
{% for meta in site.meta -%}
|
46
56
|
<meta name="{{ meta.first }}" content="{{ meta.last }}">
|
47
57
|
{% endfor -%}
|
48
|
-
<!-- og -->
|
49
|
-
{% include addons/seo/og.liquid %}
|
50
58
|
<!-- schema -->
|
51
|
-
|
59
|
+
<script type="application/ld+json">
|
60
|
+
{
|
61
|
+
"@context": "https://schema.org",
|
62
|
+
"@type": "Article",
|
63
|
+
"mainEntityOfPage": {
|
64
|
+
"@type": "WebPage",
|
65
|
+
"@id": "{{ schema_surl }}"
|
66
|
+
},
|
67
|
+
"headline": "{{ title | truncate: 110 }}",
|
68
|
+
"image": [{% for image in page.images %}"{{ image }}"{% unless forloop.last %},{% endunless %}{% endfor %}],
|
69
|
+
"author": {
|
70
|
+
"@type": "Person",
|
71
|
+
"name": "{{ author }}"
|
72
|
+
},
|
73
|
+
"datePublished": "{{ schema_date }}",
|
74
|
+
"dateModified": "{{ schema_modi }}",
|
75
|
+
"publisher": {
|
76
|
+
"@type": "Organization",
|
77
|
+
"name": "RunDocs",
|
78
|
+
"logo": {
|
79
|
+
"@type": "ImageObject",
|
80
|
+
"url": "https://rundocs.io/logo.png"
|
81
|
+
}
|
82
|
+
},
|
83
|
+
"description": "{{ description }}"
|
84
|
+
}
|
85
|
+
</script>
|
52
86
|
<!-- link -->
|
53
|
-
{
|
54
|
-
|
55
|
-
{
|
56
|
-
{%- if next -%}
|
57
|
-
<link rel="next" href="{{ next.url | absolute_url | xml_escape }}">
|
58
|
-
{%- endif -%}
|
59
|
-
<link rel="canonical" href="{{ schema_url }}">
|
87
|
+
<link rel="canonical" href="{{ schema_surl }}">
|
88
|
+
{% if prev %}<link rel="prev" href="{{ prev.url | absolute_url | replace: 'http://', 'https://' }}">{% endif %}
|
89
|
+
{% if next %}<link rel="next" href="{{ next.url | absolute_url | replace: 'http://', 'https://' }}">{% endif %}
|
60
90
|
<!-- theme -->
|
61
91
|
<link rel="stylesheet" href="{{ cdn }}/assets/css/theme.css">
|
62
92
|
<link rel="stylesheet" href="{{ cdn }}/assets/css/rougify/{{ site.rougify | default: 'github' }}.css">
|
63
93
|
<style>{{ site_scss | scssify }}</style>
|
64
94
|
<!-- icon -->
|
65
|
-
<link rel="icon" type="image/svg+xml" href="{{ site.baseurl }}/
|
95
|
+
<link rel="icon" type="image/svg+xml" href="{{ site.baseurl }}/favicon.svg">
|
66
96
|
<!-- script -->
|
67
|
-
<!--[if lt IE 9]
|
68
|
-
<script src="{{ cdn }}/assets/js/html5shiv.min.js"></script>
|
69
|
-
<![endif]-->
|
97
|
+
<!--[if lt IE 9]><script src="{{ cdn }}/assets/js/html5shiv.min.js"></script><![endif]-->
|
70
98
|
<script src="{{ cdn }}/assets/js/jquery.min.js"></script>
|
71
99
|
<script>
|
72
100
|
const ui = {
|
@@ -81,20 +109,11 @@ layout: plugins/compress
|
|
81
109
|
}
|
82
110
|
};
|
83
111
|
</script>
|
84
|
-
{%- if jekyll.environment == "production" -%}
|
85
|
-
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-174262874-1"></script>
|
86
|
-
<script>
|
87
|
-
gtag("set", {
|
88
|
-
"user_id": location.host
|
89
|
-
});
|
90
|
-
gtag("config", "UA-174262874-1");
|
91
|
-
</script>
|
92
|
-
{%- endif -%}
|
93
112
|
</head>
|
94
113
|
|
95
114
|
<body class="wy-body-for-nav">
|
96
115
|
<div class="wy-grid-for-nav">
|
97
|
-
<!--
|
116
|
+
<!-- NAV -->
|
98
117
|
<nav data-toggle="wy-nav-shift" class="wy-nav-side">
|
99
118
|
<div class="wy-side-scroll">
|
100
119
|
<div class="wy-side-nav-search">
|
@@ -112,21 +131,20 @@ layout: plugins/compress
|
|
112
131
|
</form>
|
113
132
|
</div>
|
114
133
|
</div>
|
115
|
-
<div class="wy-menu wy-menu-vertical" data-spy="affix" role="navigation" aria-label="main navigation">
|
116
|
-
{% include toctree.liquid %}
|
117
|
-
</div>
|
134
|
+
<div class="wy-menu wy-menu-vertical" data-spy="affix" role="navigation" aria-label="main navigation">{% include toctree.liquid %}</div>
|
118
135
|
{%- if site.embed -%}
|
119
|
-
|
120
|
-
<div class="wy-embed">{{ site.embed }}</div>
|
121
|
-
</div>
|
136
|
+
<div class="wy-embed-wrap"><div class="wy-embed">{{ site.embed }}</div></div>
|
122
137
|
{%- endif -%}
|
123
138
|
</div>
|
124
139
|
</nav>
|
140
|
+
|
125
141
|
<section data-toggle="wy-nav-shift" class="wy-nav-content-wrap">
|
126
142
|
<!-- MOBILE NAV -->
|
127
143
|
<nav class="wy-nav-top" aria-label="top navigation">
|
128
|
-
<
|
129
|
-
|
144
|
+
<div class="flex">
|
145
|
+
<i data-toggle="wy-nav-top" class="fa fa-bars"></i>
|
146
|
+
<a href="{{ site.baseurl }}/{% if site_lang != lang %}{{ lang }}/{% endif %}">{{ site.title }}</a>
|
147
|
+
</div>
|
130
148
|
</nav>
|
131
149
|
<div class="wy-nav-content">
|
132
150
|
<div class="rst-content">
|
@@ -139,7 +157,17 @@ layout: plugins/compress
|
|
139
157
|
<div class="section">{{ content }}</div>
|
140
158
|
{%- endif -%}
|
141
159
|
</div>
|
142
|
-
{%
|
160
|
+
{% comment %} comments {% endcomment %}
|
161
|
+
{% if site.disqus %}
|
162
|
+
<div id="disqus_thread" class="articleComments"></div>
|
163
|
+
<script>
|
164
|
+
(function(script) {
|
165
|
+
script.src = "https://{{ site.disqus }}.disqus.com/embed.js";
|
166
|
+
script.setAttribute("data-timestamp", +new Date());
|
167
|
+
document.head.appendChild(script);
|
168
|
+
})(document.createElement("script"));
|
169
|
+
</script>
|
170
|
+
{% endif %}
|
143
171
|
</div>
|
144
172
|
{% include footer.liquid %}
|
145
173
|
</div>
|
@@ -150,11 +178,50 @@ layout: plugins/compress
|
|
150
178
|
<!-- script -->
|
151
179
|
<script src="{{ cdn }}/assets/js/theme.js"></script>
|
152
180
|
<script src="{{ cdn }}/assets/js/anchor.min.js"></script>
|
153
|
-
<script>
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
|
181
|
+
<script>
|
182
|
+
{% include assets/common.js %}
|
183
|
+
{% include assets/custom.js %} {{ site.script }}
|
184
|
+
</script>
|
185
|
+
|
186
|
+
{% comment %} Baidu link submit {% endcomment %}
|
187
|
+
{%- if site.baidu.linksubmit -%}
|
188
|
+
<script>
|
189
|
+
(function(script) {
|
190
|
+
script.src = "https://zz.bdstatic.com/linksubmit/push.js";
|
191
|
+
document.head.appendChild(script);
|
192
|
+
})(document.createElement("script"));
|
193
|
+
</script>
|
194
|
+
{%- endif -%}
|
195
|
+
|
196
|
+
{% comment %} Baidu Analytics {% endcomment %}
|
197
|
+
{%- if site.baidu.hm -%}
|
198
|
+
<script>
|
199
|
+
var _hmt = _hmt || [];
|
200
|
+
(function(script) {
|
201
|
+
script.src = "https://hm.baidu.com/hm.js?{{ site.baidu.hm }}";
|
202
|
+
document.head.appendChild(script);
|
203
|
+
})(document.createElement("script"));
|
204
|
+
</script>
|
205
|
+
{%- endif -%}
|
206
|
+
|
207
|
+
{% comment %} CNZZ Analytics {% endcomment %}
|
208
|
+
{%- if site.cnzz -%}
|
209
|
+
<span id="cnzz_stat_icon_{{ site.cnzz }}" style="display: none;"></span>
|
210
|
+
<script async src="https://v1.cnzz.com/z_stat.php?id={{ site.cnzz }}"></script>
|
211
|
+
{%- endif -%}
|
212
|
+
|
213
|
+
{% comment %} Google Analytics {% endcomment %}
|
214
|
+
{%- if site.google.gtag -%}
|
215
|
+
<script async src="https://www.googletagmanager.com/gtag/js?id={{ site.google.gtag }}"></script>
|
216
|
+
<script>
|
217
|
+
gtag("config", "{{ site.google.gtag }}");
|
218
|
+
</script>
|
219
|
+
{%- endif -%}
|
220
|
+
|
221
|
+
{% comment %} Google AdSense {% endcomment %}
|
222
|
+
{%- if site.google.adsense -%}
|
223
|
+
<script data-ad-client="{{ site.google.adsense }}" async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
|
224
|
+
{%- endif -%}
|
158
225
|
</body>
|
159
226
|
|
160
227
|
</html>
|
@@ -8,7 +8,18 @@
|
|
8
8
|
{%- if block.size == 1 -%}
|
9
9
|
{{ block_after }}
|
10
10
|
{%- else -%}
|
11
|
-
|
11
|
+
{%- assign blocks = block.first | replace_first: ">", "```<temp>```" | split: "```<temp>```" -%}
|
12
|
+
{%- assign admonitions = "note, tip, warning, danger" | split: ", " -%}
|
13
|
+
{%- assign type = blocks.first | replace: '"', '' | replace: " class=language-", "" -%}
|
14
|
+
{%- comment %} admonitions card {% endcomment -%}
|
15
|
+
{%- if admonitions contains type -%}
|
16
|
+
<div class="admonition {{ type }}">
|
17
|
+
{%- comment %} title will be translated via ui {% endcomment -%}
|
18
|
+
<p class="admonition-title" ui="{{ type }}"><span class="progress"></span></p>{{ blocks.last | markdownify | strip_newlines -}}
|
19
|
+
</div>{{ block_after -}}
|
20
|
+
{%- else -%}
|
21
|
+
<pre{{ block.first }}</pre>{{ block_after -}}
|
22
|
+
{%- endif -%}
|
12
23
|
{%- endif -%}
|
13
24
|
{%- endfor -%}
|
14
25
|
{%- endif -%}
|
data/_sass/_album.scss
CHANGED
@@ -1,3 +1,14 @@
|
|
1
|
+
/* common */
|
2
|
+
.shadow-box {
|
3
|
+
box-shadow: 0 1px 1px 0 rgba(0,0,0,0.14), 0 3px 1px -2px rgba(0,0,0,0.12), 0 1px 5px 0 rgba(0,0,0,0.2);
|
4
|
+
}
|
5
|
+
|
6
|
+
.flex {
|
7
|
+
display: -webkit-flex;
|
8
|
+
display: flex;
|
9
|
+
flex-wrap: wrap;
|
10
|
+
flex-direction: row;
|
11
|
+
}
|
1
12
|
@import "_album.scss";
|
2
13
|
@import "_embed.scss";
|
3
14
|
/* custom */
|
@@ -11,6 +22,24 @@ footer {
|
|
11
22
|
text-align: center;
|
12
23
|
}
|
13
24
|
}
|
25
|
+
/* admonition add shadow-box */
|
26
|
+
.admonition {
|
27
|
+
@extend .shadow-box;
|
28
|
+
}
|
29
|
+
/* from glitch */
|
30
|
+
.progress:after {
|
31
|
+
display: inline-block;
|
32
|
+
content: "\2026";
|
33
|
+
width: 0;
|
34
|
+
overflow: hidden;
|
35
|
+
vertical-align: bottom;
|
36
|
+
animation: ellipsis steps(4, end) 1000ms infinite;
|
37
|
+
}
|
38
|
+
@keyframes ellipsis {
|
39
|
+
to {
|
40
|
+
width: 1.25em;
|
41
|
+
}
|
42
|
+
}
|
14
43
|
/* breadcrumbs icon */
|
15
44
|
.fa-angle-double-right {
|
16
45
|
font-size: 13px;
|
@@ -25,10 +54,23 @@ footer {
|
|
25
54
|
.wy-nav-side {
|
26
55
|
padding-bottom: 3em;
|
27
56
|
}
|
28
|
-
/* mobile
|
57
|
+
/* mobile button and title */
|
29
58
|
.wy-nav-top {
|
30
|
-
|
31
|
-
|
59
|
+
padding: 0;
|
60
|
+
|
61
|
+
.flex {
|
62
|
+
align-items: center;
|
63
|
+
|
64
|
+
i {
|
65
|
+
/* for better touch experience */
|
66
|
+
padding: 10px;
|
67
|
+
font-size: 20px;
|
68
|
+
}
|
69
|
+
|
70
|
+
a {
|
71
|
+
flex: auto;
|
72
|
+
padding-right: 10px;
|
73
|
+
}
|
32
74
|
}
|
33
75
|
}
|
34
76
|
|
@@ -50,7 +92,7 @@ footer {
|
|
50
92
|
font-size: 12px;
|
51
93
|
}
|
52
94
|
/* theme copyright */
|
53
|
-
.
|
95
|
+
.rundocs {
|
54
96
|
display: none;
|
55
97
|
}
|
56
98
|
/* view box of search results */
|
data/assets/404.liquid
CHANGED
@@ -1,5 +1,10 @@
|
|
1
|
+
---
|
2
|
+
layout: plugins/compress
|
3
|
+
permalink: /favicon.svg
|
4
|
+
---
|
5
|
+
|
6
|
+
{% comment %} material-design-icons article {% endcomment %}
|
1
7
|
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="#2980b9" width="36px" height="36px">
|
2
8
|
<path d="M0 0h24v24H0z" fill="none"/>
|
3
9
|
<path d="M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-5 14H7v-2h7v2zm3-4H7v-2h10v2zm0-4H7V7h10v2z"/>
|
4
10
|
</svg>
|
5
|
-
<!-- material-design-icons article -->
|
File without changes
|
data/assets/search.liquid
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
---
|
2
|
-
permalink: /search.html
|
3
2
|
layout: default
|
3
|
+
permalink: /search.html
|
4
4
|
---
|
5
5
|
|
6
6
|
{%- include reset/site_pages.liquid -%}
|
7
7
|
{%- include reset/i18n.liquid -%}
|
8
8
|
|
9
9
|
<div id="search-results">
|
10
|
-
<h2>{{ __searching }}<span
|
10
|
+
<h2>{{ __searching }}<span class="progress"></span></h2>
|
11
11
|
<p class="search-summary"></p>
|
12
12
|
<ul class="search"></ul>
|
13
13
|
</div>
|
@@ -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.
|
4
|
+
version: 1.1.2
|
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-
|
11
|
+
date: 2020-08-20 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
|
38
|
-
- _includes/addons/
|
39
|
-
- _includes/addons/
|
40
|
-
- _includes/addons/
|
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
|
@@ -55,17 +49,18 @@ files:
|
|
55
49
|
- _includes/extend/toctree.liquid
|
56
50
|
- _includes/footer.liquid
|
57
51
|
- _includes/i18n/en.liquid
|
52
|
+
- _includes/i18n/es.liquid
|
58
53
|
- _includes/i18n/fr.liquid
|
59
54
|
- _includes/i18n/it.liquid
|
60
55
|
- _includes/i18n/ja.liquid
|
61
56
|
- _includes/i18n/ko.liquid
|
62
57
|
- _includes/i18n/ru.liquid
|
58
|
+
- _includes/i18n/sv.liquid
|
63
59
|
- _includes/i18n/zh-cn.liquid
|
64
60
|
- _includes/list.liquid
|
65
61
|
- _includes/reset/defaults.liquid
|
66
62
|
- _includes/reset/i18n.liquid
|
67
63
|
- _includes/reset/languages.liquid
|
68
|
-
- _includes/reset/schema.liquid
|
69
64
|
- _includes/reset/site_pages.liquid
|
70
65
|
- _includes/reset/workdir.liquid
|
71
66
|
- _includes/toctree.liquid
|
@@ -74,7 +69,7 @@ files:
|
|
74
69
|
- _sass/_album.scss
|
75
70
|
- _sass/_embed.scss
|
76
71
|
- _sass/fluid.scss
|
77
|
-
- _sass/
|
72
|
+
- _sass/jekyll-rtd-theme.scss
|
78
73
|
- assets/404.liquid
|
79
74
|
- assets/css/fonts/Roboto-Slab-Bold.woff
|
80
75
|
- assets/css/fonts/Roboto-Slab-Bold.woff2
|
@@ -117,15 +112,15 @@ files:
|
|
117
112
|
- assets/css/rougify/thankful_eyes.css
|
118
113
|
- assets/css/rougify/tulip.css
|
119
114
|
- assets/css/theme.css
|
120
|
-
- assets/favicon.
|
115
|
+
- assets/favicon.liquid
|
121
116
|
- assets/js/anchor.min.js
|
122
117
|
- assets/js/html5shiv.min.js
|
123
118
|
- assets/js/jquery.min.js
|
124
119
|
- assets/js/theme.js
|
125
|
-
- assets/pages.
|
126
|
-
- assets/robots.
|
120
|
+
- assets/pages.liquid
|
121
|
+
- assets/robots.liquid
|
127
122
|
- assets/search.liquid
|
128
|
-
- assets/sitemap.
|
123
|
+
- assets/sitemap.liquid
|
129
124
|
homepage: https://github.com/rundocs/jekyll-rtd-theme
|
130
125
|
licenses:
|
131
126
|
- MIT
|
@@ -148,5 +143,5 @@ requirements: []
|
|
148
143
|
rubygems_version: 3.1.2
|
149
144
|
signing_key:
|
150
145
|
specification_version: 4
|
151
|
-
summary: Just another
|
146
|
+
summary: Just another jekyll docs theme compatible with GitHub Pages, based on sphinx_rtd_theme
|
152
147
|
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,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,14 +0,0 @@
|
|
1
|
-
<dl>
|
2
|
-
<dt>{{ __statistics }}</dt>
|
3
|
-
<dd>
|
4
|
-
<a href="https://github.com/rundocs/analytics" target="_blank">
|
5
|
-
{{ __total_visits }} <span id="counter"></span> <i class="fa fa-eye"></i>
|
6
|
-
</a>
|
7
|
-
</dd>
|
8
|
-
</dl>
|
9
|
-
|
10
|
-
<script>
|
11
|
-
$(document).ready(function() {
|
12
|
-
$.getJSON("https://rundocs-analytics.glitch.me/analytics?host=" + location.host, (data) => $("#counter").html(data.count));
|
13
|
-
});
|
14
|
-
</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 -%}
|
data/assets/robots.txt
DELETED
data/assets/sitemap.xml
DELETED
@@ -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>
|