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
@@ -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..
@@ -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
+ }
@@ -17,59 +17,52 @@ let sitemap = "{{- 'sitemap.xml' | absolute_url -}}"
17
17
  // Single levestein dist https://stackoverflow.com/questions/18516942
18
18
  // Later implemented as js-levenshtein
19
19
  const levenshteinDistance = (s, t) => {
20
- if (!s.length) return t.length;
21
- if (!t.length) return s.length;
22
- const arr = [];
23
- for (let i = 0; i <= t.length; i++) {
24
- arr[i] = [i];
20
+ let previous = Array.from({length: s.length + 1}, (_, i) => i);
21
+ for (let i = 1; i <= t.length; i++) {
22
+ const current = [i];
25
23
  for (let j = 1; j <= s.length; j++) {
26
- arr[i][j] =
27
- i === 0 ?
28
- j :
29
- Math.min(
30
- arr[i - 1][j] + 1,
31
- arr[i][j - 1] + 1,
32
- arr[i - 1][j - 1] + (s[j - 1] === t[i - 1] ? 0 : 1)
33
- );
24
+ current[j] = Math.min(previous[j] + 1, current[j - 1] + 1,
25
+ previous[j - 1] + (s[j - 1] === t[i - 1] ? 0 : 1));
34
26
  }
27
+ previous = current;
35
28
  }
36
- return arr[t.length][s.length];
29
+ return previous[s.length];
37
30
  };
38
31
  // Iterator to get closest match
39
32
  const closest = (str, urls) => {
40
- var arrayLength = urls.length;
41
- var closest = []; // store their names within a local array
42
- // Iterate over the distance
43
- for (var i = 0; i < arrayLength; i++) {
44
- closest.push(levenshteinDistance(str, urls[i]));
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; }
45
37
  }
46
- let min = closest[0];
47
- let url = urls[0];
48
- for (var i = 0; i < arrayLength; i++) {
49
- if (closest[i] > 0) {
50
- if (closest[i] < min) {
51
- min = closest[i];
52
- url = urls[i];
53
- }
54
- }
55
- }
56
- return url;
38
+ return best;
57
39
  };
58
40
  // END A: Function definition...
59
41
  // https://ben.balter.com/2022/06/30/helpful-404s-for-jekyll-and-github-pages/
60
42
  const div = document.getElementById('four-oh-four-suggestion');
61
43
  if (div) {
62
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 + '/'); }
63
53
  xhr.onload = () => {
64
- if (xhr.status === 200) {
65
- const xml = xhr.responseXML;
66
- const urls = Array.from(xml.querySelectorAll('urlset > url > loc')).map((el) => el.textContent);
67
- const relurl = new URL(closest(currentUrl, urls));
68
- div.innerHTML = `<a class="alert-link font-weight-bolder" href="${relurl.href}">${relurl.href.replace(homeUrl, "")}</a>`;
69
- } else {
70
- div.innerHTML = '<a href="/">/</a>';
71
- }
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();
72
62
  };
63
+ xhr.onerror = fallback;
64
+ xhr.ontimeout = fallback;
65
+ xhr.timeout = 10000;
73
66
  xhr.open('GET', `${sitemap}`);
74
67
  xhr.send();
75
68
  }
@@ -1,82 +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
- im.appendChild(ifr);
65
-
66
- //Remove attributes
67
- //im.removeAttribute('style');
68
-
69
- // Add player
70
- var player = new YT.Player(ifr.id, {
71
- videoId: vid_id,
72
- events: {
73
- onReady: function(ev) {
74
- ev.target.playVideo();
75
- },
76
- },
77
- });
78
-
79
- };
80
- }
81
-
82
- 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
+ })();