chulapa-jekyll 2.1.0 → 2.2.0

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 (237) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +116 -0
  3. data/README.md +189 -204
  4. data/_data/version.yml +2 -2
  5. data/_includes/components/archive-documents.html +56 -0
  6. data/_includes/components/author.html +6 -1
  7. data/_includes/components/breadcrumbdatesocial.html +1 -1
  8. data/_includes/components/cactus.html +2 -1
  9. data/_includes/components/cloud-entry.html +26 -0
  10. data/_includes/components/cloud.html +66 -0
  11. data/_includes/components/collection-documents.html +17 -0
  12. data/_includes/components/footer-content.html +34 -0
  13. data/_includes/components/headers.html +5 -5
  14. data/_includes/components/indexcards.html +13 -10
  15. data/_includes/components/indexcategory-documents.html +11 -0
  16. data/_includes/components/navbar-classic.html +58 -0
  17. data/_includes/components/navbeforeafter.html +7 -4
  18. data/_includes/components/navigation-fallback.html +19 -0
  19. data/_includes/components/random.html +1 -103
  20. data/_includes/components/recommendations.html +97 -0
  21. data/_includes/components/related.html +1 -96
  22. data/_includes/components/scripts.html +9 -0
  23. data/_includes/components/sidetoc.html +5 -4
  24. data/_includes/components/simplelist.html +6 -6
  25. data/_includes/components/skin-attribution.html +169 -0
  26. data/_includes/components/theme-selector.html +14 -0
  27. data/_includes/footer.html +14 -217
  28. data/_includes/head.html +265 -257
  29. data/_includes/navbar.html +33 -77
  30. data/_includes/search/fusejs.html +3 -19
  31. data/_includes/search/google.html +3 -3
  32. data/_includes/search/lunr.html +3 -11
  33. data/_includes/search/simplesearch.html +6 -6
  34. data/_includes/snippets/bootstrapdemo.html +28 -10
  35. data/_includes/snippets/carousel.html +16 -12
  36. data/_includes/snippets/dark-skin-enabled.html +14 -0
  37. data/_includes/snippets/masonry.html +6 -4
  38. data/_includes/snippets/microformats-url.html +2 -0
  39. data/_includes/snippets/publisher.html +15 -18
  40. data/_includes/snippets/video.html +6 -6
  41. data/_includes/snippets/youtube.html +10 -4
  42. data/_includes/theme-styles.html +201 -0
  43. data/_includes/welcomments/comment_form.html +5 -4
  44. data/_includes/welcomments/comments.html +5 -5
  45. data/_layouts/archive.html +2 -75
  46. data/_layouts/cloudcategory.html +2 -101
  47. data/_layouts/cloudtag.html +2 -103
  48. data/_layouts/compress.html +1 -1
  49. data/_layouts/default.html +17 -6
  50. data/_layouts/indexcategory.html +2 -30
  51. data/_layouts/landingpage.html +6 -4
  52. data/_layouts/minimal.html +12 -8
  53. data/_layouts/search.html +6 -5
  54. data/_sass/bootstrap/_variables.scss +1 -1
  55. data/_sass/bootstrap/mixins/_badge.scss +1 -1
  56. data/_sass/chulapa/_autothemer.scss +31 -0
  57. data/_sass/chulapa/_buttons.scss +101 -0
  58. data/_sass/chulapa/_classes.scss +137 -9
  59. data/_sass/chulapa/_mixins.scss +42 -1
  60. data/_sass/chulapa/_theme-selector.scss +1 -0
  61. data/_sass/chulapa/skins/_deeply.scss +229 -0
  62. data/_sass/chulapa/skins/_electro.scss +30 -0
  63. data/_sass/chulapa/skins/_graymor.scss +39 -0
  64. data/_sass/chulapa/skins/_hootstrap.scss +34 -0
  65. data/_sass/chulapa/skins/_lymcha.scss +27 -0
  66. data/_sass/chulapa/skins/_mickie.scss +38 -0
  67. data/_sass/chulapa/skins/_minco.scss +45 -0
  68. data/_sass/chulapa/skins/_monotone.scss +15 -0
  69. data/_sass/chulapa/skins/_preptor.scss +30 -0
  70. data/_sass/chulapa/skins/_skeeblu.scss +34 -0
  71. data/_sass/chulapa/skins/_sunset.scss +33 -0
  72. data/_sass/chulapa/skins/_wandoo.scss +22 -0
  73. data/_sass/chulapa/skins/bootswatch/_cyborg.scss +543 -0
  74. data/_sass/chulapa/skins/bootswatch/_darkly.scss +452 -0
  75. data/_sass/chulapa/skins/bootswatch/_flatly.scss +415 -0
  76. data/_sass/chulapa/skins/bootswatch/_journal.scss +163 -0
  77. data/_sass/chulapa/skins/bootswatch/_lux.scss +342 -0
  78. data/_sass/chulapa/skins/bootswatch/_materia.scss +914 -0
  79. data/_sass/chulapa/skins/bootswatch/_minty.scss +342 -0
  80. data/_sass/chulapa/skins/bootswatch/_sketchy.scss +757 -0
  81. data/_sass/chulapa/skins/bootswatch/_slate.scss +746 -0
  82. data/_sass/chulapa/skins/bootswatch/_solar.scss +454 -0
  83. data/_sass/chulapa/skins/bootswatch/_united.scss +85 -0
  84. data/_sass/chulapa/skins/bootswatch/_yeti.scss +699 -0
  85. data/_sass/chulapa/skins/bootswatch/cyborg.patch +301 -0
  86. data/_sass/chulapa/skins/bootswatch/darkly.patch +493 -0
  87. data/_sass/chulapa/skins/bootswatch/flatly.patch +325 -0
  88. data/_sass/chulapa/skins/bootswatch/journal.patch +71 -0
  89. data/_sass/chulapa/skins/bootswatch/lux.patch +97 -0
  90. data/_sass/chulapa/skins/bootswatch/materia.patch +250 -0
  91. data/_sass/chulapa/skins/bootswatch/minty.patch +400 -0
  92. data/_sass/chulapa/skins/bootswatch/sketchy.patch +863 -0
  93. data/_sass/chulapa/skins/bootswatch/slate.patch +537 -0
  94. data/_sass/chulapa/skins/bootswatch/solar.patch +307 -0
  95. data/_sass/chulapa/skins/bootswatch/united.patch +91 -0
  96. data/_sass/chulapa/skins/bootswatch/yeti.patch +552 -0
  97. data/_sass/chulapa-master.scss +10 -0
  98. data/_sass/skins/academia.scss +28 -0
  99. data/_sass/skins/auto.scss +23 -28
  100. data/_sass/skins/butterfly-dark.scss +22 -3
  101. data/_sass/skins/butterfly-dim.scss +32 -5
  102. data/_sass/skins/butterfly.scss +35 -3
  103. data/_sass/skins/cerulean.scss +120 -0
  104. data/_sass/skins/chulapa.scss +23 -3
  105. data/_sass/skins/cyborg.scss +3 -512
  106. data/_sass/skins/darkly.scss +3 -424
  107. data/_sass/skins/deeply.scss +10 -279
  108. data/_sass/skins/electro.scss +4 -25
  109. data/_sass/skins/flatly.scss +3 -386
  110. data/_sass/skins/focal.scss +33 -2
  111. data/_sass/skins/gitdev-dark.scss +19 -8
  112. data/_sass/skins/gitdev.scss +2 -2
  113. data/_sass/skins/graymor.scss +7 -30
  114. data/_sass/skins/hootstrap.scss +5 -19
  115. data/_sass/skins/journal.scss +3 -131
  116. data/_sass/skins/listen.scss +35 -3
  117. data/_sass/skins/litera.scss +281 -0
  118. data/_sass/skins/lux.scss +3 -310
  119. data/_sass/skins/lymcha.scss +4 -17
  120. data/_sass/skins/materia.scss +3 -889
  121. data/_sass/skins/media.scss +11 -1
  122. data/_sass/skins/mickie.scss +7 -26
  123. data/_sass/skins/minco.scss +10 -29
  124. data/_sass/skins/minty.scss +3 -309
  125. data/_sass/skins/monotone.scss +6 -24
  126. data/_sass/skins/navi.scss +29 -1
  127. data/_sass/skins/none.scss +24 -2
  128. data/_sass/skins/pear.scss +34 -1
  129. data/_sass/skins/preptor.scss +6 -16
  130. data/_sass/skins/pulse.scss +158 -0
  131. data/_sass/skins/skeeblu.scss +6 -17
  132. data/_sass/skins/sketchy.scss +3 -735
  133. data/_sass/skins/slate.scss +3 -719
  134. data/_sass/skins/solar.scss +3 -425
  135. data/_sass/skins/sunset.scss +6 -26
  136. data/_sass/skins/towards.scss +26 -1
  137. data/_sass/skins/twitter-dim.scss +43 -5
  138. data/_sass/skins/twitter-lights-out.scss +25 -3
  139. data/_sass/skins/twitter.scss +32 -3
  140. data/_sass/skins/united.scss +3 -57
  141. data/_sass/skins/universal.scss +17 -0
  142. data/_sass/skins/wandoo.scss +6 -12
  143. data/_sass/skins/yeti.scss +3 -673
  144. data/_sass/vendor/bootswatch/LICENSE +21 -0
  145. data/_sass/vendor/bootswatch/LICENSE-4.5.0 +21 -0
  146. data/_sass/vendor/bootswatch/README.md +57 -0
  147. data/_sass/vendor/bootswatch/cerulean/_bootswatch.scss +102 -0
  148. data/_sass/vendor/bootswatch/cerulean/_variables.scss +57 -0
  149. data/_sass/vendor/bootswatch/cyborg/_bootswatch.scss +330 -0
  150. data/_sass/vendor/bootswatch/cyborg/_variables.scss +169 -0
  151. data/_sass/vendor/bootswatch/darkly/_bootswatch.scss +247 -0
  152. data/_sass/vendor/bootswatch/darkly/_variables.scss +164 -0
  153. data/_sass/vendor/bootswatch/flatly/_bootswatch.scss +274 -0
  154. data/_sass/vendor/bootswatch/flatly/_variables.scss +106 -0
  155. data/_sass/vendor/bootswatch/journal/_bootswatch.scss +62 -0
  156. data/_sass/vendor/bootswatch/journal/_variables.scss +60 -0
  157. data/_sass/vendor/bootswatch/litera/_bootswatch.scss +268 -0
  158. data/_sass/vendor/bootswatch/litera/_variables.scss +96 -0
  159. data/_sass/vendor/bootswatch/lux/_bootswatch.scss +191 -0
  160. data/_sass/vendor/bootswatch/lux/_variables.scss +103 -0
  161. data/_sass/vendor/bootswatch/materia/_bootswatch.scss +747 -0
  162. data/_sass/vendor/bootswatch/materia/_variables.scss +129 -0
  163. data/_sass/vendor/bootswatch/minty/_bootswatch.scss +380 -0
  164. data/_sass/vendor/bootswatch/minty/_variables.scss +94 -0
  165. data/_sass/vendor/bootswatch/pulse/_bootswatch.scss +145 -0
  166. data/_sass/vendor/bootswatch/pulse/_variables.scss +96 -0
  167. data/_sass/vendor/bootswatch/sketchy/_bootswatch.scss +492 -0
  168. data/_sass/vendor/bootswatch/sketchy/_variables.scss +172 -0
  169. data/_sass/vendor/bootswatch/slate/_bootswatch.scss +531 -0
  170. data/_sass/vendor/bootswatch/slate/_variables.scss +163 -0
  171. data/_sass/vendor/bootswatch/solar/_bootswatch.scss +243 -0
  172. data/_sass/vendor/bootswatch/solar/_variables.scss +171 -0
  173. data/_sass/vendor/bootswatch/source.json +86 -0
  174. data/_sass/vendor/bootswatch/united/_bootswatch.scss +10 -0
  175. data/_sass/vendor/bootswatch/united/_variables.scss +54 -0
  176. data/_sass/vendor/bootswatch/yeti/_bootswatch.scss +586 -0
  177. data/_sass/vendor/bootswatch/yeti/_variables.scss +110 -0
  178. data/_sass/vendor/tophat/LICENSE +21 -0
  179. data/_sass/vendor/tophat/README.md +38 -0
  180. data/_sass/vendor/tophat/deeply/_styles.scss +6 -0
  181. data/_sass/vendor/tophat/deeply/_variables.scss +73 -0
  182. data/_sass/vendor/tophat/deeply/theme.scss +77 -0
  183. data/_sass/vendor/tophat/electro/_styles.scss +5 -0
  184. data/_sass/vendor/tophat/electro/_variables.scss +23 -0
  185. data/_sass/vendor/tophat/electro/theme.scss +28 -0
  186. data/_sass/vendor/tophat/graymor/_styles.scss +5 -0
  187. data/_sass/vendor/tophat/graymor/_variables.scss +18 -0
  188. data/_sass/vendor/tophat/graymor/theme.scss +24 -0
  189. data/_sass/vendor/tophat/hootstrap/_styles.scss +5 -0
  190. data/_sass/vendor/tophat/hootstrap/_variables.scss +14 -0
  191. data/_sass/vendor/tophat/hootstrap/theme.scss +18 -0
  192. data/_sass/vendor/tophat/lymcha/_styles.scss +5 -0
  193. data/_sass/vendor/tophat/lymcha/_variables.scss +13 -0
  194. data/_sass/vendor/tophat/lymcha/theme.scss +16 -0
  195. data/_sass/vendor/tophat/mickie/_styles.scss +5 -0
  196. data/_sass/vendor/tophat/mickie/_variables.scss +13 -0
  197. data/_sass/vendor/tophat/mickie/theme.scss +17 -0
  198. data/_sass/vendor/tophat/minco/_styles.scss +5 -0
  199. data/_sass/vendor/tophat/minco/_variables.scss +14 -0
  200. data/_sass/vendor/tophat/minco/theme.scss +18 -0
  201. data/_sass/vendor/tophat/monotone/_styles.scss +5 -0
  202. data/_sass/vendor/tophat/monotone/_variables.scss +14 -0
  203. data/_sass/vendor/tophat/monotone/theme.scss +18 -0
  204. data/_sass/vendor/tophat/preptor/_styles.scss +5 -0
  205. data/_sass/vendor/tophat/preptor/_variables.scss +14 -0
  206. data/_sass/vendor/tophat/preptor/theme.scss +18 -0
  207. data/_sass/vendor/tophat/skeeblu/_styles.scss +5 -0
  208. data/_sass/vendor/tophat/skeeblu/_variables.scss +17 -0
  209. data/_sass/vendor/tophat/skeeblu/theme.scss +22 -0
  210. data/_sass/vendor/tophat/source.json +57 -0
  211. data/_sass/vendor/tophat/sunset/_styles.scss +5 -0
  212. data/_sass/vendor/tophat/sunset/_variables.scss +13 -0
  213. data/_sass/vendor/tophat/sunset/theme.scss +16 -0
  214. data/_sass/vendor/tophat/wandoo/_styles.scss +5 -0
  215. data/_sass/vendor/tophat/wandoo/_variables.scss +18 -0
  216. data/_sass/vendor/tophat/wandoo/theme.scss +24 -0
  217. data/assets/css/dark/highlighter.scss +10 -0
  218. data/assets/css/dark/main.scss +43 -0
  219. data/assets/css/highlighter.scss +6 -1
  220. data/assets/css/main.scss +12 -3
  221. data/assets/css/search-fusejs.css +14 -0
  222. data/assets/css/search-lunr.css +7 -0
  223. data/assets/js/better404/better404.js +31 -38
  224. data/assets/js/ch_ytdefer/ch_ytdefer.js +27 -82
  225. data/assets/js/chulapa_carousel.js +115 -0
  226. data/assets/js/chulapa_mermaid.js +31 -0
  227. data/assets/js/chulapa_navigation.js +71 -0
  228. data/assets/js/chulapa_photoswipe.js +106 -0
  229. data/assets/js/chulapa_script.js +198 -76
  230. data/assets/js/chulapa_search.js +89 -0
  231. data/assets/js/clipboard/chulapa_clipboard.js +17 -108
  232. data/assets/js/cusdis/chulapa_cusdis.js +1 -1
  233. data/assets/js/fusejs/fusejs-search.js +5 -140
  234. data/assets/js/fusejs/fusejs-search.min.js +4 -4
  235. data/assets/js/lunr/lunr-search.js +7 -130
  236. data/assets/js/lunr/lunr-search.min.js +1 -1
  237. metadata +141 -2
