jekyll-theme-shikhalev 0.1.0.5

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.
Files changed (128) hide show
  1. checksums.yaml +7 -0
  2. data/LICENSE +21 -0
  3. data/README.md +14 -0
  4. data/_includes/allejo/jekyll-toc.liquid +182 -0
  5. data/_includes/backlinks.liquid +58 -0
  6. data/_includes/google/ads.html +11 -0
  7. data/_includes/google/analytics.html +10 -0
  8. data/_includes/google/search.html +4 -0
  9. data/_includes/iframe.liquid +41 -0
  10. data/_includes/image.liquid +61 -0
  11. data/_includes/link.liquid +30 -0
  12. data/_includes/nova/aside/feeds.liquid +25 -0
  13. data/_includes/nova/aside/last_comments.liquid +28 -0
  14. data/_includes/nova/aside/navy.liquid +26 -0
  15. data/_includes/nova/comments/form.liquid +57 -0
  16. data/_includes/nova/comments/item.liquid +31 -0
  17. data/_includes/nova/comments/section.liquid +22 -0
  18. data/_includes/nova/footer.liquid +38 -0
  19. data/_includes/nova/stream/comment_count.liquid +19 -0
  20. data/_includes/nova/stream/subcategories.liquid +19 -0
  21. data/_includes/nova/stream/timeline.liquid +78 -0
  22. data/_includes/nova/utils/announcement.liquid +82 -0
  23. data/_includes/nova/utils/breadcrumbs.liquid +16 -0
  24. data/_includes/nova/utils/categories.liquid +18 -0
  25. data/_includes/nova/utils/categories_pane.html +8 -0
  26. data/_includes/nova/utils/chain.liquid +8 -0
  27. data/_includes/nova/utils/feed_link.liquid +11 -0
  28. data/_includes/nova/utils/recommendations.liquid +67 -0
  29. data/_includes/nova/utils/share_buttons.liquid +12 -0
  30. data/_includes/nova/utils/tags.liquid +8 -0
  31. data/_includes/yandex/metrica.html +18 -0
  32. data/_includes/yoomoney/form.html +4 -0
  33. data/_layouts/nova/calendar.html +79 -0
  34. data/_layouts/nova/default.html +185 -0
  35. data/_layouts/nova/page.html +7 -0
  36. data/_layouts/nova/post.html +34 -0
  37. data/_layouts/nova/stream.html +21 -0
  38. data/_layouts/nova/tags.html +30 -0
  39. data/_layouts/nova/verse.html +34 -0
  40. data/_sass/fonts/awesome.scss +69 -0
  41. data/_sass/fonts/pt-from-google.scss +252 -0
  42. data/_sass/highlight/autumn.scss +60 -0
  43. data/_sass/nova/backlinks.scss +19 -0
  44. data/_sass/nova/base.scss +52 -0
  45. data/_sass/nova/content/code.scss +39 -0
  46. data/_sass/nova/content/comments.scss +256 -0
  47. data/_sass/nova/content/content.scss +210 -0
  48. data/_sass/nova/content/footnotes.scss +44 -0
  49. data/_sass/nova/content/images.scss +108 -0
  50. data/_sass/nova/content/meta.scss +59 -0
  51. data/_sass/nova/content/randoms.scss +46 -0
  52. data/_sass/nova/content/share.scss +25 -0
  53. data/_sass/nova/content/tables.scss +56 -0
  54. data/_sass/nova/content/verse.scss +46 -0
  55. data/_sass/nova/dyn/topper.scss +38 -0
  56. data/_sass/nova/dyn/watermark.scss +35 -0
  57. data/_sass/nova/icons.scss +340 -0
  58. data/_sass/nova/layout.scss +645 -0
  59. data/_sass/nova/pages/calendar.scss +74 -0
  60. data/_sass/nova/pages/stream.scss +153 -0
  61. data/_sass/nova/pages/tags.scss +58 -0
  62. data/_sass/nova/preset.scss +35 -0
  63. data/_sass/nova/utils.scss +10 -0
  64. data/_sass/nova.scss +26 -0
  65. data/assets/fa/webfonts/fa-brands-400.eot +0 -0
  66. data/assets/fa/webfonts/fa-brands-400.svg +3717 -0
  67. data/assets/fa/webfonts/fa-brands-400.ttf +0 -0
  68. data/assets/fa/webfonts/fa-brands-400.woff +0 -0
  69. data/assets/fa/webfonts/fa-brands-400.woff2 +0 -0
  70. data/assets/fa/webfonts/fa-regular-400.eot +0 -0
  71. data/assets/fa/webfonts/fa-regular-400.svg +801 -0
  72. data/assets/fa/webfonts/fa-regular-400.ttf +0 -0
  73. data/assets/fa/webfonts/fa-regular-400.woff +0 -0
  74. data/assets/fa/webfonts/fa-regular-400.woff2 +0 -0
  75. data/assets/fa/webfonts/fa-solid-900.eot +0 -0
  76. data/assets/fa/webfonts/fa-solid-900.svg +5034 -0
  77. data/assets/fa/webfonts/fa-solid-900.ttf +0 -0
  78. data/assets/fa/webfonts/fa-solid-900.woff +0 -0
  79. data/assets/fa/webfonts/fa-solid-900.woff2 +0 -0
  80. data/assets/img/ico/analytics.svg +1 -0
  81. data/assets/img/ico/camera.svg +1 -0
  82. data/assets/img/ico/csharp.svg +1 -0
  83. data/assets/img/ico/css3.svg +1 -0
  84. data/assets/img/ico/darktable.png +0 -0
  85. data/assets/img/ico/darktable.svg +1 -0
  86. data/assets/img/ico/fontawesome.svg +1 -0
  87. data/assets/img/ico/gbif.svg +1 -0
  88. data/assets/img/ico/gce.png +0 -0
  89. data/assets/img/ico/gentoo.svg +1 -0
  90. data/assets/img/ico/giscus.svg +9 -0
  91. data/assets/img/ico/git.svg +1 -0
  92. data/assets/img/ico/github.svg +1 -0
  93. data/assets/img/ico/gitlab.svg +1 -0
  94. data/assets/img/ico/gmail.svg +1 -0
  95. data/assets/img/ico/google-fonts.svg +1 -0
  96. data/assets/img/ico/gpsbabel.png +0 -0
  97. data/assets/img/ico/gpxlab.png +0 -0
  98. data/assets/img/ico/heroku.svg +1 -0
  99. data/assets/img/ico/html5.svg +1 -0
  100. data/assets/img/ico/hugin-ru.svg +101 -0
  101. data/assets/img/ico/hugin.svg +1 -0
  102. data/assets/img/ico/imagemagick.png +0 -0
  103. data/assets/img/ico/imagemagick.svg +1 -0
  104. data/assets/img/ico/inaturalist.svg +1 -0
  105. data/assets/img/ico/instagram.svg +1 -0
  106. data/assets/img/ico/javascript.svg +1 -0
  107. data/assets/img/ico/jekyll.svg +1 -0
  108. data/assets/img/ico/kde-neon.svg +1 -0
  109. data/assets/img/ico/kde.svg +1 -0
  110. data/assets/img/ico/kdeconnect.svg +1 -0
  111. data/assets/img/ico/linux-mint.svg +1 -0
  112. data/assets/img/ico/liquid.png +0 -0
  113. data/assets/img/ico/locus-map.png +0 -0
  114. data/assets/img/ico/luminance-hdr.png +0 -0
  115. data/assets/img/ico/luminance-hdr.svg +1 -0
  116. data/assets/img/ico/metrika.svg +1 -0
  117. data/assets/img/ico/paratype.png +0 -0
  118. data/assets/img/ico/phil-harvey.svg +1 -0
  119. data/assets/img/ico/ruby.svg +1 -0
  120. data/assets/img/ico/rust.png +0 -0
  121. data/assets/img/ico/staticman.svg +1 -0
  122. data/assets/img/ico/webmaster.svg +1 -0
  123. data/assets/img/ico/wikipedia.svg +1 -0
  124. data/assets/img/ico/yoomoney.png +0 -0
  125. data/assets/js/comments.js +116 -0
  126. data/assets/js/topper.js +32 -0
  127. data/assets/styles.scss +3 -0
  128. metadata +205 -0
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: cfaf1fbfad5c35d1f297d8031fd5826263ba61979cfbb5db6b5363cf9d8d3c8c
4
+ data.tar.gz: f2980317173378480a8c8edf413ee45a15542380e81a943539977141052a8431
5
+ SHA512:
6
+ metadata.gz: 90341e49f350764a9e985b6050f9cb2161d01bc6c45aea89f2c85e89fe6467d3c550c1be97a5d3c5841078a450447b35de8ca787328b3ccf8b636a8965f5e592
7
+ data.tar.gz: 24abd2fb982a0e68ad232b59ea3582b4dde4f66eed633f3b2ec57db4ca0210c5268aae7afba2075ba45f68090aa502a61654dcbab96de98762987a3a910a59cb
data/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2021 Ivan Shikhalev
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,14 @@
1
+ [![Gem Version](https://badge.fury.io/rb/jekyll-theme-shikhalev.svg)](https://badge.fury.io/rb/jekyll-theme-shikhalev)
2
+
3
+ # jekyll-theme
4
+
5
+ Тема **[Jekyll][jekyll]** для сайта **[shikhalev.org][org]** и его поддоменов.
6
+
7
+ ## TODO
8
+
9
+ См. **[Issues][issues]**
10
+
11
+ [giscus]: https://github.com/giscus/giscus
12
+ [jekyll]: https://jekyllrb.com/
13
+ [org]: https://shikhalev.org/
14
+ [issues]: https://github.com/shikhalev/jekyll-theme/issues
@@ -0,0 +1,182 @@
1
+ {% capture tocWorkspace %}
2
+ {% comment %}
3
+ Copyright (c) 2017 Vladimir "allejo" Jimenez
4
+
5
+ Permission is hereby granted, free of charge, to any person
6
+ obtaining a copy of this software and associated documentation
7
+ files (the "Software"), to deal in the Software without
8
+ restriction, including without limitation the rights to use,
9
+ copy, modify, merge, publish, distribute, sublicense, and/or sell
10
+ copies of the Software, and to permit persons to whom the
11
+ Software is furnished to do so, subject to the following
12
+ conditions:
13
+
14
+ The above copyright notice and this permission notice shall be
15
+ included in all copies or substantial portions of the Software.
16
+
17
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
18
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
19
+ OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
20
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
21
+ HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
22
+ WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
23
+ FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
24
+ OTHER DEALINGS IN THE SOFTWARE.
25
+ {% endcomment %}
26
+ {% comment %}
27
+ Version 1.1.0
28
+ https://github.com/allejo/jekyll-toc
29
+
30
+ "...like all things liquid - where there's a will, and ~36 hours to spare, there's usually a/some way" ~jaybe
31
+
32
+ Usage:
33
+ {% include toc.html html=content sanitize=true class="inline_toc" id="my_toc" h_min=2 h_max=3 %}
34
+
35
+ Parameters:
36
+ * html (string) - the HTML of compiled markdown generated by kramdown in Jekyll
37
+
38
+ Optional Parameters:
39
+ * sanitize (bool) : false - when set to true, the headers will be stripped of any HTML in the TOC
40
+ * class (string) : '' - a CSS class assigned to the TOC
41
+ * id (string) : '' - an ID to assigned to the TOC
42
+ * h_min (int) : 1 - the minimum TOC header level to use; any header lower than this value will be ignored
43
+ * h_max (int) : 6 - the maximum TOC header level to use; any header greater than this value will be ignored
44
+ * ordered (bool) : false - when set to true, an ordered list will be outputted instead of an unordered list
45
+ * item_class (string) : '' - add custom class(es) for each list item; has support for '%level%' placeholder, which is the current heading level
46
+ * submenu_class (string) : '' - add custom class(es) for each child group of headings; has support for '%level%' placeholder which is the current "submenu" heading level
47
+ * base_url (string) : '' - add a base url to the TOC links for when your TOC is on another page than the actual content
48
+ * anchor_class (string) : '' - add custom class(es) for each anchor element
49
+ * skip_no_ids (bool) : false - skip headers that do not have an `id` attribute
50
+
51
+ Output:
52
+ An ordered or unordered list representing the table of contents of a markdown block. This snippet will only
53
+ generate the table of contents and will NOT output the markdown given to it
54
+ {% endcomment %}
55
+
56
+ {% capture newline %}
57
+ {% endcapture %}
58
+ {% assign newline = newline | rstrip %} <!-- Remove the extra spacing but preserve the newline -->
59
+
60
+ {% capture deprecation_warnings %}{% endcapture %}
61
+
62
+ {% if include.baseurl %}
63
+ {% capture deprecation_warnings %}{{ deprecation_warnings }}<!-- jekyll-toc :: "baseurl" has been deprecated, use "base_url" instead -->{{ newline }}{% endcapture %}
64
+ {% endif %}
65
+
66
+ {% if include.skipNoIDs %}
67
+ {% capture deprecation_warnings %}{{ deprecation_warnings }}<!-- jekyll-toc :: "skipNoIDs" has been deprecated, use "skip_no_ids" instead -->{{ newline }}{% endcapture %}
68
+ {% endif %}
69
+
70
+ {% capture jekyll_toc %}{% endcapture %}
71
+ {% assign orderedList = include.ordered | default: false %}
72
+ {% assign baseURL = include.base_url | default: include.baseurl | default: '' %}
73
+ {% assign skipNoIDs = include.skip_no_ids | default: include.skipNoIDs | default: false %}
74
+ {% assign minHeader = include.h_min | default: 1 %}
75
+ {% assign maxHeader = include.h_max | default: 6 %}
76
+ {% assign nodes = include.html | strip | split: '<h' %}
77
+
78
+ {% assign firstHeader = true %}
79
+ {% assign currLevel = 0 %}
80
+ {% assign lastLevel = 0 %}
81
+
82
+ {% capture listModifier %}{% if orderedList %}ol{% else %}ul{% endif %}{% endcapture %}
83
+
84
+ {% for node in nodes %}
85
+ {% if node == "" %}
86
+ {% continue %}
87
+ {% endif %}
88
+
89
+ {% assign currLevel = node | replace: '"', '' | slice: 0, 1 | times: 1 %}
90
+
91
+ {% if currLevel < minHeader or currLevel > maxHeader %}
92
+ {% continue %}
93
+ {% endif %}
94
+
95
+ {% assign _workspace = node | split: '</h' %}
96
+
97
+ {% assign _idWorkspace = _workspace[0] | split: 'id="' %}
98
+ {% assign _idWorkspace = _idWorkspace[1] | split: '"' %}
99
+ {% assign htmlID = _idWorkspace[0] %}
100
+
101
+ {% assign _classWorkspace = _workspace[0] | split: 'class="' %}
102
+ {% assign _classWorkspace = _classWorkspace[1] | split: '"' %}
103
+ {% assign htmlClass = _classWorkspace[0] %}
104
+
105
+ {% if htmlClass contains "no_toc" %}
106
+ {% continue %}
107
+ {% endif %}
108
+
109
+ {% if firstHeader %}
110
+ {% assign minHeader = currLevel %}
111
+ {% endif %}
112
+
113
+ {% capture _hAttrToStrip %}{{ _workspace[0] | split: '>' | first }}>{% endcapture %}
114
+ {% assign header = _workspace[0] | replace: _hAttrToStrip, '' %}
115
+
116
+ {% if include.item_class and include.item_class != blank %}
117
+ {% capture listItemClass %} class="{{ include.item_class | replace: '%level%', currLevel | split: '.' | join: ' ' }}"{% endcapture %}
118
+ {% endif %}
119
+
120
+ {% if include.submenu_class and include.submenu_class != blank %}
121
+ {% assign subMenuLevel = currLevel | minus: 1 %}
122
+ {% capture subMenuClass %} class="{{ include.submenu_class | replace: '%level%', subMenuLevel | split: '.' | join: ' ' }}"{% endcapture %}
123
+ {% endif %}
124
+
125
+ {% capture anchorBody %}{% if include.sanitize %}{{ header | strip_html }}{% else %}{{ header }}{% endif %}{% endcapture %}
126
+
127
+ {% if htmlID %}
128
+ {% capture anchorAttributes %} href="{% if baseURL %}{{ baseURL }}{% endif %}#{{ htmlID }}"{% endcapture %}
129
+
130
+ {% if include.anchor_class %}
131
+ {% capture anchorAttributes %}{{ anchorAttributes }} class="{{ include.anchor_class | split: '.' | join: ' ' }}"{% endcapture %}
132
+ {% endif %}
133
+
134
+ {% capture listItem %}<a{{ anchorAttributes }}>{{ anchorBody }}</a>{% endcapture %}
135
+ {% elsif skipNoIDs == true %}
136
+ {% continue %}
137
+ {% else %}
138
+ {% capture listItem %}{{ anchorBody }}{% endcapture %}
139
+ {% endif %}
140
+
141
+ {% if currLevel > lastLevel %}
142
+ {% capture jekyll_toc %}{{ jekyll_toc }}<{{ listModifier }}{{ subMenuClass }}>{% endcapture %}
143
+ {% elsif currLevel < lastLevel %}
144
+ {% assign repeatCount = lastLevel | minus: currLevel %}
145
+
146
+ {% for i in (1..repeatCount) %}
147
+ {% capture jekyll_toc %}{{ jekyll_toc }}</li></{{ listModifier }}>{% endcapture %}
148
+ {% endfor %}
149
+
150
+ {% capture jekyll_toc %}{{ jekyll_toc }}</li>{% endcapture %}
151
+ {% else %}
152
+ {% capture jekyll_toc %}{{ jekyll_toc }}</li>{% endcapture %}
153
+ {% endif %}
154
+
155
+ {% capture jekyll_toc %}{{ jekyll_toc }}<li{{ listItemClass }}>{{ listItem }}{% endcapture %}
156
+
157
+ {% assign lastLevel = currLevel %}
158
+ {% assign firstHeader = false %}
159
+ {% endfor %}
160
+
161
+ {% assign repeatCount = minHeader | minus: 1 %}
162
+ {% assign repeatCount = lastLevel | minus: repeatCount %}
163
+ {% for i in (1..repeatCount) %}
164
+ {% capture jekyll_toc %}{{ jekyll_toc }}</li></{{ listModifier }}>{% endcapture %}
165
+ {% endfor %}
166
+
167
+ {% if jekyll_toc != '' %}
168
+ {% assign rootAttributes = '' %}
169
+ {% if include.class and include.class != blank %}
170
+ {% capture rootAttributes %} class="{{ include.class | split: '.' | join: ' ' }}"{% endcapture %}
171
+ {% endif %}
172
+
173
+ {% if include.id and include.id != blank %}
174
+ {% capture rootAttributes %}{{ rootAttributes }} id="{{ include.id }}"{% endcapture %}
175
+ {% endif %}
176
+
177
+ {% if rootAttributes %}
178
+ {% assign nodes = jekyll_toc | split: '>' %}
179
+ {% capture jekyll_toc %}<{{ listModifier }}{{ rootAttributes }}>{{ nodes | shift | join: '>' }}>{% endcapture %}
180
+ {% endif %}
181
+ {% endif %}
182
+ {% endcapture %}{% assign tocWorkspace = '' %}{{ deprecation_warnings }}{{ jekyll_toc }}
@@ -0,0 +1,58 @@
1
+ {%- assign empty_backs = true -%}
2
+ {%- assign item = include.item | default: page -%}
3
+ {%- unless item.service -%}
4
+ {%- if item.backlinks != false -%}
5
+ {%- assign substr = 'link ' | append: item.path -%}
6
+ {%- assign url = item.url | relative_url -%}
7
+ {%- assign substr2 = 'href="' | append: url | append: '"' -%}
8
+ {%- assign substr3 = 'href="' | append: url | append: '#' -%}
9
+ {%- assign list = "" | split: '///' -%}
10
+ {%- for ps in site.posts -%}
11
+ {%- if ps.content contains substr or ps.content contains substr2 or ps.content contains substr3 -%}
12
+ {%- assign list = list | push: ps -%}
13
+ {%- endif -%}
14
+ {%- endfor -%}
15
+ {%- for col in site.collections -%}
16
+ {%- if col.label and col.label != 'posts' and col.label != '_posts' -%}
17
+ {%- for im in col.docs -%}
18
+ {%- unless im.service or im.url == nil -%}
19
+ {%- if im.content contains substr or im.content contains substr2 or im.content contains substr3 -%}
20
+ {%- assign list = list | push: im -%}
21
+ {%- endif -%}
22
+ {%- endunless -%}
23
+ {%- endfor -%}
24
+ {%- endif -%}
25
+ {%- endfor -%}
26
+ {%- for pg in site.pages | sort: 'path' -%}
27
+ {%- unless pg.service -%}
28
+ {%- if pg.content contains substr or pg.content contains substr2 or pg.content contains substr3 -%}
29
+ {%- assign list = list | push: pg -%}
30
+ {%- endif -%}
31
+ {%- endunless -%}
32
+ {%- endfor -%}
33
+ {%- if list.size > 0 -%}
34
+ {%- assign empty_backs = false -%}
35
+ <aside class="backlinks" id="backs">
36
+ {%- if include.header_level -%}
37
+ <h{{- include.header_level -}}>{{- include.header_title | default: 'Ссылки сюда' -}}</h{{- include.header_level -}}>
38
+ {%- endif -%}
39
+ <ul>
40
+ {%- for pp in list -%}
41
+ {%- comment -%}
42
+ {%- if pp.date -%}
43
+ {%- assign icon = 'post' -%}
44
+ {%- else -%}
45
+ {%- assign icon = 'page' -%}
46
+ {%- endif -%}
47
+ {%- endcomment -%}
48
+ {%- assign icon = pp.icon | default: 'file' -%}
49
+ <li class="fa-icon-li-{{- icon -}}"><a href="{{- pp.url | relative_url -}}" title="{{- pp.description | default: pp.title -}}">{{- pp.title | default: pp.path -}}</a></li>
50
+ {%- endfor -%}
51
+ </ul>
52
+ </aside>
53
+ {%- endif -%}
54
+ {%- endif -%}
55
+ {%- endunless -%}
56
+ {%- if empty_backs -%}
57
+ <aside id="backs" style="visibility:hidden;height:0px;width:0px;margin:0px;padding:0px;"></aside>
58
+ {%- endif -%}
@@ -0,0 +1,11 @@
1
+ {% if site.google.ads.client %}
2
+ <script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
3
+ <!-- org-sidebar -->
4
+ <ins class="adsbygoogle"
5
+ style="width:100%;height:inherit;"
6
+ data-ad-client="{{ site.google.ads.client }}"
7
+ data-ad-slot="{{ site.google.ads.slot }}"></ins>
8
+ <script>
9
+ (adsbygoogle = window.adsbygoogle || []).push({});
10
+ </script>
11
+ {% endif %}
@@ -0,0 +1,10 @@
1
+ {% if site.google.analytics %}
2
+ <script async src="https://www.googletagmanager.com/gtag/js?id={{- site.google.analytics -}}"></script>
3
+ <script>
4
+ window.dataLayer = window.dataLayer || [];
5
+ function gtag(){dataLayer.push(arguments);}
6
+ gtag('js', new Date());
7
+
8
+ gtag('config', '{{- site.google.analytics -}}');
9
+ </script>
10
+ {% endif %}
@@ -0,0 +1,4 @@
1
+ {% if site.google.search %}
2
+ <script async src="https://cse.google.com/cse.js?cx={{- site.google.search -}}"></script>
3
+ <div class="gcse-search"></div>
4
+ {% endif %}
@@ -0,0 +1,41 @@
1
+ {%- assign alt = include.alt | default: include.title | default: include.caption -%}
2
+ {%- assign title = include.title | default: include.caption -%}
3
+ {%- assign caption = include.caption -%}
4
+ {%- assign place = include.place | default: 'center' -%}
5
+ {%- assign src = include.src -%}
6
+ {%- assign slug = src | split: '/' | last | slugify -%}
7
+ {%- assign id = include.id | default: slug -%}
8
+ {%- assign class_prefix = '' -%}
9
+ {%- if place == 'center' -%}
10
+ {%- assign width = include.width | 800 -%}
11
+ {%- else -%}
12
+ {%- assign width = include.width | 320 -%}
13
+ {%- if width <= 200 -%}
14
+ {%- assign class_prefix = 'strict-' -%}
15
+ {%- endif -%}
16
+ {%- endif -%}
17
+ {%- assign class = class_prefix | append: place -%}
18
+ {%- if include.class -%}
19
+ {%- assign class = class | append: ' ' | append: include.class -%}
20
+ {%- endif -%}
21
+ {%- if include.frm_style -%}
22
+ {%- assign frm_style = ' style="' | append: include.frm_style | append: '"' -%}
23
+ {%- else -%}
24
+ {%- assign frm_style = '' -%}
25
+ {%- endif -%}
26
+ {%- if include.frm_class -%}
27
+ {%- assign frm_class = ' class="' | append: include.frm_class | append: '"' -%}
28
+ {%- else -%}
29
+ {%- assign frm_class = '' -%}
30
+ {%- endif -%}
31
+ {%- if include.youtube -%}
32
+ {%- assign youtube_attrs = ' allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen' -%}
33
+ {%- else -%}
34
+ {%- assign youtube_attrs = '' -%}
35
+ {%- endif -%}
36
+ <figure markdown="0" id="{{- id -}}" class="{{- class -}}" style="max-width: {{- width -}}px;{{- include.style -}}">
37
+ <iframe loading="lazy" src="{{- src -}}" title="{{- title -}}"{{- frm_class -}}{{- frm_style -}}{{- youtube_attrs -}}>{{- alt -}}</iframe>
38
+ {%- if caption -%}
39
+ <figcaption markdown="span">{{- caption -}}</figcaption>
40
+ {%- endif -%}
41
+ </figure>
@@ -0,0 +1,61 @@
1
+ {%- if include.caption -%}
2
+ {%- capture caption -%}
3
+ {{ include.caption | markdownify }}
4
+ {%- endcapture -%}
5
+ {%- assign alt = include.alt | default: include.title | default: caption | strip_html -%}
6
+ {%- assign title = include.title | default: caption | strip_html -%}
7
+ {%- else -%}
8
+ {%- assign alt = include.alt | default: include.title | escape -%}
9
+ {%- assign title = include.title | escape -%}
10
+ {%- endif -%}
11
+
12
+ {%- assign place = include.place | default: 'center' -%}
13
+ {%- if include.link == false -%}
14
+ {%- assign link = false -%}
15
+ {%- else -%}
16
+ {%- assign link = include.link | default: include.src -%}
17
+ {%- endif -%}
18
+ {%- assign src = include.src -%}
19
+ {%- assign slug = src | split: '/' | last | slugify -%}
20
+ {%- assign id = include.id | default: slug -%}
21
+ {%- assign class_prefix = '' -%}
22
+ {%- if place == 'center' -%}
23
+ {%- assign width = include.width | default: 800 -%}
24
+ {%- else -%}
25
+ {%- assign width = include.width | default: 320 -%}
26
+ {%- if width <= 200 -%}
27
+ {%- assign class_prefix = 'strict-' -%}
28
+ {%- endif -%}
29
+ {%- endif -%}
30
+ {%- assign class = class_prefix | append: place -%}
31
+ {%- if include.class -%}
32
+ {%- assign class = class | append: ' ' | append: include.class -%}
33
+ {%- endif -%}
34
+ {%- if include.img_style -%}
35
+ {%- assign img_style = ' style="' | append: include.img_style | append: '"' -%}
36
+ {%- else -%}
37
+ {%- assign img_style = '' -%}
38
+ {%- endif -%}
39
+ {%- assign shape_style = '' -%}
40
+ {%- if include.shape -%}
41
+ {%- if include.shape == true -%}
42
+ {%- assign shape_src = src -%}
43
+ {%- else -%}
44
+ {%- assign shape_src = include.shape -%}
45
+ {%- endif -%}
46
+ {%- if place == 'right' or place == 'left' -%}
47
+ {%- assign shape_style = 'shape-outside: url(' | append: shape_src | append: '); shape-margin: 10px;' -%}
48
+ {%- endif -%}
49
+ {%- endif -%}
50
+ <figure markdown="0" id="{{- id -}}" class="{{- class -}}" style="max-width: {{- width -}}px; {{- shape_style -}} {{- include.style -}}">
51
+ {%- if link -%}
52
+ <a href="{{- link -}}" title="{{- title -}}">
53
+ {%- endif -%}
54
+ <img src="{{- src -}}" title="{{- title -}}" alt="{{- alt -}}"{{- img_style -}}>
55
+ {%- if link -%}
56
+ </a>
57
+ {%- endif -%}
58
+ {%- if include.caption -%}
59
+ <figcaption markdown="span">{{- include.caption -}}</figcaption>
60
+ {%- endif -%}
61
+ </figure>
@@ -0,0 +1,30 @@
1
+ {%- if include.stream -%}
2
+ {%- assign target = site.streams | where: 'category_id', include.stream | first -%}
3
+ {%- elsif include.calendar -%}
4
+ {%- assign target = site.calendars | where: 'category_id', include.calendar | first -%}
5
+ {%- elsif include.post -%}
6
+ {%- assign target = site.posts | where: 'path', include.post | first -%}
7
+ {%- elsif include.page -%}
8
+ {%- assign target = site.pages | where: 'path', include.page | first -%}
9
+ {%- endif -%}
10
+ {%- if include.class -%}
11
+ {%- assign class_attr = 'class="' | append: include.class | append: '"' -%}
12
+ {%- else -%}
13
+ {%- assign class_attr = '' -%}
14
+ {%- endif -%}
15
+ {%- if include.style -%}
16
+ {%- assign style_attr = 'style="' | append: include.style | append: '"' -%}
17
+ {%- else -%}
18
+ {%- assign style_attr = '' -%}
19
+ {%- endif -%}
20
+ {%- if include.sub -%}
21
+ {%- assign hash = '#'' | append: include.sub -%}
22
+ {%- else -%}
23
+ {%- assign hash = '' -%}
24
+ {%- endif -%}
25
+ {%- if include.md_ref -%}
26
+ {{- target.url | relative_url -}}{{- hash }} "{{- target.title }} ({{- target.description -}})"
27
+ {%- else -%}
28
+ <a href="{{- target.url | relative_url -}}{{- hash -}}" title="{{- target.description -}}"{{- class_attr -}}{{- style_attr -}}>{{- target.title -}}</a>
29
+ {%- endif -%}
30
+ {%- comment -%} съедаем финальный перенос строки {%- endcomment -%}
@@ -0,0 +1,25 @@
1
+ <h4>Atom Feeds</h4>
2
+ <ul>
3
+ <li>
4
+ <a href="/feed.xml" title="{{- site.title -}}">Все записи</a>
5
+ <ul>
6
+ {%- if page.categories.size > 0 -%}
7
+ {%- assign src = page.categories -%}
8
+ {%- elsif page.category_id and page.category_id != 'about' and page.category_id != 'home' -%}
9
+ {%- capture lst -%}{%- include nova/utils/chain.liquid item=page -%}{%- endcapture -%}
10
+ {%- assign src = lst | split: '///' -%}
11
+ {%- else -%}
12
+ {%- assign src = site.feed.categories -%}
13
+ {%- endif -%}
14
+ {%- if src.size >= 1 and src[0] == 'text' -%}
15
+ {%- assign src = src | push: 'best' | uniq -%}
16
+ {%- endif -%}
17
+ {%- for cat in src -%}
18
+ {%- if site.feed.categories contains cat -%}
19
+ {%- assign category_page = site.streams | where: 'category_id', cat | first -%}
20
+ <li><a href="/feed/{{cat}}.xml" title="{{- category_page.description -}}">{{- category_page.title -}}</a></li>
21
+ {%- endif -%}
22
+ {%- endfor -%}
23
+ </ul>
24
+ </li>
25
+ </ul>
@@ -0,0 +1,28 @@
1
+ <h4>Последние комментарии</h4>
2
+
3
+ {%- assign comments = '' | split: ',' -%}
4
+ {%- for cc in site.data.comments -%}
5
+ {%- if cc[1] -%}
6
+ {%- for ccc in cc[1] -%}
7
+ {%- if ccc[1] and ccc[1].comment_id and ccc[1].comment_id != '' -%}
8
+ {%- assign comments = comments | push: ccc[1] -%}
9
+ {%- endif -%}
10
+ {%- endfor -%}
11
+ {%- endif -%}
12
+ {%- endfor -%}
13
+ {%- assign comments = comments | sort: 'date' | reverse -%}
14
+ <div class="comments">
15
+ {%- for comment in comments limit:site.comments_side_limit -%}
16
+ {%- assign path = comment.slug | split: '-' -%}
17
+ {%- assign year = path[0] -%}
18
+ {%- assign month = path[1] -%}
19
+ {%- assign ext = path[-1] -%}
20
+ {%- assign name = path | shift | shift | pop | join: '-' -%}
21
+ {%- assign url = '/' | append: year | append: '/' | append: month | append: '/' | append: name | append: '.' | append: ext -%}
22
+ {%- assign post = site.posts | where: 'url', url | first -%}
23
+ <div class="comment">
24
+ <p class="meta"><a href="{{url}}#{{comment.comment_id}}">{{comment.date | date: '%Y.%m.%d %H:%M'}} | {{comment.name}} к записи «{{post.title}}»</a></p>
25
+ <div class="message">{{- comment.message | xml_escape | replace: '&gt;', '>' | markdownify -}}</div>
26
+ </div>
27
+ {%- endfor -%}
28
+ </div>
@@ -0,0 +1,26 @@
1
+ {%- assign paths = site.header_pages -%}
2
+ {%- if paths -%}
3
+ <div class="wrapper">
4
+ <input type="checkbox" id="navy-check">
5
+ <label for="navy-check">
6
+ <span id="menu-icon" class="fas">&#xf0c9;</span>
7
+ </label>
8
+ <div id="navy-menu">
9
+ {%- for path in paths -%}
10
+ {%- assign item = site.pages | where: "path", path | first -%}
11
+ {%- if item and item.title -%}
12
+ {%- else -%}
13
+ {%- for col in site.collections -%}
14
+ {%- assign found = col.docs | where: "path", path | first -%}
15
+ {%- if found -%}
16
+ {%- assign item = found -%}
17
+ {%- endif -%}
18
+ {%- endfor -%}
19
+ {%- endif -%}
20
+ {%- if item and item.title -%}
21
+ <a class="navy-item fa-icon-{{- item.icon -}}" href="{{- item.url | relative_url -}}">{{- item.short | default: item.title | escape -}}</a>
22
+ {%- endif -%}
23
+ {%- endfor -%}
24
+ </div>
25
+ </div>
26
+ {%- endif -%}
@@ -0,0 +1,57 @@
1
+ {% comment %}
2
+ <p id="add-comment">Добавить комментарий</p>
3
+
4
+ <form method="POST" action="{{ site.staticman_url }}">
5
+
6
+ <input name="options[redirect]" type="hidden" value="{{ page.url | absolute_url }}#comments">
7
+ <input id="slug" name="options[slug]" type="hidden" value="{{ page_id }}">
8
+ <input name="fields[slug]" type="hidden" value="{{ page_id}}">
9
+ <input id="comment_id" name="fields[comment_id]" type="hidden" value="">
10
+ <input id="parent_id" name="fields[parent_id]" type="hidden" value="">
11
+
12
+ <div id="add-comment-form">
13
+
14
+ <p id="add-comment-target">Будет добавлен комментарий верхнего уровня.</p>
15
+
16
+ <label id="add-comment-name-label" for="add-comment-name-input">Имя:</label>
17
+
18
+ <input id="add-comment-name-input" name="fields[name]" type="text" autocomplete="on">
19
+
20
+ <label id="add-comment-email-label" for="add-comment-email-input">E-mail:</label>
21
+
22
+ <input id="add-comment-email-input" name="fields[email]" type="email" autocomplete="on">
23
+
24
+ <label id="add-comment-site-label" for="add-comment-site-input">Сайт:</label>
25
+
26
+ <input id="add-comment-site-input" name="fields[url]" type="url" autocomplete="on">
27
+
28
+ <label id="add-comment-msg-label" for="add-comment-message">Сообщение:</label>
29
+
30
+ <p id="add-comment-msg-hint">В тексте комментария можно использовать markdown-разметку,
31
+ например, <span style="font-style: italic">*курсив*</span> или <span style="font-weight: bold;">**полужирный**</span>.
32
+ HTML-разметку использовать нельзя.</p>
33
+
34
+ <textarea id="add-comment-message" name="fields[message]" rows="12"></textarea>
35
+
36
+ <div id="add-comment-recaptcha">
37
+
38
+ <div class="g-recaptcha" data-sitekey="6Ld9L3IaAAAAACZDaeBKKiL35iyzoTtTA0OlAv4C"></div>
39
+
40
+ <div id="add-comment-post-hint">
41
+ <p>Комментарии появляются на сайте с задержкой, если ваш комментарий не виден, попробуйте обновить страницу через минуту-другую.</p>
42
+ <p>В случае каких-то проблем с reCAPTCHA, пожалуйста, напишите мне на <a href="mailto:shikhalev@gmail.com">shikhalev@gmail.com</a>.</p>
43
+ </div>
44
+
45
+ </div>
46
+
47
+ <button id="add-comment-button" type="submit">Отправить</button>
48
+
49
+ </div>
50
+
51
+ <input type="hidden" name="options[reCaptcha][siteKey]" value="6Ld9L3IaAAAAACZDaeBKKiL35iyzoTtTA0OlAv4C">
52
+ <input type="hidden" name="options[reCaptcha][secret]" value="HCMKZ36nsLtl0ppFxIaaupVsykrGzEmwqrYBl8KwiCCHOoKtH8Kx272sbCuEzFjQmOrnZtfBLXrsk8HpgiRiqM17PvY3zIfSnqINMAtDzdrLMefyU5KwA8hXVF1DH5Qh7AFg/+MFw3BgQ+p7awlwm4K0vcjjsflRXF5NzpUnqyrSqBH++UltkKc1CN0/xETMzECLfNUysXDI4rtXkpHHox+Sha9scF/e+i8vl/cW5d6vjqbo/ojFui4WVf1izKINA2fQs/fzomBWzBkOmTc0xVrLs54uRLibE6Xw/gkmpEGtN7askwVYJXZaYPDhuPULzslunqudU+TjmhCDENfKEw==">
53
+ </form>
54
+
55
+ <script src='https://www.google.com/recaptcha/api.js'></script>
56
+ <script src="/assets/js/comments.js" type="text/javascript"></script>
57
+ {% endcomment %}
@@ -0,0 +1,31 @@
1
+ <div class="comment" id="{{- include.comment.comment_id -}}" itemscope itemtype="http://schema.org/Comment">
2
+ <h5 class="comment-title">
3
+ <span class="comment-author" itemprop="author" itemscope itemtype="http://schema.org/Person">
4
+ {%- if include.comment.url and include.comment.url != '' -%}
5
+ <a href="{{- include.comment.url -}}" itemprop="url" content="{{- include.comment.url -}}"><span itemprop="name">{{- include.comment.name -}}</span></a>
6
+ {%- else -%}
7
+ <span itemprop="name">{{- include.comment.name -}}</span>
8
+ {%- endif -%}
9
+ </span>
10
+ <span class="comment-meta">
11
+ <a href="#{{- include.comment.comment_id -}}" itemprop="url" content="{{- page.url | absolute_url -}}#{{- include.comment.comment_id -}}">#{{- include.comment.comment_id -}}</a>
12
+ <span itemprop="datePublished" content="{{- include.comment.date | date_to_xmlschema -}}">{{- include.comment.date | date: "%Y.%m.%d %H:%M" -}}</span>
13
+ {%- if include.comment.parent_id and include.comment.parent_id != '' %}
14
+ ответ на <a href="#{{- include.comment.parent_id -}}">#{{- include.comment.parent_id -}}</a>
15
+ {%- endif -%}
16
+ </span>
17
+ </h5>
18
+ <div class="comment-message">
19
+ {{- include.comment.message | xml_escape | replace: '&gt;', '>' | markdownify -}}
20
+ </div>
21
+ <div class="comment-actions-wrapper"><p class="comment-actions"><a style="cursor: pointer;" data-action="answer" data-comment="{{- include.comment.comment_id -}}">Ответить</a> |
22
+ <a style="cursor: pointer;" data-action="cite" data-comment="{{- include.comment.comment_id -}}">Цитировать</a></p></div>
23
+ {%- if include.expand != false -%}
24
+ {%- for cc in include.source -%}
25
+ {%- if cc[1].parent_id == include.comment.comment_id -%}
26
+ {%- assign sub = cc[1] -%}
27
+ {%- include nova/comments/item.liquid comment=sub source=include.source -%}
28
+ {%- endif -%}
29
+ {%- endfor -%}
30
+ {%- endif -%}
31
+ </div>
@@ -0,0 +1,22 @@
1
+ {%- if page.comments != false and (layout.comments != false or page.comments == true) -%}
2
+ {%- assign page_id = page.url | slugify -%}
3
+ <section id="comments" itemprop="comment">
4
+ {%- if site.data.comments[page_id] -%}
5
+
6
+ <h2 id="comments-h">Комментарии</h2>
7
+ <p class="small italic">Комментарии не проходят премодерацию, автор сайта не может нести ответственность за их содержание.</p>
8
+
9
+ {%- assign comments = site.data.comments[page_id] | sort -%}
10
+ {%- for comment in comments -%}
11
+ {%- assign c = comment[1] -%}
12
+ {%- if c.parent_id == '' and c.comment_id != '' -%}
13
+ {%- include nova/comments/item.liquid comment=c source=comments -%}
14
+ {%- endif -%}
15
+ {%- endfor -%}
16
+
17
+ {%- endif -%}
18
+ </section>
19
+
20
+ {%- include nova/comments/form.liquid -%}
21
+
22
+ {%- endif -%}