chulapa-jekyll 2.0.1 → 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 (329) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +264 -35
  3. data/README.md +189 -180
  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 +16 -12
  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 +22 -15
  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 +9 -6
  18. data/_includes/components/navigation-fallback.html +19 -0
  19. data/_includes/components/random.html +1 -0
  20. data/_includes/components/recommendations.html +97 -0
  21. data/_includes/components/related.html +1 -104
  22. data/_includes/components/scripts.html +9 -0
  23. data/_includes/components/sidetoc.html +5 -4
  24. data/_includes/components/simplelist.html +26 -0
  25. data/_includes/components/skin-attribution.html +169 -0
  26. data/_includes/components/theme-selector.html +14 -0
  27. data/_includes/footer.html +14 -165
  28. data/_includes/head.html +389 -242
  29. data/_includes/navbar.html +33 -77
  30. data/_includes/search/fusejs.html +20 -0
  31. data/_includes/search/google.html +3 -3
  32. data/_includes/search/lunr.html +19 -7
  33. data/_includes/search/simplesearch.html +46 -0
  34. data/_includes/snippets/article-images.html +25 -0
  35. data/_includes/snippets/bootstrapdemo.html +1472 -1303
  36. data/_includes/snippets/breadcrumb-names.html +5 -0
  37. data/_includes/snippets/canonical-url.html +17 -0
  38. data/_includes/snippets/carousel.html +16 -12
  39. data/_includes/snippets/dark-skin-enabled.html +14 -0
  40. data/_includes/snippets/datetranslate.html +7 -1
  41. data/_includes/snippets/jsonld-string.html +16 -0
  42. data/_includes/snippets/masonry.html +6 -4
  43. data/_includes/snippets/microformats-url.html +2 -0
  44. data/_includes/snippets/og-locale.html +19 -0
  45. data/_includes/snippets/page-language.html +4 -0
  46. data/_includes/snippets/publisher.html +22 -0
  47. data/_includes/snippets/video-metadata.html +15 -0
  48. data/_includes/snippets/video.html +21 -18
  49. data/_includes/snippets/youtube.html +17 -6
  50. data/_includes/theme-styles.html +201 -0
  51. data/_includes/welcomments/comment_form.html +5 -4
  52. data/_includes/welcomments/comments.html +5 -5
  53. data/_includes/welcomments/template.html +1 -1
  54. data/_layouts/archive.html +2 -75
  55. data/_layouts/cloudcategory.html +2 -101
  56. data/_layouts/cloudtag.html +2 -103
  57. data/_layouts/compress.html +1 -1
  58. data/_layouts/default.html +20 -9
  59. data/_layouts/indexcategory.html +2 -30
  60. data/_layouts/landingpage.html +12 -7
  61. data/_layouts/minimal.html +19 -9
  62. data/_layouts/search.html +17 -17
  63. data/_sass/bootstrap/_variables.scss +1 -1
  64. data/_sass/bootstrap/mixins/_badge.scss +1 -1
  65. data/_sass/chulapa/_autothemer.scss +31 -0
  66. data/_sass/chulapa/_buttons.scss +101 -0
  67. data/_sass/chulapa/_classes.scss +197 -59
  68. data/_sass/chulapa/_mixins.scss +42 -1
  69. data/_sass/chulapa/_reboot.scss +31 -0
  70. data/_sass/chulapa/_theme-selector.scss +1 -0
  71. data/_sass/chulapa/_variables.scss +8 -1
  72. data/_sass/chulapa/skins/_deeply.scss +229 -0
  73. data/_sass/chulapa/skins/_electro.scss +30 -0
  74. data/_sass/chulapa/skins/_graymor.scss +39 -0
  75. data/_sass/chulapa/skins/_hootstrap.scss +34 -0
  76. data/_sass/chulapa/skins/_lymcha.scss +27 -0
  77. data/_sass/chulapa/skins/_mickie.scss +38 -0
  78. data/_sass/chulapa/skins/_minco.scss +45 -0
  79. data/_sass/chulapa/skins/_monotone.scss +15 -0
  80. data/_sass/chulapa/skins/_preptor.scss +30 -0
  81. data/_sass/chulapa/skins/_skeeblu.scss +34 -0
  82. data/_sass/chulapa/skins/_sunset.scss +33 -0
  83. data/_sass/chulapa/skins/_wandoo.scss +22 -0
  84. data/_sass/chulapa/skins/bootswatch/_cyborg.scss +543 -0
  85. data/_sass/chulapa/skins/bootswatch/_darkly.scss +452 -0
  86. data/_sass/chulapa/skins/bootswatch/_flatly.scss +415 -0
  87. data/_sass/chulapa/skins/bootswatch/_journal.scss +163 -0
  88. data/_sass/chulapa/skins/bootswatch/_lux.scss +342 -0
  89. data/_sass/chulapa/skins/bootswatch/_materia.scss +914 -0
  90. data/_sass/chulapa/skins/bootswatch/_minty.scss +342 -0
  91. data/_sass/chulapa/skins/bootswatch/_sketchy.scss +757 -0
  92. data/_sass/chulapa/skins/bootswatch/_slate.scss +746 -0
  93. data/_sass/chulapa/skins/bootswatch/_solar.scss +454 -0
  94. data/_sass/chulapa/skins/bootswatch/_united.scss +85 -0
  95. data/_sass/chulapa/skins/bootswatch/_yeti.scss +699 -0
  96. data/_sass/chulapa/skins/bootswatch/cyborg.patch +301 -0
  97. data/_sass/chulapa/skins/bootswatch/darkly.patch +493 -0
  98. data/_sass/chulapa/skins/bootswatch/flatly.patch +325 -0
  99. data/_sass/chulapa/skins/bootswatch/journal.patch +71 -0
  100. data/_sass/chulapa/skins/bootswatch/lux.patch +97 -0
  101. data/_sass/chulapa/skins/bootswatch/materia.patch +250 -0
  102. data/_sass/chulapa/skins/bootswatch/minty.patch +400 -0
  103. data/_sass/chulapa/skins/bootswatch/sketchy.patch +863 -0
  104. data/_sass/chulapa/skins/bootswatch/slate.patch +537 -0
  105. data/_sass/chulapa/skins/bootswatch/solar.patch +307 -0
  106. data/_sass/chulapa/skins/bootswatch/united.patch +91 -0
  107. data/_sass/chulapa/skins/bootswatch/yeti.patch +552 -0
  108. data/_sass/chulapa-master.scss +10 -0
  109. data/_sass/highlight/README.md +176 -14
  110. data/_sass/highlight/abap.scss +62 -0
  111. data/_sass/highlight/algol.scss +46 -0
  112. data/_sass/highlight/algol_nu.scss +46 -0
  113. data/_sass/highlight/arduino.scss +63 -0
  114. data/_sass/highlight/autumn.scss +69 -58
  115. data/_sass/highlight/base16.scss +90 -0
  116. data/_sass/highlight/borland.scss +55 -46
  117. data/_sass/highlight/bw.scss +70 -34
  118. data/_sass/highlight/cobalt2.scss +197 -0
  119. data/_sass/highlight/coffee.scss +82 -0
  120. data/_sass/highlight/colorful.scss +178 -61
  121. data/_sass/highlight/cran.scss +185 -169
  122. data/_sass/highlight/default.scss +72 -61
  123. data/_sass/highlight/dracula.scss +93 -169
  124. data/_sass/highlight/emacs.scss +72 -61
  125. data/_sass/highlight/friendly.scss +72 -61
  126. data/_sass/highlight/friendly_grayscale.scss +72 -0
  127. data/_sass/highlight/fruity.scss +82 -70
  128. data/_sass/highlight/github.dark.scss +83 -0
  129. data/_sass/highlight/github.scss +116 -61
  130. data/_sass/highlight/gruvbox.dark.scss +83 -0
  131. data/_sass/highlight/gruvbox.light.scss +68 -84
  132. data/_sass/highlight/gruvbox.scss +97 -0
  133. data/_sass/highlight/igor.scss +36 -0
  134. data/_sass/highlight/igorpro.scss +45 -0
  135. data/_sass/highlight/inkpot.scss +78 -0
  136. data/_sass/highlight/lightbulb.scss +82 -0
  137. data/_sass/highlight/lilypond.scss +58 -0
  138. data/_sass/highlight/lovelace.scss +74 -0
  139. data/_sass/highlight/magritte.scss +175 -0
  140. data/_sass/highlight/manni.scss +72 -61
  141. data/_sass/highlight/material.scss +81 -0
  142. data/_sass/highlight/molokai.scss +211 -0
  143. data/_sass/highlight/monokai.scss +217 -65
  144. data/_sass/highlight/monokai.sublime.scss +203 -0
  145. data/_sass/highlight/murphy.scss +72 -61
  146. data/_sass/highlight/native.scss +82 -70
  147. data/_sass/highlight/night-owl.scss +201 -0
  148. data/_sass/highlight/nord.darker.scss +82 -0
  149. data/_sass/highlight/nord.scss +82 -0
  150. data/_sass/highlight/oksolar.dark.scss +175 -0
  151. data/_sass/highlight/oksolar.light.scss +175 -0
  152. data/_sass/highlight/one.dark.scss +82 -0
  153. data/_sass/highlight/panda.scss +195 -0
  154. data/_sass/highlight/paraiso.dark.scss +76 -0
  155. data/_sass/highlight/paraiso.light.scss +76 -0
  156. data/_sass/highlight/pastie.scss +154 -60
  157. data/_sass/highlight/perldoc.scss +69 -58
  158. data/_sass/highlight/rainbow_dash.scss +65 -0
  159. data/_sass/highlight/rrt.scss +82 -0
  160. data/_sass/highlight/sas.scss +63 -0
  161. data/_sass/highlight/selenized.black.scss +175 -0
  162. data/_sass/highlight/selenized.dark.scss +175 -0
  163. data/_sass/highlight/selenized.light.scss +175 -0
  164. data/_sass/highlight/selenized.white.scss +175 -0
  165. data/_sass/highlight/skeletor.scss +190 -140
  166. data/_sass/highlight/solarized.dark.scss +82 -0
  167. data/_sass/highlight/solarized.light.scss +82 -0
  168. data/_sass/highlight/stackoverflow.dark.scss +175 -0
  169. data/_sass/highlight/stackoverflow.light.scss +175 -0
  170. data/_sass/highlight/staroffice.scss +82 -0
  171. data/_sass/highlight/stata.dark.scss +82 -0
  172. data/_sass/highlight/stata.light.scss +49 -0
  173. data/_sass/highlight/tango.scss +81 -69
  174. data/_sass/highlight/template.scss +290 -0
  175. data/_sass/highlight/thankful_eyes.scss +180 -173
  176. data/_sass/highlight/trac.scss +70 -59
  177. data/_sass/highlight/tulip.scss +171 -0
  178. data/_sass/highlight/vim.scss +82 -70
  179. data/_sass/highlight/vs.scss +41 -33
  180. data/_sass/highlight/xcode.scss +65 -0
  181. data/_sass/highlight/zenburn.scss +82 -136
  182. data/_sass/reset-algolia.scss +27 -17
  183. data/_sass/skins/academia.scss +47 -10
  184. data/_sass/skins/auto.scss +25 -27
  185. data/_sass/skins/butterfly-dark.scss +73 -0
  186. data/_sass/skins/butterfly-dim.scss +81 -0
  187. data/_sass/skins/butterfly.scss +65 -0
  188. data/_sass/skins/cerulean.scss +120 -0
  189. data/_sass/skins/chulapa.scss +33 -6
  190. data/_sass/skins/cyborg.scss +3 -0
  191. data/_sass/skins/dark-bg.scss +83 -49
  192. data/_sass/skins/darkly.scss +3 -0
  193. data/_sass/skins/deeply.scss +17 -87
  194. data/_sass/skins/electro.scss +5 -19
  195. data/_sass/skins/flatly.scss +3 -0
  196. data/_sass/skins/focal.scss +56 -19
  197. data/_sass/skins/gitdev-dark.scss +28 -25
  198. data/_sass/skins/gitdev.scss +22 -19
  199. data/_sass/skins/graymor.scss +7 -22
  200. data/_sass/skins/hootstrap.scss +6 -13
  201. data/_sass/skins/journal.scss +3 -143
  202. data/_sass/skins/listen.scss +83 -0
  203. data/_sass/skins/litera.scss +281 -0
  204. data/_sass/skins/lux.scss +3 -376
  205. data/_sass/skins/lymcha.scss +4 -12
  206. data/_sass/skins/materia.scss +3 -0
  207. data/_sass/skins/media.scss +40 -12
  208. data/_sass/skins/mickie.scss +8 -11
  209. data/_sass/skins/minco.scss +11 -10
  210. data/_sass/skins/minty.scss +3 -168
  211. data/_sass/skins/monotone.scss +7 -11
  212. data/_sass/skins/navi.scss +54 -0
  213. data/_sass/skins/none.scss +24 -2
  214. data/_sass/skins/pear.scss +50 -6
  215. data/_sass/skins/preptor.scss +6 -15
  216. data/_sass/skins/pulse.scss +158 -0
  217. data/_sass/skins/skeeblu.scss +6 -17
  218. data/_sass/skins/sketchy.scss +3 -746
  219. data/_sass/skins/slate.scss +3 -0
  220. data/_sass/skins/solar.scss +3 -0
  221. data/_sass/skins/sunset.scss +6 -11
  222. data/_sass/skins/towards.scss +44 -5
  223. data/_sass/skins/twitter-dim.scss +60 -13
  224. data/_sass/skins/twitter-lights-out.scss +44 -11
  225. data/_sass/skins/twitter.scss +51 -10
  226. data/_sass/skins/united.scss +3 -0
  227. data/_sass/skins/universal.scss +46 -27
  228. data/_sass/skins/wandoo.scss +7 -12
  229. data/_sass/skins/yeti.scss +3 -0
  230. data/_sass/vendor/bootswatch/LICENSE +21 -0
  231. data/_sass/vendor/bootswatch/LICENSE-4.5.0 +21 -0
  232. data/_sass/vendor/bootswatch/README.md +57 -0
  233. data/_sass/vendor/bootswatch/cerulean/_bootswatch.scss +102 -0
  234. data/_sass/vendor/bootswatch/cerulean/_variables.scss +57 -0
  235. data/_sass/vendor/bootswatch/cyborg/_bootswatch.scss +330 -0
  236. data/_sass/vendor/bootswatch/cyborg/_variables.scss +169 -0
  237. data/_sass/vendor/bootswatch/darkly/_bootswatch.scss +247 -0
  238. data/_sass/vendor/bootswatch/darkly/_variables.scss +164 -0
  239. data/_sass/vendor/bootswatch/flatly/_bootswatch.scss +274 -0
  240. data/_sass/vendor/bootswatch/flatly/_variables.scss +106 -0
  241. data/_sass/vendor/bootswatch/journal/_bootswatch.scss +62 -0
  242. data/_sass/vendor/bootswatch/journal/_variables.scss +60 -0
  243. data/_sass/vendor/bootswatch/litera/_bootswatch.scss +268 -0
  244. data/_sass/vendor/bootswatch/litera/_variables.scss +96 -0
  245. data/_sass/vendor/bootswatch/lux/_bootswatch.scss +191 -0
  246. data/_sass/vendor/bootswatch/lux/_variables.scss +103 -0
  247. data/_sass/vendor/bootswatch/materia/_bootswatch.scss +747 -0
  248. data/_sass/vendor/bootswatch/materia/_variables.scss +129 -0
  249. data/_sass/vendor/bootswatch/minty/_bootswatch.scss +380 -0
  250. data/_sass/vendor/bootswatch/minty/_variables.scss +94 -0
  251. data/_sass/vendor/bootswatch/pulse/_bootswatch.scss +145 -0
  252. data/_sass/vendor/bootswatch/pulse/_variables.scss +96 -0
  253. data/_sass/vendor/bootswatch/sketchy/_bootswatch.scss +492 -0
  254. data/_sass/vendor/bootswatch/sketchy/_variables.scss +172 -0
  255. data/_sass/vendor/bootswatch/slate/_bootswatch.scss +531 -0
  256. data/_sass/vendor/bootswatch/slate/_variables.scss +163 -0
  257. data/_sass/vendor/bootswatch/solar/_bootswatch.scss +243 -0
  258. data/_sass/vendor/bootswatch/solar/_variables.scss +171 -0
  259. data/_sass/vendor/bootswatch/source.json +86 -0
  260. data/_sass/vendor/bootswatch/united/_bootswatch.scss +10 -0
  261. data/_sass/vendor/bootswatch/united/_variables.scss +54 -0
  262. data/_sass/vendor/bootswatch/yeti/_bootswatch.scss +586 -0
  263. data/_sass/vendor/bootswatch/yeti/_variables.scss +110 -0
  264. data/_sass/vendor/tophat/LICENSE +21 -0
  265. data/_sass/vendor/tophat/README.md +38 -0
  266. data/_sass/vendor/tophat/deeply/_styles.scss +6 -0
  267. data/_sass/vendor/tophat/deeply/_variables.scss +73 -0
  268. data/_sass/vendor/tophat/deeply/theme.scss +77 -0
  269. data/_sass/vendor/tophat/electro/_styles.scss +5 -0
  270. data/_sass/vendor/tophat/electro/_variables.scss +23 -0
  271. data/_sass/vendor/tophat/electro/theme.scss +28 -0
  272. data/_sass/vendor/tophat/graymor/_styles.scss +5 -0
  273. data/_sass/vendor/tophat/graymor/_variables.scss +18 -0
  274. data/_sass/vendor/tophat/graymor/theme.scss +24 -0
  275. data/_sass/vendor/tophat/hootstrap/_styles.scss +5 -0
  276. data/_sass/vendor/tophat/hootstrap/_variables.scss +14 -0
  277. data/_sass/vendor/tophat/hootstrap/theme.scss +18 -0
  278. data/_sass/vendor/tophat/lymcha/_styles.scss +5 -0
  279. data/_sass/vendor/tophat/lymcha/_variables.scss +13 -0
  280. data/_sass/vendor/tophat/lymcha/theme.scss +16 -0
  281. data/_sass/vendor/tophat/mickie/_styles.scss +5 -0
  282. data/_sass/vendor/tophat/mickie/_variables.scss +13 -0
  283. data/_sass/vendor/tophat/mickie/theme.scss +17 -0
  284. data/_sass/vendor/tophat/minco/_styles.scss +5 -0
  285. data/_sass/vendor/tophat/minco/_variables.scss +14 -0
  286. data/_sass/vendor/tophat/minco/theme.scss +18 -0
  287. data/_sass/vendor/tophat/monotone/_styles.scss +5 -0
  288. data/_sass/vendor/tophat/monotone/_variables.scss +14 -0
  289. data/_sass/vendor/tophat/monotone/theme.scss +18 -0
  290. data/_sass/vendor/tophat/preptor/_styles.scss +5 -0
  291. data/_sass/vendor/tophat/preptor/_variables.scss +14 -0
  292. data/_sass/vendor/tophat/preptor/theme.scss +18 -0
  293. data/_sass/vendor/tophat/skeeblu/_styles.scss +5 -0
  294. data/_sass/vendor/tophat/skeeblu/_variables.scss +17 -0
  295. data/_sass/vendor/tophat/skeeblu/theme.scss +22 -0
  296. data/_sass/vendor/tophat/source.json +57 -0
  297. data/_sass/vendor/tophat/sunset/_styles.scss +5 -0
  298. data/_sass/vendor/tophat/sunset/_variables.scss +13 -0
  299. data/_sass/vendor/tophat/sunset/theme.scss +16 -0
  300. data/_sass/vendor/tophat/wandoo/_styles.scss +5 -0
  301. data/_sass/vendor/tophat/wandoo/_variables.scss +18 -0
  302. data/_sass/vendor/tophat/wandoo/theme.scss +24 -0
  303. data/assets/atom.xml +10 -6
  304. data/assets/css/dark/highlighter.scss +10 -0
  305. data/assets/css/dark/main.scss +43 -0
  306. data/assets/css/highlighter.scss +6 -1
  307. data/assets/css/main.scss +12 -3
  308. data/assets/css/search-fusejs.css +14 -0
  309. data/assets/css/search-lunr.css +7 -0
  310. data/assets/js/better404/better404.js +68 -0
  311. data/assets/js/ch_ytdefer/ch_ytdefer.js +27 -83
  312. data/assets/js/chulapa_carousel.js +115 -0
  313. data/assets/js/chulapa_mermaid.js +31 -0
  314. data/assets/js/chulapa_navigation.js +71 -0
  315. data/assets/js/chulapa_photoswipe.js +106 -0
  316. data/assets/js/chulapa_script.js +199 -77
  317. data/assets/js/chulapa_search.js +89 -0
  318. data/assets/js/clipboard/chulapa_clipboard.js +17 -108
  319. data/assets/js/cusdis/chulapa_cusdis.js +1 -1
  320. data/assets/js/fusejs/fusejs-search.js +62 -0
  321. data/assets/js/fusejs/fusejs-search.min.js +4 -0
  322. data/assets/js/fusejs/fusejs-store.js +43 -0
  323. data/assets/js/lunr/lunr-search.js +127 -115
  324. data/assets/js/lunr/lunr-search.min.js +4 -0
  325. data/assets/js/lunr/lunr-store.js +31 -23
  326. data/assets/js/simplesearch/simplesearch-store.json +45 -0
  327. data/assets/rss.xml +4 -3
  328. metadata +220 -8
  329. data/_sass/highlight/UNLICENSE.txt +0 -24