data/_includes/head.html CHANGED
@@ -1,11 +1,3 @@
1
- <head>
2
- <meta charset="utf-8">
3
- <!-- Chulapa Jekyll Theme - v2.1.0 -->
4
- <!-- MIT License-->
5
- <!-- Docs: https://dieghernan.github.io/chulapa -->
6
- <!-- Repo: https://github.com/dieghernan/chulapa -->
7
- <!-- Page build {{ site.time | date: "%Y-%m-%d" }} -->
8
- <!-- Jekyll Version {{ jekyll.version }} -->
9
1
  {%- include snippets/canonical-url.html url=page.url canonical=page.canonical_url -%}
10
2
  {%- assign home_url = '/' | absolute_url | uri_escape -%}
11
3
  {%- include snippets/breadcrumb-names.html -%}
@@ -34,24 +26,25 @@
34
26
  {%- if ogimage_source != empty -%}
35
27
  {%- assign ogimage = ogimage_source | absolute_url -%}
36
28
  {%- endif -%}
37
- {%- assign descfallback = page.content |
38
- markdownify | newline_to_br |
39
- replace:"<br />", ",.," |
40
- replace:"{{", ",.," |
41
- replace:"{%", ",.," |
42
- split: ",.," | first -%}
43
29
  {%- assign explicit_description = page.description | markdownify | strip_html | split: ' ' | join: ' ' | strip -%}
30
+ {%- if explicit_description != empty -%}
31
+ {%- assign ogdesc = explicit_description -%}
32
+ {%- else -%}
44
33
  {%- assign ogdesc = page.excerpt | markdownify | strip_html | split: ' ' | join: ' ' | strip -%}
45
34
  {%- if ogdesc == empty and strippedurl == '/' -%}
46
35
  {%- assign ogdesc = site.description | markdownify | strip_html | split: ' ' | join: ' ' | strip -%}
47
36
  {%- endif -%}
48
37
  {%- if ogdesc == empty -%}
38
+ {%- assign descfallback = page.content |
39
+ markdownify | newline_to_br |
40
+ replace:"<br />", ",.," |
41
+ replace:"{{", ",.," |
42
+ replace:"{%", ",.," |
43
+ split: ",.," | first -%}
49
44
  {%- assign ogdesc = descfallback | markdownify | strip_html | split: ' ' | join: ' ' | strip -%}
50
45
  {%- endif -%}
51
46
  {%- assign metasubtitle = page.subtitle | markdownify | strip_html | split: ' ' | join: ' ' | strip -%}
52
- {%- if explicit_description != empty -%}
53
- {%- assign ogdesc = explicit_description -%}
54
- {%- elsif metasubtitle != empty -%}
47
+ {%- if metasubtitle != empty -%}
55
48
  {%- assign description_lower = ogdesc | downcase -%}
56
49
  {%- assign subtitle_lower = metasubtitle | downcase -%}
57
50
  {%- if ogdesc == empty -%}
@@ -62,6 +55,7 @@
62
55
  {%- endunless -%}
63
56
  {%- endif -%}
64
57
  {%- endif -%}
58
+ {%- endif -%}
65
59
  {%- assign ogdesc = ogdesc | newline_to_br | replace: '<br />', ' ' | strip_newlines | strip | escape_once -%}
66
60
  {%- assign links = page.author.links | default: site.author.links -%}
67
61
  {%- assign creator_links = site.author.links -%}
@@ -115,189 +109,176 @@
115
109
  {%- else -%}
116
110
  {%- assign schema_type = "WebPage" -%}
117
111
  {%- endif %}
118
- <!--Google Structured Data-->
112
+ <head>
113
+ <meta charset="utf-8">
114
+ <!-- Chulapa Jekyll Theme - v2.2.0 -->
115
+ <!-- MIT License -->
116
+ <!-- Docs: https://dieghernan.github.io/chulapa -->
117
+ <!-- Repo: https://github.com/dieghernan/chulapa -->
118
+ <!-- Page build {{ site.time | date: "%Y-%m-%d" }} -->
119
+ <!-- Jekyll Version {{ jekyll.version }} -->
120
+ <!-- Google structured data -->
119
121
  <script type="application/ld+json">