@@ -0,0 +1,18 @@
1
+ /*! Tophat `Preptor` Bootstrap 4.3.1 theme */
2
+ @import url(https://fonts.googleapis.com/css?family=Muli:200,300,400,700);
3
+ $font-family-base:Muli;
4
+ @import url(https://fonts.googleapis.com/css?family=Lato:200,300,400,700);
5
+ $headings-font-family:Lato;
6
+
7
+ $enable-grid-classes:false;
8
+ $primary:#D80E70;
9
+ $secondary:#dddddd;
10
+ $success:#4EF037;
11
+ $danger:#FA4659;
12
+ $info:#00BBF0;
13
+ $warning:#f4f133;
14
+ $light:#eeeeee;
15
+ $dark:#353535;
16
+ @import "bootstrap";
17
+
18
+ // Add SASS theme customizations here..
@@ -0,0 +1,5 @@
1
+ // Generated from theme.scss by test/generate_tophat.js.
2
+ // Fonts and the single Bootstrap grid are supplied by Chulapa.
3
+ @mixin chulapa-tophat {
4
+ // Add SASS theme customizations here..
5
+ }
@@ -0,0 +1,17 @@
1
+ // Generated from theme.scss by test/generate_tophat.js.
2
+ // Fonts and the single Bootstrap grid are supplied by Chulapa.
3
+ /*! Tophat `Skeeblu` Bootstrap 4.3.1 theme */
4
+ $headings-font-family:Yantramanav !default;
5
+
6
+ $primary:#27a2fc !default;
7
+ $secondary:#a0b7bc !default;
8
+ $success:#37bd74 !default;
9
+ $danger:#e8286b !default;
10
+ $info:#7ebcfa !default;
11
+ $warning:#ff9b37 !default;
12
+ $light:#eef0f2 !default;
13
+ $dark:#3c4055 !default;
14
+
15
+ /*! Import Bootstrap 4 variables */
16
+
17
+ $body-bg:#efefef !default;
@@ -0,0 +1,22 @@
1
+ /*! Tophat `Skeeblu` Bootstrap 4.3.1 theme */
2
+ @import url(https://fonts.googleapis.com/css?family=Yantramanav:200,300,400,700);
3
+ $headings-font-family:Yantramanav;
4
+
5
+ $enable-grid-classes:false;
6
+ $primary:#27a2fc;
7
+ $secondary:#a0b7bc;
8
+ $success:#37bd74;
9
+ $danger:#e8286b;
10
+ $info:#7ebcfa;
11
+ $warning:#ff9b37;
12
+ $light:#eef0f2;
13
+ $dark:#3c4055;
14
+
15
+ /*! Import Bootstrap 4 variables */
16
+ @import "functions";
17
+ @import "variables";
18
+
19
+ $body-bg:#efefef;
20
+ @import "bootstrap";
21
+
22
+ // Add SASS theme customizations here..
@@ -0,0 +1,57 @@
1
+ {
2
+ "repository": "https://github.com/ThemesGuide/top-hat",
3
+ "commit": "2274176073d2e4783c78df080c6c3396e2abc2b4",
4
+ "bootstrapVersion": "4.3.1",
5
+ "skins": {
6
+ "deeply": {
7
+ "path": "dist/deeply/theme.scss",
8
+ "sha256": "ca517631a8c4ba8e452bd8a1ba0afabb8a304e8d029644a5a8611a94c055ad48"
9
+ },
10
+ "electro": {
11
+ "path": "dist/electro/theme.scss",
12
+ "sha256": "986526704ad8229a1db0c73f1c027eeac9d6238279da95f31704aff556425d4b"
13
+ },
14
+ "graymor": {
15
+ "path": "dist/graymor/theme.scss",
16
+ "sha256": "b73e1280a73151e7d37c5cceb7906b897cd03422f4b2fddb050b6f34cfa041df"
17
+ },
18
+ "lymcha": {
19
+ "path": "dist/lymcha/theme.scss",
20
+ "sha256": "b806341f3d9c7a4421b1fa9477756661b75175cd6e353cd5ad3a487168023e8b"
21
+ },
22
+ "mickie": {
23
+ "path": "dist/mickie/theme.scss",
24
+ "sha256": "32eb2063db5696aac8410f0852f6166a57ef0e86fc9f86d0011d5462ec867f28",
25
+ "omitStyles": "Retain Chulapa typography: the upstream responsive root font-size rules have never been included."
26
+ },
27
+ "minco": {
28
+ "path": "dist/minco/theme.scss",
29
+ "sha256": "5de4d4d3b26773e75b5d612e1771494d398d1007dc5e42ac8f04c11ffe0e0025",
30
+ "adaptation": "Retain the existing Bootstrap body font instead of upstream Nunito."
31
+ },
32
+ "monotone": {
33
+ "path": "dist/monotone/theme.scss",
34
+ "sha256": "d17cb96c5b9b97cc51333f0d3229dfcf099a910b4e568663777fbd1a54ec6077"
35
+ },
36
+ "preptor": {
37
+ "path": "dist/preptor/theme.scss",
38
+ "sha256": "6e1663a11a469a645959d24fe73e3f8d97e3fff752429f70aab9611fd6724dbe"
39
+ },
40
+ "skeeblu": {
41
+ "path": "dist/skeeblu/theme.scss",
42
+ "sha256": "eb60e7b881fc6b523343c40dfd249658b268a6e0d4cc2035499fc34914612a43"
43
+ },
44
+ "sunset": {
45
+ "path": "dist/sunset/theme.scss",
46
+ "sha256": "4332e922f5be477c66790186eb943efc5ac2951c5cff6cb0ef75a716281f52d4"
47
+ },
48
+ "wandoo": {
49
+ "path": "dist/wandoo/theme.scss",
50
+ "sha256": "f892f5dedd5e2e05fc6cd4cf1c150d9c55a91fea20dc694a39fc1cc622953a71"
51
+ },
52
+ "hootstrap": {
53
+ "path": "dist/hollar/theme.scss",
54
+ "sha256": "5d8df5cebae34d9cf954a7242bafaed7f8cb30f3bda6ed09006484a132440c76"
55
+ }
56
+ }
57
+ }
@@ -0,0 +1,5 @@
1
+ // Generated from theme.scss by test/generate_tophat.js.
2
+ // Fonts and the single Bootstrap grid are supplied by Chulapa.
3
+ @mixin chulapa-tophat {
4
+ // Add SASS theme customizations here..
5
+ }
@@ -0,0 +1,13 @@
1
+ // Generated from theme.scss by test/generate_tophat.js.
2
+ // Fonts and the single Bootstrap grid are supplied by Chulapa.
3
+ /*! Tophat `Sunset` Bootstrap 4.3.1 theme */
4
+ $headings-font-family:Voltaire !default;
5
+
6
+ $primary:#2F414A !default;
7
+ $secondary:#F47B53 !default;
8
+ $success:#420084 !default;
9
+ $danger:#f2460d !default;
10
+ $info:#7ebcfa !default;
11
+ $warning:#ff9933 !default;
12
+ $light:#eef0f2 !default;
13
+ $dark:#000633 !default;
@@ -0,0 +1,16 @@
1
+ /*! Tophat `Sunset` Bootstrap 4.3.1 theme */
2
+ @import url(https://fonts.googleapis.com/css?family=Voltaire:200,300,400,700);
3
+ $headings-font-family:Voltaire;
4
+
5
+ $enable-grid-classes:false;
6
+ $primary:#2F414A;
7
+ $secondary:#F47B53;
8
+ $success:#420084;
9
+ $danger:#f2460d;
10
+ $info:#7ebcfa;
11
+ $warning:#ff9933;
12
+ $light:#eef0f2;
13
+ $dark:#000633;
14
+ @import "bootstrap";
15
+
16
+ // Add SASS theme customizations here..
@@ -0,0 +1,5 @@
1
+ // Generated from theme.scss by test/generate_tophat.js.
2
+ // Fonts and the single Bootstrap grid are supplied by Chulapa.
3
+ @mixin chulapa-tophat {
4
+ // Add SASS theme customizations here..
5
+ }
@@ -0,0 +1,18 @@
1
+ // Generated from theme.scss by test/generate_tophat.js.
2
+ // Fonts and the single Bootstrap grid are supplied by Chulapa.
3
+ /*! Tophat `Wandoo` Bootstrap 4.3.1 theme */
4
+ $font-family-base:Nunito !default;
5
+ $headings-font-family:Comfortaa !default;
6
+
7
+ $primary:#FF304F !default;
8
+ $secondary:#CACACA !default;
9
+ $success:#015668 !default;
10
+ $danger:#06648C !default;
11
+ $info:#0F81C7 !default;
12
+ $warning:#0DE2EA !default;
13
+ $light:#ececec !default;
14
+ $dark:#222222 !default;
15
+
16
+ /*! Import Bootstrap 4 variables */
17
+
18
+ $gray-300:#e0e0e0 !default;
@@ -0,0 +1,24 @@
1
+ /*! Tophat `Wandoo` Bootstrap 4.3.1 theme */
2
+ @import url(https://fonts.googleapis.com/css?family=Nunito:200,300,400,700);
3
+ $font-family-base:Nunito;
4
+ @import url(https://fonts.googleapis.com/css?family=Comfortaa:200,300,400,700);
5
+ $headings-font-family:Comfortaa;
6
+
7
+ $enable-grid-classes:false;
8
+ $primary:#FF304F;
9
+ $secondary:#CACACA;
10
+ $success:#015668;
11
+ $danger:#06648C;
12
+ $info:#0F81C7;
13
+ $warning:#0DE2EA;
14
+ $light:#ececec;
15
+ $dark:#222222;
16
+
17
+ /*! Import Bootstrap 4 variables */
18
+ @import "functions";
19
+ @import "variables";
20
+
21
+ $gray-300:#e0e0e0;
22
+ @import "bootstrap";
23
+
24
+ // Add SASS theme customizations here..
data/assets/atom.xml CHANGED
@@ -32,20 +32,24 @@ permalink: ./atom.xml
32
32
  where_exp: "item", "item.date != nil" |
33
33
  sort: 'date' | reverse -%}
34
34
  {%- for document in alldocs -%}
35
+ {%- include snippets/canonical-url.html url=document.url canonical=document.canonical_url -%}
35
36
  {%- assign entryimg = document.og_image | default: document.header_img | absolute_url -%}
36
37
  {%- assign words = document.content | strip_html | number_of_words -%}
37
38
  {%- assign minutes = words | divided_by: wpm | ceil | at_least: 1 -%}
38
39
  <entry>
39
- <title>{{ document.title | strip_html | escape }}</title>
40
- <link href="{{ document.url | replace: "index.html", "" | absolute_url | uri_escape }}" rel="alternate" type="text/html" title="{{ document.title | strip_html | escape }}"/>
40
+ <title type="html">{{ document.title | markdownify | remove: "<p>" | remove: "</p>" | strip_newlines | strip | escape }}</title>
41
+ <link href="{{ canonical_url | escape }}" rel="alternate" type="text/html" title="{{ document.title | markdownify | strip_html | strip_newlines | strip | escape | xml_escape | escape }}"/>
41
42
  <published>{{ document.date | date_to_xmlschema }}</published>
42
43
  <updated>{{ document.last_modified_at | default: document.date | date_to_xmlschema }}</updated>
43
- <id>{{ document.url | replace: "index.html", "" | absolute_url | uri_escape }}</id>
44
- <content type="html" xml:base="{{ document.url | replace: "index.html", "" | absolute_url | uri_escape }}">
44
+ <id>{{ canonical_url | escape }}</id>
45
+ <content type="html" xml:base="{{ canonical_path | absolute_url | uri_escape | escape }}">
45
46
  {% if document.subtitle %}
46
- {{ '<h3>' | append: document.subtitle |
47
- append: '</h3>' | escape }}
48
47
 
48
+ {%- assign thesub = document.subtitle | markdownify -%}
49
+ {%- assign thesub = thesub | remove: '<p>' | remove: '</p>' | strip | strip_newlines %}
50
+
51
+ {{ '<h3>' | append: thesub |
52
+ append: '</h3>' | escape }}
49
53
  {% endif %}
50
54
  {% if entryimg %}
51
55
  {{ "<img src='" | append: entryimg | append: "' >" | escape }}
@@ -0,0 +1,10 @@
1
+ ---
2
+ ---
3
+ {%- include snippets/dark-skin-enabled.html -%}
4
+ @charset "utf-8";
5
+ {% if dark_skin_enabled %}
6
+ @import "highlight/{{- site.chulapa-skin-dark.highlight | default: site.chulapa-skin.highlight | downcase | default: 'default' -}}";
7
+
8
+ // Completion marker for the managed stylesheet pair; keep after all imports.
9
+ :root { --chulapa-css-ready: highlighter-dark; }
10
+ {% endif %}
@@ -0,0 +1,43 @@
1
+ ---
2
+ ---
3
+ {%- include snippets/dark-skin-enabled.html -%}
4
+ {% if dark_skin_enabled %}
5
+ @charset "utf-8";
6
+ // Custom free font: see https://diario.madrid.es/chulapa/
7
+ @font-face {
8
+ font-family: chulapa;
9
+ src: url('{{ '/assets/fonts/Chulapa/Chulapa-Bold_vmod.otf' | relative_url }}');
10
+ font-display: fallback;
11
+ }
12
+
13
+ //Theming Bootstrap from config
14
+
15
+ //Theme
16
+ @import "skins/{{- site.chulapa-skin-dark.skin | default: "none" -}}";
17
+
18
+ //Theming Bootstrap from config // overrides
19
+ {% for var in site.chulapa-skin-dark.vars %}
20
+ {% assign dark_value = var[1] | append: '' | strip %}
21
+ {% if dark_value != empty %}
22
+ ${{ var[0] }}: {{ var[1] }};
23
+ {% endif %}
24
+ {% endfor%}
25
+
26
+
27
+ {% if site.chulapa-skin-dark.autothemer %}
28
+ // Autothemer: No overrides
29
+ @import "chulapa/autothemer";
30
+ {% endif %}
31
+
32
+ // Import bootstrap
33
+ @import "bootstrap/bootstrap";
34
+ //B. Chulapa specifics
35
+ @import "chulapa-master";
36
+ {% if site.search.provider == "algolia" %}
37
+ @import "reset-algolia";
38
+ {% endif %}
39
+ @import "chulapa/theme-selector";
40
+
41
+ // Completion marker for the managed stylesheet pair; keep after all imports.
42
+ :root { --chulapa-css-ready: main-dark; }
43
+ {% endif %}
@@ -2,4 +2,9 @@
2
2
  ---
3
3
  @charset "utf-8";
4
4
  // Syntax highlighter
5
- @import "highlight/{{- site.chulapa-skin.highlight | downcase | default: "default" -}}";
5
+ @import "highlight/{{- site.chulapa-skin.highlight | downcase | default: "default" -}}";
6
+ {%- include snippets/dark-skin-enabled.html -%}
7
+ {% if dark_skin_enabled %}
8
+ // Completion marker for the managed stylesheet pair; keep after all imports.
9
+ :root { --chulapa-css-ready: highlighter-light; }
10
+ {% endif %}
data/assets/css/main.scss CHANGED
@@ -1,10 +1,11 @@
1
1
  ---
2
2
  ---
3
+ {%- include snippets/dark-skin-enabled.html -%}
3
4
  @charset "utf-8";
4
5
  // Custom free font: see https://diario.madrid.es/chulapa/
5
6
  @font-face {
6
7
  font-family: chulapa;
7
- src: url('https://cdn.jsdelivr.net/gh/dieghernan/chulapa@master/assets/fonts/Chulapa/Chulapa-Bold_vmod.otf');
8
+ src: url('{{ '/assets/fonts/Chulapa/Chulapa-Bold_vmod.otf' | relative_url }}');
8
9
  font-display: fallback;
9
10
  }
10
11
 
@@ -23,7 +24,7 @@
23
24
 
24
25
  {% if site.chulapa-skin.autothemer %}
25
26
  // Autothemer: No overrides
26
- @import "skins/auto";
27
+ @import "chulapa/autothemer";
27
28
  {% endif %}
28
29
 
29
30
  // Import bootstrap
@@ -32,4 +33,12 @@
32
33
  @import "chulapa-master";
33
34
  {% if site.search.provider == "algolia" %}
34
35
  @import "reset-algolia";
35
- {% endif %}
36
+ {% endif %}
37
+ {% if dark_skin_enabled %}
38
+ @import "chulapa/theme-selector";
39
+ {% endif %}
40
+
41
+ {% if dark_skin_enabled %}
42
+ // Completion marker for the managed stylesheet pair; keep after all imports.
43
+ :root { --chulapa-css-ready: main-light; }
44
+ {% endif %}
@@ -0,0 +1,14 @@
1
+ @import url('https://fonts.googleapis.com/css2?family=Source+Sans+3:wght@200..900&display=swap');
2
+
3
+ .fuse {
4
+ font-family: "Source Sans 3", serif;
5
+ font-weight: 400;
6
+ }
7
+
8
+ .fuse-logo {
9
+ color: #9b59b6;
10
+ font-weight: bolder;
11
+ --fa-animation-iteration-count: 1;
12
+ --fa-animation-duration: 0.5s;
13
+ --fa-animation-delay: 0.5s;
14
+ }
@@ -0,0 +1,7 @@
1
+ @import url('https://fonts.googleapis.com/css2?family=Heebo:wght@300&display=swap');
2
+
3
+ .lunr {
4
+ font-family: 'Heebo', sans-serif;
5
+ background-color: black;
6
+ color: white;
7
+ }
@@ -0,0 +1,68 @@
1
+ ---
2
+ layout: null
3
+ ---
4
+
5
+ // You found an Easter egg!
6
+ // Get root
7
+ {% assign homeurl = '/' | absolute_url %}
8
+ // Vars
9
+ let homeUrl = "{{ homeurl }}";
10
+ // with no trailing '/'
11
+ homeUrl = homeUrl.replace(/\/+$/, "");
12
+ let currentUrl = window.location.href;
13
+ let sitemap = "{{- 'sitemap.xml' | absolute_url -}}"
14
+ // Based in https://ben.balter.com/2022/06/30/helpful-404s-for-jekyll-and-github-pages/
15
+ // A: Function definition...
16
+ // Own version of closest from 'fastest-levenshtein')
17
+ // Single levestein dist https://stackoverflow.com/questions/18516942
18
+ // Later implemented as js-levenshtein
19
+ const levenshteinDistance = (s, t) => {
20
+ let previous = Array.from({length: s.length + 1}, (_, i) => i);
21
+ for (let i = 1; i <= t.length; i++) {
22
+ const current = [i];
23
+ for (let j = 1; j <= s.length; j++) {
24
+ current[j] = Math.min(previous[j] + 1, current[j - 1] + 1,
25
+ previous[j - 1] + (s[j - 1] === t[i - 1] ? 0 : 1));
26
+ }
27
+ previous = current;
28
+ }
29
+ return previous[s.length];
30
+ };
31
+ // Iterator to get closest match
32
+ const closest = (str, urls) => {
33
+ let best, distance = Infinity;
34
+ for (const url of urls) {
35
+ const candidate = levenshteinDistance(str, url);
36
+ if (candidate < distance) { best = url; distance = candidate; }
37
+ }
38
+ return best;
39
+ };
40
+ // END A: Function definition...
41
+ // https://ben.balter.com/2022/06/30/helpful-404s-for-jekyll-and-github-pages/
42
+ const div = document.getElementById('four-oh-four-suggestion');
43
+ if (div) {
44
+ const xhr = new XMLHttpRequest();
45
+ function showLink(url) {
46
+ const link = document.createElement('a');
47
+ link.className = 'alert-link font-weight-bolder';
48
+ link.href = url;
49
+ link.textContent = url.replace(homeUrl, '') || '/';
50
+ div.replaceChildren(link);
51
+ }
52
+ function fallback() { showLink(homeUrl + '/'); }
53
+ xhr.onload = () => {
54
+ if (xhr.status !== 200 || !xhr.responseXML) { fallback(); return; }
55
+ const urls = Array.from(xhr.responseXML.querySelectorAll('urlset > url > loc'))
56
+ .map(el => el.textContent).filter(url => {
57
+ try { return new URL(url).origin === new URL(homeUrl).origin; }
58
+ catch { return false; }
59
+ });
60
+ const match = closest(currentUrl, urls);
61
+ if (match) showLink(match); else fallback();
62
+ };
63
+ xhr.onerror = fallback;
64
+ xhr.ontimeout = fallback;
65
+ xhr.timeout = 10000;
66
+ xhr.open('GET', `${sitemap}`);
67
+ xhr.send();
68
+ }
@@ -1,83 +1,27 @@
1
- var ytdefer_ic_w = 73;
2
- var ytdefer_ic_h = 52;
3
- var yt_icon =
4
- '<svg height="100%" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 68 48" width="100%"><path class="ytp-large-play-button-bg" d="M66.52,7.74c-0.78-2.93-2.49-5.41-5.42-6.19C55.79,.13,34,0,34,0S12.21,.13,6.9,1.55 C3.97,2.33,2.27,4.81,1.48,7.74C0.06,13.05,0,24,0,24s0.06,10.95,1.48,16.26c0.78,2.93,2.49,5.41,5.42,6.19 C12.21,47.87,34,48,34,48s21.79-0.13,27.1-1.55c2.93-0.78,4.64-3.26,5.42-6.19C67.94,34.95,68,24,68,24S67.94,13.05,66.52,7.74z" fill="#eb3223"></path><path d="M 45,24 27,14 27,34" fill="#fff"></path></svg>';
5
- var yt_dark_icon =
6
- '<svg height="100%" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 68 48" width="100%"><path class="ytp-large-play-button-bg" d="M66.52,7.74c-0.78-2.93-2.49-5.41-5.42-6.19C55.79,.13,34,0,34,0S12.21,.13,6.9,1.55 C3.97,2.33,2.27,4.81,1.48,7.74C0.06,13.05,0,24,0,24s0.06,10.95,1.48,16.26c0.78,2.93,2.49,5.41,5.42,6.19 C12.21,47.87,34,48,34,48s21.79-0.13,27.1-1.55c2.93-0.78,4.64-3.26,5.42-6.19C67.94,34.95,68,24,68,24S67.94,13.05,66.52,7.74z" fill="#212121" fill-opacity="0.8"></path><path d="M 45,24 27,14 27,34" fill="#fff"></path></svg>';
7
-
8
- function ch_ytdefer_setup() {
9
- var d = document;
10
- var els = d.getElementsByClassName("ch_ytdefer");
11
- for (var i = 0; i < els.length; i++) {
12
- var im = els[i];
13
- var ds = im.getAttribute("data-src");
14
- if (!ds) {
15
- alert("data-src missing for video");
16
- return;
17
- }
18
- // Add ids and clicks
19
- im.setAttribute('id', "ch_ytdefer" + i);
20
- //im.id= ;
21
- im.onclick = gen_ytdefer_clk(i);
22
- //e.appendChild(im);
23
-
24
- // Add id to button
25
- var bt = im.getElementsByClassName("ch_ytdefer_btn")[0];
26
- bt.setAttribute("id", "ch_ytdefer_icon" + i);
27
-
28
- // Hover button
29
- im.onmouseover = gen_mouseover(bt);
30
- im.onmouseout = gen_mouseout(bt);
31
-
32
- }
33
- if (typeof YT == "undefined") {
34
- var js = d.createElement("script");
35
- js.src = "https://www.youtube.com/player_api";
36
- d.body.appendChild(js);
37
- }
38
- }
39
-
40
- function gen_mouseout(bt) {
41
- return function() {
42
- bt.style.backgroundImage = "url(data:image/svg+xml;base64," + window.btoa(yt_dark_icon) + ")";
43
- };
44
- }
45
-
46
- function gen_mouseover(bt) {
47
- return function() {
48
- bt.style.backgroundImage = "url(data:image/svg+xml;base64," + window.btoa(yt_icon) + ")";
49
- };
50
- }
51
-
52
- function gen_ytdefer_clk(i) {
53
- return function() {
54
- var d = document;
55
- var im = d.getElementById("ch_ytdefer" + i);
56
- // Get video id from source
57
- var vid_id = im.getAttribute("data-src");
58
-
59
-
60
- // Create an iframe with the responsive class and append it as a child
61
- var ifr = d.createElement("div");
62
- ifr.id = "ch_ytdefer_frame" + i;
63
- ifr.classList.add("embed-responsive-item");
64
- ifr.setAttribute("itemprop", "embedUrl");
65
- im.appendChild(ifr);
66
-
67
- //Remove attributes
68
- //im.removeAttribute('style');
69
-
70
- // Add player
71
- var player = new YT.Player(ifr.id, {
72
- videoId: vid_id,
73
- events: {
74
- onReady: function(ev) {
75
- ev.target.playVideo();
76
- },
77
- },
78
- });
79
-
80
- };
81
- }
82
-
83
- window.addEventListener('load', ch_ytdefer_setup);
1
+ // Embed the player on demand; no YouTube API request is needed before playback.
2
+ (function () {
3
+ function setup() {
4
+ document.querySelectorAll('.ch_ytdefer').forEach(function (container) {
5
+ if (container.dataset.playerReady) return;
6
+ var video = container.getAttribute('data-src');
7
+ var button = container.querySelector('.ch_ytdefer_btn');
8
+ if (!video || !button) return;
9
+ container.dataset.playerReady = 'true';
10
+ container.addEventListener('click', function play() {
11
+ if (container.querySelector('iframe')) return;
12
+ var frame = document.createElement('iframe');
13
+ frame.className = 'embed-responsive-item';
14
+ frame.src = 'https://www.youtube-nocookie.com/embed/' + encodeURIComponent(video) + '?autoplay=1';
15
+ frame.title = (container.getAttribute('data-title') || '').trim() || 'YouTube video';
16
+ frame.allow = 'autoplay; encrypted-media; picture-in-picture; fullscreen';
17
+ frame.allowFullscreen = true;
18
+ frame.style.border = '0';
19
+ container.appendChild(frame);
20
+ button.hidden = true;
21
+ frame.focus();
22
+ });
23
+ });
24
+ }
25
+ if (document.readyState === 'loading') document.addEventListener('DOMContentLoaded', setup, {once: true});
26
+ else setup();
27
+ })();