120
- {
121
- "@context": "https://schema.org",
122
- "@type": {{ schema_type | jsonify }},
122
+ {
123
+ "@context": "https://schema.org",
124
+ "@type": {{ schema_type | jsonify }},
123
125
  {% if schema_type == 'WebPage' %}
124
- "@id": {% include snippets/jsonld-string.html value=canonical_url decode_html=false %},
125
- "name": {% include snippets/jsonld-string.html value=metatitle1 %},
126
- "description": {% include snippets/jsonld-string.html value=ogdesc %},
126
+ "@id": {% include snippets/jsonld-string.html value=canonical_url decode_html=false %},
127
+ "name": {% include snippets/jsonld-string.html value=metatitle1 %},
128
+ "description": {% include snippets/jsonld-string.html value=ogdesc %},
127
129
  {% elsif schema_type == 'WebSite' %}
128
- "@id": {%- assign jsonld_value = home_url | append: '#website' -%}{% include snippets/jsonld-string.html value=jsonld_value decode_html=false %},
129
- "name": {% include snippets/jsonld-string.html value=breadcrumb_site_name %},
130
- "url": {% include snippets/jsonld-string.html value=home_url decode_html=false %},
130
+ "@id": {% assign jsonld_value = home_url | append: '#website' %}{% include snippets/jsonld-string.html value=jsonld_value decode_html=false %},
131
+ "name": {% include snippets/jsonld-string.html value=breadcrumb_site_name %},
132
+ "url": {% include snippets/jsonld-string.html value=home_url decode_html=false %},
131
133
  {% else %}
132
- "@id": {%- assign jsonld_value = canonical_url | append: '#article' -%}{% include snippets/jsonld-string.html value=jsonld_value decode_html=false %},
133
- "mainEntityOfPage": {
134
- "@type": "WebPage",
135
- "@id": {% include snippets/jsonld-string.html value=canonical_url decode_html=false %}
136
- },
134
+ "@id": {% assign jsonld_value = canonical_url | append: '#article' %}{% include snippets/jsonld-string.html value=jsonld_value decode_html=false %},
135
+ "mainEntityOfPage": {
136
+ "@type": "WebPage",
137
+ "@id": {% include snippets/jsonld-string.html value=canonical_url decode_html=false %}
138
+ },
137
139
  {% endif %}
138
- "headline": {%- assign jsonld_value = metatitle1 | strip_html | strip -%}{% include snippets/jsonld-string.html value=jsonld_value %},
140
+ "headline": {% assign jsonld_value = metatitle1 | strip_html | strip %}{% include snippets/jsonld-string.html value=jsonld_value %},
139
141
  {% if schema_type == 'BlogPosting' %}
140
- {% include snippets/article-images.html %}
142
+ {% include snippets/article-images.html %}
141
143
  {% else %}
142
- "image": {% include snippets/jsonld-string.html value=ogimage decode_html=false %},
144
+ "image": {% include snippets/jsonld-string.html value=ogimage decode_html=false %},
143
145
  {% endif %}
144
146
  {% if page.date %}
145
- "datePublished": {{ page.date | date_to_xmlschema | jsonify }},
146
- "dateModified": {{ page.last_modified_at | default: page.date | date_to_xmlschema | jsonify }},
147
+ "datePublished": {{ page.date | date_to_xmlschema | jsonify }},
148
+ "dateModified": {{ page.last_modified_at | default: page.date | date_to_xmlschema | jsonify }},
147
149
  {% endif %}
148
- "author": {
149
- "@type": "Person",
150
- "name": {%- assign jsonld_value = page.author.name | default: site.author.name | default: site.github.owner_name -%}{% include snippets/jsonld-string.html value=jsonld_value %}
151
- {% if authorlink %}
152
- {% for item in authorlink %}
153
- {% if forloop.first %}
154
- , "url": {% include snippets/jsonld-string.html value=item.url decode_html=false %}
155
- {% else %}
156
- {% if forloop.index == 2 %}
157
- , "sameAs" : [
158
- {% endif %}
159
- {% include snippets/jsonld-string.html value=item.url decode_html=false %}
160
- {%- if forloop.last %}
161
- ]
162
- {% else %}
163
- ,
164
- {% endif %}
165
- {% endif %}
166
- {% endfor %}
167
- {% endif %}
168
- },
169
- "publisher": {% include snippets/publisher.html %}
170
- }
150
+ "author": {
151
+ "@type": "Person",
152
+ "name": {% assign jsonld_value = page.author.name | default: site.author.name | default: site.github.owner_name %}{% include snippets/jsonld-string.html value=jsonld_value %}{% if authorlink.size > 0 %},
153
+ "url": {% include snippets/jsonld-string.html value=authorlink.first.url decode_html=false %}{% if authorlink.size > 1 %},
154
+ "sameAs": [
155
+ {% for item in authorlink offset:1 %}
156
+ {% include snippets/jsonld-string.html value=item.url decode_html=false %}{% unless forloop.last %},{% endunless %}
157
+ {% endfor %}
158
+ ]{% endif %}{% endif %}
159
+ },
160
+ "publisher": {% include snippets/publisher.html %}
161
+ }
171
162
  </script>
172
163
  {% if page.breadcrumb_list.size > 0 %}
173
- <script type="application/ld+json">
174
- {
175
- "@context": "https://schema.org",
176
- "@type": "BreadcrumbList",
177
- "@id": {%- assign jsonld_value = canonical_url | append: '#breadcrumb' -%}{% include snippets/jsonld-string.html value=jsonld_value decode_html=false %},
178
- "itemListElement": [
179
- {% for item in page.breadcrumb_list %}
164
+ <script type="application/ld+json">
180
165
  {
181
- "@type": "ListItem",
182
- "@id": {%- assign jsonld_value = canonical_url | append: '#breadcrumb-' | append: forloop.index -%}{% include snippets/jsonld-string.html value=jsonld_value decode_html=false %},
183
- "position": {{ forloop.index }},
184
- "name": {%- assign jsonld_value = item.label | strip_html | strip | default: item.url | default: breadcrumb_home_name -%}{% include snippets/jsonld-string.html value=jsonld_value %},
185
- "item": {%- assign jsonld_value = item.url | absolute_url -%}{% include snippets/jsonld-string.html value=jsonld_value decode_html=false %}
186
- },
166
+ "@context": "https://schema.org",
167
+ "@type": "BreadcrumbList",
168
+ "@id": {% assign jsonld_value = canonical_url | append: '#breadcrumb' %}{% include snippets/jsonld-string.html value=jsonld_value decode_html=false %},
169
+ "itemListElement": [
170
+ {% for item in page.breadcrumb_list %}
171
+ {
172
+ "@type": "ListItem",
173
+ "@id": {% assign jsonld_value = canonical_url | append: '#breadcrumb-' | append: forloop.index %}{% include snippets/jsonld-string.html value=jsonld_value decode_html=false %},
174
+ "position": {{ forloop.index }},
175
+ "name": {% assign jsonld_value = item.label | strip_html | strip | default: item.url | default: breadcrumb_home_name %}{% include snippets/jsonld-string.html value=jsonld_value %},
176
+ "item": {% assign jsonld_value = item.url | absolute_url %}{% include snippets/jsonld-string.html value=jsonld_value decode_html=false %}
177
+ },
187
178
  {% if forloop.last %}
188
179
  {% assign loopplus1 = forloop.index | plus: 1 %}
189
180
  {% endif %}
190
181
  {% endfor %}
191
- {
192
- "@type": "ListItem",
193
- "@id": {%- assign jsonld_value = canonical_url | append: '#breadcrumb-' | append: loopplus1 -%}{% include snippets/jsonld-string.html value=jsonld_value decode_html=false %},
194
- "position": {{ loopplus1 }},
195
- "item": {% include snippets/jsonld-string.html value=canonical_url decode_html=false %},
196
- "name": {% include snippets/jsonld-string.html value=breadcrumb_page_name %}
197
- }]
198
- }
182
+ {
183
+ "@type": "ListItem",
184
+ "@id": {% assign jsonld_value = canonical_url | append: '#breadcrumb-' | append: loopplus1 %}{% include snippets/jsonld-string.html value=jsonld_value decode_html=false %},
185
+ "position": {{ loopplus1 }},
186
+ "item": {% include snippets/jsonld-string.html value=canonical_url decode_html=false %},
187
+ "name": {% include snippets/jsonld-string.html value=breadcrumb_page_name %}
188
+ }
189
+ ]
190
+ }
199
191
  </script>
200
192
  {% elsif strippedurl != "/" %}
201
193
  <script type="application/ld+json">
202
- {
203
- "@context": "https://schema.org",
204
- "@type": "BreadcrumbList",
205
- "@id": {%- assign jsonld_value = canonical_url | append: '#breadcrumb' -%}{% include snippets/jsonld-string.html value=jsonld_value decode_html=false %},
206
- "itemListElement": [{
207
- "@type": "ListItem",
208
- "@id": {%- assign jsonld_value = canonical_url | append: '#breadcrumb-1' -%}{% include snippets/jsonld-string.html value=jsonld_value decode_html=false %},
209
- "position": 1,
210
- "name": {% include snippets/jsonld-string.html value=breadcrumb_home_name %},
211
- "item": {%- assign jsonld_value = "/" | absolute_url -%}{% include snippets/jsonld-string.html value=jsonld_value decode_html=false %}
212
- },{
213
- "@type": "ListItem",
214
- "@id": {%- assign jsonld_value = canonical_url | append: '#breadcrumb-2' -%}{% include snippets/jsonld-string.html value=jsonld_value decode_html=false %},
215
- "position": 2,
216
- "item": {% include snippets/jsonld-string.html value=canonical_url decode_html=false %},
217
- "name": {% include snippets/jsonld-string.html value=breadcrumb_page_name %}
218
- }]
219
- }
194
+ {
195
+ "@context": "https://schema.org",
196
+ "@type": "BreadcrumbList",
197
+ "@id": {% assign jsonld_value = canonical_url | append: '#breadcrumb' %}{% include snippets/jsonld-string.html value=jsonld_value decode_html=false %},
198
+ "itemListElement": [{
199
+ "@type": "ListItem",
200
+ "@id": {% assign jsonld_value = canonical_url | append: '#breadcrumb-1' %}{% include snippets/jsonld-string.html value=jsonld_value decode_html=false %},
201
+ "position": 1,
202
+ "name": {% include snippets/jsonld-string.html value=breadcrumb_home_name %},
203
+ "item": {% assign jsonld_value = "/" | absolute_url %}{% include snippets/jsonld-string.html value=jsonld_value decode_html=false %}
204
+ },{
205
+ "@type": "ListItem",
206
+ "@id": {% assign jsonld_value = canonical_url | append: '#breadcrumb-2' %}{% include snippets/jsonld-string.html value=jsonld_value decode_html=false %},
207
+ "position": 2,
208
+ "item": {% include snippets/jsonld-string.html value=canonical_url decode_html=false %},
209
+ "name": {% include snippets/jsonld-string.html value=breadcrumb_page_name %}
210
+ }
211
+ ]
212
+ }
220
213
  </script>
221
214
  {% endif %}
222
215
  {% if schema_type != 'WebPage' %}
223
- <script type="application/ld+json">
224
- {
225
- "@context": "https://schema.org",
226
- "@type": "WebPage",
227
- "@id": {% include snippets/jsonld-string.html value=canonical_url decode_html=false %},
228
- "isPartOf": {"@id": {%- assign jsonld_value = home_url | append: '#website' -%}{% include snippets/jsonld-string.html value=jsonld_value decode_html=false %}},
229
- "name": {%- assign jsonld_value = metatitle1 | strip_html -%}{% include snippets/jsonld-string.html value=jsonld_value %},
230
- "description": {% include snippets/jsonld-string.html value=ogdesc %}
231
- }
232
- </script>
216
+ <script type="application/ld+json">
217
+ {
218
+ "@context": "https://schema.org",
219
+ "@type": "WebPage",
220
+ "@id": {% include snippets/jsonld-string.html value=canonical_url decode_html=false %},
221
+ "isPartOf": {"@id": {% assign jsonld_value = home_url | append: '#website' %}{% include snippets/jsonld-string.html value=jsonld_value decode_html=false %}},
222
+ "name": {% assign jsonld_value = metatitle1 | strip_html %}{% include snippets/jsonld-string.html value=jsonld_value %},
223
+ "description": {% include snippets/jsonld-string.html value=ogdesc %}
224
+ }
225
+ </script>
233
226
  {% endif %}
234
- {%- assign sitelink = site.author.links |
227
+ {% assign sitelink = site.author.links |
235
228
  where_exp: "item", "item.url contains 'http'"
236
- -%}
237
- <script type="application/ld+json">
238
- {
239
- "@context" : "https://schema.org",
240
- "@type" : "Person",
229
+ %}
230
+ <script type="application/ld+json">
231
+ {
232
+ "@context": "https://schema.org",
233
+ "@type": "Person",
241
234
  {% if site.author.avatar %}
242
- "image": {%- assign jsonld_value = site.author.avatar | absolute_url -%}{% include snippets/jsonld-string.html value=jsonld_value decode_html=false %},
235
+ "image": {% assign jsonld_value = site.author.avatar | absolute_url %}{% include snippets/jsonld-string.html value=jsonld_value decode_html=false %},
243
236
  {% endif %}
244
237
  {% if site.author.location %}
245
- "homeLocation": {
246
- "@type": "Place",
247
- "name": {% include snippets/jsonld-string.html value=site.author.location %}
248
- },
238
+ "homeLocation": {
239
+ "@type": "Place",
240
+ "name": {% include snippets/jsonld-string.html value=site.author.location %}
241
+ },
249
242
  {% endif %}
250
- {%- capture publisher_settings -%}{{ site.publisher.type }}{{ site.publisher.name }}{{ site.publisher.url }}{{ site.publisher.logo }}{{ site.publisher.image }}{%- endcapture -%}
251
- "description": {% if publisher_settings != empty %}"Site author"{% else %}"Publisher"{% endif %},
252
- "name" : {%- assign jsonld_value = site.author.name | default: site.github.owner_name -%}{% include snippets/jsonld-string.html value=jsonld_value %},
253
- "url" : {%- assign jsonld_value = "/" | absolute_url -%}{% include snippets/jsonld-string.html value=jsonld_value decode_html=false %}
254
- {% if sitelink %}
255
- , "sameAs" : [
243
+ {% capture publisher_settings %}{{ site.publisher.type }}{{ site.publisher.name }}{{ site.publisher.url }}{{ site.publisher.logo }}{{ site.publisher.image }}{% endcapture %}
244
+ "description": {% if publisher_settings != empty %}"Site author"{% else %}"Publisher"{% endif %},
245
+ "name": {% assign jsonld_value = site.author.name | default: site.github.owner_name %}{% include snippets/jsonld-string.html value=jsonld_value %},
246
+ "url": {% assign jsonld_value = "/" | absolute_url %}{% include snippets/jsonld-string.html value=jsonld_value decode_html=false %}{% if sitelink %},
247
+ "sameAs": [
256
248
  {% for item in sitelink %}
257
- {% include snippets/jsonld-string.html value=item.url decode_html=false %}{%- if forloop.last %}{% else %},{% endif %}
249
+ {% include snippets/jsonld-string.html value=item.url decode_html=false %}{% if forloop.last %}{% else %},{% endif %}
258
250
  {% endfor %}
259
- ]
251
+ ]
260
252
  {% endif %}
261
- }
262
- </script>
253
+ }
254
+ </script>
263
255
  {% if page.author %}
264
- {%- assign pagelink = page.author.links |
256
+ {% assign pagelink = page.author.links |
265
257
  where_exp: "item", "item.url contains 'http'"
266
- -%}
267
- <script type="application/ld+json">
268
- {
269
- "@context" : "https://schema.org",
270
- "@type" : "Person",
258
+ %}
259
+ <script type="application/ld+json">
260
+ {
261
+ "@context": "https://schema.org",
262
+ "@type": "Person",
271
263
  {% if page.author.avatar %}
272
- "image": {%- assign jsonld_value = page.author.avatar | absolute_url -%}{% include snippets/jsonld-string.html value=jsonld_value decode_html=false %},
264
+ "image": {% assign jsonld_value = page.author.avatar | absolute_url %}{% include snippets/jsonld-string.html value=jsonld_value decode_html=false %},
273
265
  {% endif %}
274
266
  {% if page.author.location %}
275
- "homeLocation": {
276
- "@type": "Place",
277
- "name": {% include snippets/jsonld-string.html value=page.author.location %}
278
- },
279
- {% endif %}
280
- "description": "Collaborator",
281
- "name" : {% include snippets/jsonld-string.html value=page.author.name %}
282
- {% if pagelink %}
283
- {% for item in pagelink %}
284
- {% if forloop.first %}
285
- , "url": {% include snippets/jsonld-string.html value=item.url decode_html=false %}
286
- {% else %}
287
- {% if forloop.index == 2 %}
288
- , "sameAs" : [
289
- {% endif %}
290
- {% include snippets/jsonld-string.html value=item.url decode_html=false %}
291
- {%- if forloop.last %}
292
- ]
293
- {% else %}
294
- ,
295
- {% endif %}
296
- {% endif %}
297
- {% endfor %}
267
+ "homeLocation": {
268
+ "@type": "Place",
269
+ "name": {% include snippets/jsonld-string.html value=page.author.location %}
270
+ },
298
271
  {% endif %}
299
- }
300
- </script>
272
+ "description": "Collaborator",
273
+ "name": {% include snippets/jsonld-string.html value=page.author.name %}{% if pagelink.size > 0 %},
274
+ "url": {% include snippets/jsonld-string.html value=pagelink.first.url decode_html=false %}{% if pagelink.size > 1 %},
275
+ "sameAs": [
276
+ {% for item in pagelink offset:1 %}
277
+ {% include snippets/jsonld-string.html value=item.url decode_html=false %}{% unless forloop.last %},{% endunless %}
278
+ {% endfor %}
279
+ ]{% endif %}{% endif %}
280
+ }
281
+ </script>
301
282
  {% endif %}
302
283
  <title>{{ metatitle | escape_once }}</title>
303
284
  <link rel="canonical" href="{{ canonical_url | escape }}">
@@ -312,147 +293,174 @@ where_exp: "item", "item.url contains 'http'"
312
293
  <meta name="description" content="{{- ogdesc -}}">
313
294
  {% if ogimage %}<meta name="thumbnail" content="{{ ogimage | escape_once }}" >{% endif %}
314
295
  <meta name="robots" content="{{ page.robots | default: 'index, follow' | strip | default: 'index, follow' | escape }}">
315
- {% if site.chulapa-skin.vars.primary -%}
296
+ {% if site.chulapa-skin.vars.primary %}
316
297
  <!-- Chrome, Firefox OS and Opera -->
317
- <meta name="theme-color" content="{{ site.chulapa-skin.vars.primary }}">
318
- {%- endif %}
298
+ <meta name="theme-color" data-chulapa-theme-color content="{{ site.chulapa-skin.vars.primary }}">
299
+ {% endif %}
319
300
  <!-- OpenGraph -->
320
301
  <meta property="og:title" content="{{ social_title | escape_once }}" >
321
302
  <meta property="og:site_name" content="{{ sitename | strip_html | escape_once }}" >
322
303
  <meta property="og:url" content="{{ canonical_url | escape }}" >
323
- {%- assign og_type = page.og_type | strip -%}
324
- {%- if og_type == empty -%}
325
- {%- if page.collection == 'posts' -%}{%- assign og_type = 'article' -%}
326
- {%- else -%}{%- assign og_type = 'website' -%}{%- endif -%}
327
- {%- endif %}
304
+ {% assign og_type = page.og_type | strip %}
305
+ {% if og_type == empty %}
306
+ {% if page.collection == 'posts' %}{% assign og_type = 'article' %}
307
+ {% else %}{% assign og_type = 'website' %}{% endif %}
308
+ {% endif %}
328
309
  <meta property="og:type" content="{{ og_type | escape }}" >
329
310
  {% if og_type == 'article' %}
330
- {% if page.date %}<meta property="article:published_time" content="{{ page.date | date_to_xmlschema | escape }}">{% endif %}
331
- {% if page.last_modified_at %}<meta property="article:modified_time" content="{{ page.last_modified_at | date_to_xmlschema | escape }}">{% endif %}
332
- {%- assign article_author = page.og_article_author | strip -%}
333
- {%- if article_author == empty -%}
334
- {%- if page.author -%}{%- assign article_author = page.author.url | strip -%}
335
- {%- else -%}{%- assign article_author = site.author.url | strip -%}{%- endif -%}
336
- {%- endif -%}
337
- {% if article_author != empty %}<meta property="article:author" content="{{ article_author | absolute_url | escape }}">{% endif %}
338
- {%- assign article_section = page.og_article_section | strip -%}
339
- {%- if article_section == empty -%}{%- assign article_section = page.categories | first | strip -%}{%- endif -%}
340
- {% if article_section != empty %}<meta property="article:section" content="{{ article_section | escape }}">{% endif %}
311
+ {% if page.date %}
312
+ <meta property="article:published_time" content="{{ page.date | date_to_xmlschema | escape }}">
313
+ {% endif %}
314
+ {% if page.last_modified_at %}
315
+ <meta property="article:modified_time" content="{{ page.last_modified_at | date_to_xmlschema | escape }}">
316
+ {% endif %}
317
+ {% assign article_author = page.og_article_author | strip %}
318
+ {% if article_author == empty %}
319
+ {% if page.author %}{% assign article_author = page.author.url | strip %}
320
+ {% else %}{% assign article_author = site.author.url | strip %}{% endif %}
321
+ {% endif %}
322
+ {% if article_author != empty %}
323
+ <meta property="article:author" content="{{ article_author | absolute_url | escape }}">
324
+ {% endif %}
325
+ {% assign article_section = page.og_article_section | strip %}
326
+ {% if article_section == empty %}{% assign article_section = page.categories | first | strip %}{% endif %}
327
+ {% if article_section != empty %}
328
+ <meta property="article:section" content="{{ article_section | escape }}">
329
+ {% endif %}
341
330
  {% for article_tag in page.tags %}
342
- {%- assign article_tag_text = article_tag | strip -%}
343
- {% if article_tag_text != empty %}<meta property="article:tag" content="{{ article_tag_text | escape }}">{% endif %}
331
+ {% assign article_tag_text = article_tag | strip %}
332
+ {% if article_tag_text != empty %}
333
+ <meta property="article:tag" content="{{ article_tag_text | escape }}">
334
+ {% endif %}
344
335
  {% endfor %}
345
336
  {% endif %}
346
337
  <meta property="og:description" content="{{ ogdesc }}" >
347
- {%- include snippets/page-language.html -%}
348
- {%- assign og_locale_input = page.og_locale | strip -%}
349
- {%- assign explicit_page_language = page.locale | strip -%}
350
- {%- if og_locale_input == empty and explicit_page_language != empty -%}{%- assign og_locale_input = page_language -%}{%- endif -%}
351
- {%- if og_locale_input == empty -%}{%- assign og_locale_input = site.og_locale | strip -%}{%- endif -%}
352
- {%- if og_locale_input == empty -%}{%- assign og_locale_input = page_language -%}{%- endif -%}
353
- {%- include snippets/og-locale.html locale=og_locale_input -%}
354
- {%- assign primary_og_locale = normalized_og_locale -%}
338
+ {% include snippets/page-language.html %}
339
+ {% assign og_locale_input = page.og_locale | strip %}
340
+ {% assign explicit_page_language = page.locale | strip %}
341
+ {% if og_locale_input == empty and explicit_page_language != empty %}{% assign og_locale_input = page_language %}{% endif %}
342
+ {% if og_locale_input == empty %}{% assign og_locale_input = site.og_locale | strip %}{% endif %}
343
+ {% if og_locale_input == empty %}{% assign og_locale_input = page_language %}{% endif %}
344
+ {% include snippets/og-locale.html locale=og_locale_input %}
345
+ {% assign primary_og_locale = normalized_og_locale %}
355
346
  {% if primary_og_locale %}<meta property="og:locale" content="{{ primary_og_locale }}">{% endif %}
356
- {%- assign alternate_locales = site.og_locale_alternate -%}
357
- {%- if page.og_locale_alternate != nil -%}{%- assign alternate_locales = page.og_locale_alternate -%}{%- endif -%}
358
- {%- assign emitted_locales = ',' | append: primary_og_locale | append: ',' -%}
347
+ {% assign alternate_locales = site.og_locale_alternate %}
348
+ {% if page.og_locale_alternate != nil %}{% assign alternate_locales = page.og_locale_alternate %}{% endif %}
349
+ {% assign emitted_locales = ',' | append: primary_og_locale | append: ',' %}
359
350
  {% for alternate_locale in alternate_locales %}
360
- {%- include snippets/og-locale.html locale=alternate_locale -%}
361
- {%- assign locale_token = ',' | append: normalized_og_locale | append: ',' -%}
362
- {%- if normalized_og_locale -%}
363
- {%- unless emitted_locales contains locale_token %}
351
+ {% include snippets/og-locale.html locale=alternate_locale %}
352
+ {% assign locale_token = ',' | append: normalized_og_locale | append: ',' %}
353
+ {% if normalized_og_locale %}
354
+ {% unless emitted_locales contains locale_token %}
364
355
  <meta property="og:locale:alternate" content="{{ normalized_og_locale }}">
365
- {%- assign emitted_locales = emitted_locales | append: locale_token -%}
366
- {% endunless -%}
367
- {%- endif -%}
356
+ {% assign emitted_locales = emitted_locales | append: locale_token %}
357
+ {% endunless %}
358
+ {% endif %}
368
359
  {% endfor %}
369
360
  {% if ogimage %}
370
361
  <meta property="og:image" content="{{- ogimage | escape_once -}}" >
371
- {%- assign image_fields = 'alt,width,height,type' | split: ',' -%}
372
- {%- for field in image_fields -%}
373
- {%- assign field_key = 'og_image_' | append: field -%}
374
- {%- assign image_value = page[field_key] | strip -%}
375
- {%- if image_value == empty and page_image_source == empty and ogimage_source == site.og_image -%}
376
- {%- assign image_value = site[field_key] | strip -%}
377
- {%- endif -%}
378
- {%- if image_value != empty %}
362
+ {% assign image_fields = 'alt,width,height,type' | split: ',' %}
363
+ {% for field in image_fields %}
364
+ {% assign field_key = 'og_image_' | append: field %}
365
+ {% assign image_value = page[field_key] | strip %}
366
+ {% if image_value == empty and page_image_source == empty and ogimage_source == site.og_image %}
367
+ {% assign image_value = site[field_key] | strip %}
368
+ {% endif %}
369
+ {% if image_value != empty %}
379
370
  <meta property="og:image:{{ field }}" content="{{ image_value | escape_once }}" >
380
- {%- endif -%}
381
- {%- endfor %}
371
+ {% endif %}
372
+ {% endfor %}
382
373
  {% endif %}
383
374
  <!-- Twitter/X Cards -->
384
375
  <meta name="twitter:card" content="summary_large_image">
385
376
  <meta name="twitter:description" content="{{ ogdesc }}">
386
- {%- if site.twitter_site %}
377
+ {% if site.twitter_site %}
387
378
  <meta name="twitter:site" content="@{{- site.twitter_site -}}" >
388
- {% endif -%}
389
- {%- if twitterauthor %}
379
+ {% endif %}
380
+ {% if twitterauthor %}
390
381
  <meta name="twitter:creator" content="@{{- twitterauthor -}}" >
391
- {% endif -%}
382
+ {% endif %}
392
383
 
393
- {%- include custom/custom_head_before_css.html -%}
384
+ {% include custom/custom_head_before_css.html %}
394
385
 
395
386
  <!-- CSS -->
396
- {% if site.comments.provider == 'cactus' -%}
397
- <!-- Cactus comments -->
398
- <script src="https://latest.cactus.chat/cactus.js"></script>
399
- <link rel="stylesheet" href="https://latest.cactus.chat/style.css" type="text/css">
400
- {%- endif %}
387
+ {% if site.comments.provider == 'cactus' and page.show_comments %}
388
+ <!-- Cactus comments -->
389
+ <script src="https://latest.cactus.chat/cactus.js"></script>
390
+ <link rel="stylesheet" href="https://latest.cactus.chat/style.css" type="text/css">
391
+ {% endif %}
401
392
  <!-- Preconnect with Google Fonts -->
402
393
  <link rel="preconnect" href="https://fonts.googleapis.com">
403
394
  <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
404
- {% for font in site.googlefonts -%}
405
- {% if font.url -%}
395
+ {% for font in site.googlefonts %}
396
+ {% if font.url %}
406
397
  <link href="{{ font.url }}" rel="stylesheet">
407
- {%- endif %}
408
- {%- endfor %}
398
+ {% endif %}
399
+ {% endfor %}
409
400
  <!-- Fontawesome-->
410
401
  <!-- v6 -->
411
402
  {% assign fakit = site.fa5_kit_code | default: site.fa_kit_code %}
412
- {% if fakit -%}
403
+ {% if fakit %}
413
404
  <script src="https://kit.fontawesome.com/{{ fakit }}.js" crossorigin="anonymous"></script>
414
- {%- else -%}
405
+ {% else %}
415
406
  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free@{{ site.fa_version | default: 6 }}/css/all.min.css">
416
- {%- endif %}
417
- {% if site.fa_v4_support -%}
407
+ {% endif %}
408
+ {% if site.fa_v4_support %}
418
409
  <!-- Compatibility with FontAwesome 4 -->
419
410
  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free@5/css/v4-shims.min.css">
420
- {%- endif %}
421
- <link rel="preload" href="{{ '/assets/js/chulapa_script.js' | relative_url }}" as="script" >
422
- <link rel="preload" href="https://cdn.jsdelivr.net/gh/dieghernan/chulapa@master/assets/fonts/Chulapa/Chulapa-Bold_vmod.otf" as="font" type="font/otf" crossorigin>
411
+ {% endif %}
412
+ {% if include.theme_script %}
413
+ <link rel="preload" href="{{ '/assets/js/chulapa_script.js' | relative_url }}" as="script" >
414
+ {% endif %}
415
+ <link rel="preload" href="{{ '/assets/fonts/Chulapa/Chulapa-Bold_vmod.otf' | relative_url }}" as="font" type="font/otf" crossorigin>
416
+ {%- include snippets/dark-skin-enabled.html -%}
417
+ {% if dark_skin_enabled %}
418
+ {% include theme-styles.html %}
419
+ {% else %}
423
420
  <!-- Theme css (Bootstrap included) -->
424
421
  <link rel="stylesheet" id="maincss" href="{{- "assets/css/main.css " | absolute_url -}}" >
425
422
  <!-- Highlighter -->
426
423
  <link id="csshigh" rel="stylesheet" href="{{- "assets/css/highlighter.css " | absolute_url -}}" >
424
+ {% endif %}
427
425
  <!-- Custom css -->
428
426
  <link rel="stylesheet" href="{{- "assets/css/custom.css " | absolute_url -}}" >
429
- {% if page.mathjax -%}
427
+ {% if page.mathjax %}
430
428
  <script id="MathJax-script" async src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.min.js"></script>
431
- {%- endif %}
429
+ {% endif %}
432
430
 
433
- {%- if site.gtag_id %}
434
- <!-- Global site tag (gtag.js) - Google Analytics -->
435
- <script async src="https://www.googletagmanager.com/gtag/js?id={{- site.gtag_id -}}"></script>
436
- <script>
437
- window.dataLayer = window.dataLayer || [];
438
- function gtag(){dataLayer.push(arguments);}
439
- gtag('js', new Date());
431
+ {% if site.gtag_id %}
432
+ <!-- Global site tag (gtag.js) - Google Analytics -->
433
+ <script async src="https://www.googletagmanager.com/gtag/js?id={{- site.gtag_id -}}"></script>
434
+ <script>
435
+ window.dataLayer = window.dataLayer || [];
436
+ function gtag(){dataLayer.push(arguments);}
437
+ gtag('js', new Date());
440
438
 
441
- gtag('config', '{{- site.gtag_id -}}');
442
- </script>
443
- {% endif -%}
444
- {%- if site.analytics_id %}
445
- <!-- Google Analytics -->
446
- <script>
447
- (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
448
- (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
449
- m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
450
- })(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
439
+ gtag('config', '{{- site.gtag_id -}}');
440
+ </script>
441
+ {% endif %}
442
+ {% if site.analytics_id %}
443
+ <!-- Google Analytics -->
444
+ <script>
445
+ (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
446
+ (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
447
+ m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
448
+ })(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
451
449
 
452
- ga('create', '{{- site.analytics_id -}}', 'auto');
453
- ga('send', 'pageview');
454
- </script>
455
- <!-- End Google Analytics -->
456
- {% endif -%}
457
- {%- include custom/custom_head.html -%}
450
+ ga('create', '{{- site.analytics_id -}}', 'auto');
451
+ ga('send', 'pageview');
452
+ </script>
453
+ <!-- End Google Analytics -->
454
+ {% endif %}
455
+ {%- assign goatcounter_endpoint = site.goatcounter | default: '' | strip -%}
456
+ {%- assign goatcounter_scheme = goatcounter_endpoint | slice: 0, 8 -%}
457
+ {%- assign goatcounter_parts = goatcounter_endpoint | split: '/' -%}
458
+ {%- assign goatcounter_host = goatcounter_parts[2] | default: '' | strip -%}
459
+ {% if jekyll.environment == 'production' and goatcounter_scheme == 'https://' and goatcounter_host != '' %}
460
+ <script data-goatcounter="{{ goatcounter_endpoint | escape }}" async src="https://gc.zgo.at/count.js"></script>
461
+ {% endif %}
462
+ {% include custom/custom_head.html %}
463
+ {% if site.navbar.style == 'fab' or site.navbar.style == 'dual' %}
464
+ <noscript><style>#navi-toggle { display: none !important; }</style></noscript>
465
+ {% endif %}
458
466
  </head>