type-on-strap 2.3.0 → 2.3.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (180) hide show
  1. checksums.yaml +4 -4
  2. data/LICENSE +1 -1
  3. data/README.md +65 -39
  4. data/_data/language.yml +4 -0
  5. data/_includes/{blog.html → blog/blog.html} +5 -2
  6. data/_includes/{blog_nav.html → blog/blog_nav.html} +4 -4
  7. data/_includes/blog/post_info.html +15 -0
  8. data/_includes/{post_nav.html → blog/post_nav.html} +0 -0
  9. data/_includes/{footer.html → default/footer.html} +1 -1
  10. data/_includes/{head.html → default/head.html} +21 -9
  11. data/_includes/{navbar.html → default/navbar.html} +7 -2
  12. data/_includes/default/tags_list.html +21 -0
  13. data/_includes/gallery.html +2 -3
  14. data/_includes/portfolio.html +1 -2
  15. data/_includes/social/cusdis.html +13 -0
  16. data/_includes/{disqus.html → social/disqus.html} +0 -0
  17. data/_includes/social/icon_partial.html +11 -0
  18. data/_includes/social/icons.html +107 -0
  19. data/_includes/social/share_buttons.html +92 -0
  20. data/_layouts/{custom.html → custom.md} +15 -10
  21. data/_layouts/default.html +5 -5
  22. data/_layouts/home.html +1 -1
  23. data/_layouts/page.html +1 -1
  24. data/_layouts/post.html +25 -15
  25. data/_layouts/search.html +1 -1
  26. data/_layouts/tags.html +61 -68
  27. data/_sass/base/_global.scss +11 -11
  28. data/_sass/base/_highlight.scss +77 -72
  29. data/_sass/base/_utility.scss +13 -7
  30. data/_sass/base/_variables.scss +113 -73
  31. data/_sass/external/_font-awesome.scss +17 -15
  32. data/_sass/external/_katex.scss +374 -35
  33. data/_sass/external/font-awesome/_animated.scss +6 -20
  34. data/_sass/external/font-awesome/_bordered-pulled.scss +6 -11
  35. data/_sass/external/font-awesome/_brands.scss +23 -0
  36. data/_sass/external/font-awesome/_core.scss +15 -6
  37. data/_sass/external/font-awesome/_fixed-width.scss +1 -1
  38. data/_sass/external/font-awesome/_icons.scss +1460 -787
  39. data/_sass/external/font-awesome/_larger.scss +16 -6
  40. data/_sass/external/font-awesome/_list.scss +7 -8
  41. data/_sass/external/font-awesome/_mixins.scss +16 -20
  42. data/_sass/external/font-awesome/_regular.scss +23 -0
  43. data/_sass/external/font-awesome/_rotated-flipped.scss +10 -6
  44. data/_sass/external/font-awesome/_screen-reader.scss +2 -2
  45. data/_sass/external/font-awesome/_shims.scss +2066 -0
  46. data/_sass/external/font-awesome/_solid.scss +24 -0
  47. data/_sass/external/font-awesome/_stacked.scss +19 -8
  48. data/_sass/external/font-awesome/_variables.scss +1474 -795
  49. data/_sass/external/font-awesome/v4-shims.scss +6 -0
  50. data/_sass/includes/_footer.scss +13 -2
  51. data/_sass/includes/_mermaid.scss +8 -0
  52. data/_sass/includes/_navbar.scss +7 -6
  53. data/_sass/includes/_share_buttons.scss +12 -2
  54. data/_sass/layouts/_blog.scss +11 -18
  55. data/_sass/layouts/_page.scss +3 -2
  56. data/_sass/layouts/_posts.scss +27 -7
  57. data/_sass/layouts/_search.scss +11 -8
  58. data/_sass/layouts/_tags.scss +21 -8
  59. data/_sass/type-on-strap.scss +5 -4
  60. data/assets/css/vendor/bootstrap-iso.css +0 -30
  61. data/assets/css/vendor/bootstrap-iso.min.css +1 -1
  62. data/assets/css/vendor/bootstrap.css +0 -30
  63. data/assets/fonts/font-awesome/fa-brands-400.eot +0 -0
  64. data/assets/fonts/font-awesome/fa-brands-400.svg +3717 -0
  65. data/assets/fonts/font-awesome/fa-brands-400.ttf +0 -0
  66. data/assets/fonts/font-awesome/fa-brands-400.woff +0 -0
  67. data/assets/fonts/font-awesome/fa-brands-400.woff2 +0 -0
  68. data/assets/fonts/font-awesome/fa-regular-400.eot +0 -0
  69. data/assets/fonts/font-awesome/fa-regular-400.svg +801 -0
  70. data/assets/fonts/font-awesome/fa-regular-400.ttf +0 -0
  71. data/assets/fonts/font-awesome/fa-regular-400.woff +0 -0
  72. data/assets/fonts/font-awesome/fa-regular-400.woff2 +0 -0
  73. data/assets/fonts/font-awesome/fa-solid-900.eot +0 -0
  74. data/assets/fonts/font-awesome/fa-solid-900.svg +5028 -0
  75. data/assets/fonts/font-awesome/fa-solid-900.ttf +0 -0
  76. data/assets/fonts/font-awesome/fa-solid-900.woff +0 -0
  77. data/assets/fonts/font-awesome/fa-solid-900.woff2 +0 -0
  78. data/assets/fonts/katex/KaTeX_AMS-Regular.ttf +0 -0
  79. data/assets/fonts/katex/KaTeX_AMS-Regular.woff +0 -0
  80. data/assets/fonts/katex/KaTeX_AMS-Regular.woff2 +0 -0
  81. data/assets/fonts/katex/KaTeX_Caligraphic-Bold.ttf +0 -0
  82. data/assets/fonts/katex/KaTeX_Caligraphic-Bold.woff +0 -0
  83. data/assets/fonts/katex/KaTeX_Caligraphic-Bold.woff2 +0 -0
  84. data/assets/fonts/katex/KaTeX_Caligraphic-Regular.ttf +0 -0
  85. data/assets/fonts/katex/KaTeX_Caligraphic-Regular.woff +0 -0
  86. data/assets/fonts/katex/KaTeX_Caligraphic-Regular.woff2 +0 -0
  87. data/assets/fonts/katex/KaTeX_Fraktur-Bold.ttf +0 -0
  88. data/assets/fonts/katex/KaTeX_Fraktur-Bold.woff +0 -0
  89. data/assets/fonts/katex/KaTeX_Fraktur-Bold.woff2 +0 -0
  90. data/assets/fonts/katex/KaTeX_Fraktur-Regular.ttf +0 -0
  91. data/assets/fonts/katex/KaTeX_Fraktur-Regular.woff +0 -0
  92. data/assets/fonts/katex/KaTeX_Fraktur-Regular.woff2 +0 -0
  93. data/assets/fonts/katex/KaTeX_Main-Bold.ttf +0 -0
  94. data/assets/fonts/katex/KaTeX_Main-Bold.woff +0 -0
  95. data/assets/fonts/katex/KaTeX_Main-Bold.woff2 +0 -0
  96. data/assets/fonts/katex/KaTeX_Main-BoldItalic.ttf +0 -0
  97. data/assets/fonts/katex/KaTeX_Main-BoldItalic.woff +0 -0
  98. data/assets/fonts/katex/KaTeX_Main-BoldItalic.woff2 +0 -0
  99. data/assets/fonts/katex/KaTeX_Main-Italic.ttf +0 -0
  100. data/assets/fonts/katex/KaTeX_Main-Italic.woff +0 -0
  101. data/assets/fonts/katex/KaTeX_Main-Italic.woff2 +0 -0
  102. data/assets/fonts/katex/KaTeX_Main-Regular.ttf +0 -0
  103. data/assets/fonts/katex/KaTeX_Main-Regular.woff +0 -0
  104. data/assets/fonts/katex/KaTeX_Main-Regular.woff2 +0 -0
  105. data/assets/fonts/katex/KaTeX_Math-BoldItalic.ttf +0 -0
  106. data/assets/fonts/katex/KaTeX_Math-BoldItalic.woff +0 -0
  107. data/assets/fonts/katex/KaTeX_Math-BoldItalic.woff2 +0 -0
  108. data/assets/fonts/katex/KaTeX_Math-Italic.ttf +0 -0
  109. data/assets/fonts/katex/KaTeX_Math-Italic.woff +0 -0
  110. data/assets/fonts/katex/KaTeX_Math-Italic.woff2 +0 -0
  111. data/assets/fonts/katex/KaTeX_SansSerif-Bold.ttf +0 -0
  112. data/assets/fonts/katex/KaTeX_SansSerif-Bold.woff +0 -0
  113. data/assets/fonts/katex/KaTeX_SansSerif-Bold.woff2 +0 -0
  114. data/assets/fonts/katex/KaTeX_SansSerif-Italic.ttf +0 -0
  115. data/assets/fonts/katex/KaTeX_SansSerif-Italic.woff +0 -0
  116. data/assets/fonts/katex/KaTeX_SansSerif-Italic.woff2 +0 -0
  117. data/assets/fonts/katex/KaTeX_SansSerif-Regular.ttf +0 -0
  118. data/assets/fonts/katex/KaTeX_SansSerif-Regular.woff +0 -0
  119. data/assets/fonts/katex/KaTeX_SansSerif-Regular.woff2 +0 -0
  120. data/assets/fonts/katex/KaTeX_Script-Regular.ttf +0 -0
  121. data/assets/fonts/katex/KaTeX_Script-Regular.woff +0 -0
  122. data/assets/fonts/katex/KaTeX_Script-Regular.woff2 +0 -0
  123. data/assets/fonts/katex/KaTeX_Size1-Regular.ttf +0 -0
  124. data/assets/fonts/katex/KaTeX_Size1-Regular.woff +0 -0
  125. data/assets/fonts/katex/KaTeX_Size1-Regular.woff2 +0 -0
  126. data/assets/fonts/katex/KaTeX_Size2-Regular.ttf +0 -0
  127. data/assets/fonts/katex/KaTeX_Size2-Regular.woff +0 -0
  128. data/assets/fonts/katex/KaTeX_Size2-Regular.woff2 +0 -0
  129. data/assets/fonts/katex/KaTeX_Size3-Regular.ttf +0 -0
  130. data/assets/fonts/katex/KaTeX_Size3-Regular.woff +0 -0
  131. data/assets/fonts/katex/KaTeX_Size3-Regular.woff2 +0 -0
  132. data/assets/fonts/katex/KaTeX_Size4-Regular.ttf +0 -0
  133. data/assets/fonts/katex/KaTeX_Size4-Regular.woff +0 -0
  134. data/assets/fonts/katex/KaTeX_Size4-Regular.woff2 +0 -0
  135. data/assets/fonts/katex/KaTeX_Typewriter-Regular.ttf +0 -0
  136. data/assets/fonts/katex/KaTeX_Typewriter-Regular.woff +0 -0
  137. data/assets/fonts/katex/KaTeX_Typewriter-Regular.woff2 +0 -0
  138. data/assets/js/main.min.js +1 -1
  139. data/assets/js/partials/dark-mode.js +43 -0
  140. data/assets/js/vendor/auto-render.min.js +1 -1
  141. data/assets/js/vendor/katex.min.js +1 -1
  142. data/assets/js/vendor/mermaid.min.js +29 -29
  143. data/assets/js/vendor/simple-jekyll-search.min.js +3 -3
  144. metadata +41 -46
  145. data/_includes/icons.html +0 -267
  146. data/_includes/post_info.html +0 -13
  147. data/_includes/share_buttons.html +0 -81
  148. data/_includes/tags_list.html +0 -23
  149. data/_sass/external/font-awesome/_path.scss +0 -16
  150. data/_sass/external/font-awesome/font-awesome.scss +0 -17
  151. data/assets/fonts/fontawesome/FontAwesome.otf +0 -0
  152. data/assets/fonts/fontawesome/fontawesome-webfont.eot +0 -0
  153. data/assets/fonts/fontawesome/fontawesome-webfont.svg +0 -2671
  154. data/assets/fonts/fontawesome/fontawesome-webfont.ttf +0 -0
  155. data/assets/fonts/fontawesome/fontawesome-webfont.woff +0 -0
  156. data/assets/fonts/fontawesome/fontawesome-webfont.woff2 +0 -0
  157. data/assets/fonts/katex/KaTeX_AMS-Regular.eot +0 -0
  158. data/assets/fonts/katex/KaTeX_Caligraphic-Bold.eot +0 -0
  159. data/assets/fonts/katex/KaTeX_Caligraphic-Regular.eot +0 -0
  160. data/assets/fonts/katex/KaTeX_Fraktur-Bold.eot +0 -0
  161. data/assets/fonts/katex/KaTeX_Fraktur-Regular.eot +0 -0
  162. data/assets/fonts/katex/KaTeX_Main-Bold.eot +0 -0
  163. data/assets/fonts/katex/KaTeX_Main-Italic.eot +0 -0
  164. data/assets/fonts/katex/KaTeX_Main-Regular.eot +0 -0
  165. data/assets/fonts/katex/KaTeX_Math-BoldItalic.eot +0 -0
  166. data/assets/fonts/katex/KaTeX_Math-Italic.eot +0 -0
  167. data/assets/fonts/katex/KaTeX_Math-Regular.eot +0 -0
  168. data/assets/fonts/katex/KaTeX_Math-Regular.ttf +0 -0
  169. data/assets/fonts/katex/KaTeX_Math-Regular.woff +0 -0
  170. data/assets/fonts/katex/KaTeX_Math-Regular.woff2 +0 -0
  171. data/assets/fonts/katex/KaTeX_SansSerif-Bold.eot +0 -0
  172. data/assets/fonts/katex/KaTeX_SansSerif-Italic.eot +0 -0
  173. data/assets/fonts/katex/KaTeX_SansSerif-Regular.eot +0 -0
  174. data/assets/fonts/katex/KaTeX_Script-Regular.eot +0 -0
  175. data/assets/fonts/katex/KaTeX_Size1-Regular.eot +0 -0
  176. data/assets/fonts/katex/KaTeX_Size2-Regular.eot +0 -0
  177. data/assets/fonts/katex/KaTeX_Size3-Regular.eot +0 -0
  178. data/assets/fonts/katex/KaTeX_Size4-Regular.eot +0 -0
  179. data/assets/fonts/katex/KaTeX_Typewriter-Regular.eot +0 -0
  180. data/assets/js/vendor/mermaid.min.js.map +0 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5f34dd2b2511f5ee05355a8962e017f98295b2efa98a650d063986bf73e16cfc
4
- data.tar.gz: 40aa6d606ab5e81ab0550654bebf1a6eb44534e98b8f8bac1c460d38d8a4b064
3
+ metadata.gz: 7ec12a9dd9f1ebb6a121accb434aac3199012abe93ae3b1cc59e2b0d3e7f233a
4
+ data.tar.gz: f344537349f557bc2a2c2fe88701ba3fcb8f02ba809c9f0d2721f23ec960bfe2
5
5
  SHA512:
6
- metadata.gz: 1eb74952eab6d681a53fd72dba8c79b69118e93a2a39db8edf84ce4510ce7e0ad4d8d8102c5ed48efb68d247b14e83aa33c13efead44231875d2897cebf3cb51
7
- data.tar.gz: f8aaa2f2d65380f2501de5c55cd1f7b7865cae0a3c97ce84a17ec3a03006df535e494f0dd4d1ceb57958a3d0549c45f2a2b49823b78ab62febfa584d44ea5a42
6
+ metadata.gz: fe97b6348c8829c62dad820f42e16afaad782f88b7a291ba0062ea4015d4651aa4882134b7652a2c9100b0e3da9bada778444fa4bc47ef3e4db4fd4c9f165c3e
7
+ data.tar.gz: 0a848716a49bf9efe3bc19c1e10a6d4e4606356ce57e09ceb2a04750c38b619eeacff77c1254d9a65f8a993a5243f3941d8cc6f59a0af5ce1eb4fd8ad7627071
data/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  The MIT License (MIT)
2
2
 
3
- Copyright (c) 2016-2020 Sylhare
3
+ Copyright (c) 2016-2021 Sylhare
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
data/README.md CHANGED
@@ -4,39 +4,30 @@
4
4
  [![Gem Version](https://badge.fury.io/rb/type-on-strap.svg)](https://badge.fury.io/rb/type-on-strap)
5
5
  [![Docker Pulls](https://img.shields.io/docker/pulls/sylhare/type-on-strap)](https://hub.docker.com/r/sylhare/type-on-strap)
6
6
 
7
- [![Default Type on Strap blog](https://github.com/Sylhare/Type-on-Strap/blob/master/screenshot.png?raw=true)](https://sylhare.github.io/Type-on-Strap/)
7
+ [![Default Type on Strap blog](https://github.com/Sylhare/Type-on-Strap/blob/master/assets/img/screenshot.png?raw=true)](https://sylhare.github.io/Type-on-Strap/)
8
8
 
9
- A free and open-source [Jekyll](https://jekyllrb.com) theme. Based on Rohan Chandra [type-theme](https://github.com/rohanchandra/type-theme) packed with extra features and easily cusomizable:
9
+ A free and open-source [Jekyll](https://jekyllrb.com) theme. Based on Rohan Chandra [type-theme](https://github.com/rohanchandra/type-theme) packed with extra features and easily customizable:
10
10
 
11
11
  * Responsive design on all devices (🖥, 💻, 📱, ...)
12
12
  * Portfolio 🗂, Gallery 🖼 pages for your projects
13
13
  * Tags compatibility 🏷
14
- * Handle Bootstrap'ed pages: [Get Bootstrap](http://getbootstrap.com/)
14
+ * Handle _Bootstrap_'ed pages: [Get Bootstrap](http://getbootstrap.com/)
15
15
  * 🔎 Search feature: [Simple-Jekyll-Search](https://github.com/christian-fei/Simple-Jekyll-Search)
16
16
  * Math Rendering : [KateX](https://github.com/Khan/KaTeX)
17
17
  * Diagram Rendering: [Mermaid-js](https://github.com/mermaid-js/mermaid)
18
18
  * 🖋 Nice fonts: [Font Awesome](https://fontawesome.com/), [Source Sans Pro](https://fonts.google.com/specimen/Source+Sans+Pro), [Pacifico](https://fonts.google.com/specimen/Pacifico?selection.family=Pacifico)
19
19
  * Seo Tags: [Jekyll-seo-tag](https://github.com/jekyll/jekyll-seo-tag)
20
20
  * 🛠 Syntax Highlighting: Easily customisable [Base16](https://github.com/chriskempson/base16)
21
- * Free of rights images from [pexels](https://www.pexels.com/)
21
+ * 💡 Light and dark theme supported
22
+ * Find free of rights images on [pexels](https://www.pexels.com/)
22
23
 
23
24
  > [Demo Site](https://sylhare.github.io/Type-on-Strap/)
24
25
 
25
- ## Table of Contents
26
-
27
- - [Usage](#usage)
28
- - [Structure](#structure)
29
- - [Configure Type on Strap](#configure-type-on-strap)
30
- - [Other Layouts](#other-layouts)
31
- - [Feature pages](#feature-pages)
32
- - [Advanced](#advanced)
33
- - [License](#license)
34
-
35
26
  ## Usage
36
27
 
37
28
  ### As a ruby gem 💎
38
29
 
39
- Check out this tutorial: [Use as Ruby Gem](https://github.com/Sylhare/Type-on-Strap#use-as-ruby-gem)
30
+ Check out this tutorial: [Use as Ruby Gem](#use-as-ruby-gem-)
40
31
 
41
32
  ### As a github page 📋
42
33
 
@@ -44,7 +35,7 @@ Check out this tutorial: [Use as Ruby Gem](https://github.com/Sylhare/Type-on-St
44
35
  2. Install [Jekyll](https://jekyllrb.com/docs/installation/): `gem install jekyll`, check [#1](https://github.com/Sylhare/Type-on-Strap/issues/1) if you have a problem.
45
36
  3. Install the theme's dependencies: `bundle install`
46
37
  4. Customize the theme
47
- - Github Page: [update `_config.yml`](https://github.com/Sylhare/Type-on-Strap#site-configuration)
38
+ - GitHub Page: [update `_config.yml`](#site-configuration)
48
39
  5. Run the Jekyll server: `bundle exec jekyll serve`
49
40
 
50
41
  ## Structure
@@ -87,7 +78,7 @@ If a variable in this document is marked as "optional", disable the feature by r
87
78
 
88
79
  ### Site configuration
89
80
 
90
- Configure Jekyll as your own blog or with a "baseurl" in in `_config.yml`:
81
+ Configure Jekyll as your own blog or with a "baseurl" in `_config.yml`:
91
82
 
92
83
  Jekyll website *without* a "baseurl" (such as a GitHub Pages website for a given username):
93
84
 
@@ -117,9 +108,12 @@ title: My Jekyll Blog # Name of website
117
108
  avatar: assets/img/triangle.png # Path of avatar image, to be displayed in the theme's header
118
109
  description: My blog posts # Short description, primarily used by search engines
119
110
  favicon: assets/favicon.ico # Icon displayed in the tab
111
+ color_theme: auto # color theme auto, dark or light
120
112
  ```
121
113
 
122
114
  You can also customize the seo tags default option following the jekyll-seo-tag plugin [documentation](http://jekyll.github.io/jekyll-seo-tag/advanced-usage/).
115
+ The color theme can be set to dark or light (customize it in _variables.scss_).
116
+ Using _auto_ you'll have a tiny icon in the navbar allowing the use to manually switch from dark to light theme.
123
117
 
124
118
  ### Theme customization 🎨
125
119
 
@@ -140,7 +134,7 @@ If you don't want anything, replace the value by `" "`.
140
134
  Localization string is a way to quickly change the template language for text like *Next Post* or *Follow on*, ...
141
135
  You can find all the properties in `_data/language.yml`.
142
136
 
143
- By default it is in english, but you can easily add your own language.
137
+ By default, it is in english, but you can easily add your own language.
144
138
 
145
139
  ### Google Analytics
146
140
 
@@ -151,7 +145,9 @@ to `_config.yml` like so:
151
145
  google_analytics: UA-NNNNNNNN-N
152
146
  ```
153
147
 
154
- ### Comments (via Disqus)
148
+ ### Comments
149
+
150
+ #### Disqus
155
151
 
156
152
  Optionally, if you have a [Disqus](https://disqus.com/) account, you can show a
157
153
  comments section below each post.
@@ -163,12 +159,23 @@ to your project's `_config.yml` file:
163
159
  disqus_shortname: my_disqus_shortname
164
160
  ```
165
161
 
162
+ #### Cusdis
163
+
164
+ [Cusdis](https://cusdis.com/) is an open source alternative to Disqus.
165
+ You can read more about it in the [documentation](https://cusdis.com/doc#/)
166
+
167
+ To enable it, set your cusdis name in `_config.yml`:
168
+
169
+ ```yaml
170
+ cusdis_app_id: my_data-app-id
171
+ ```
172
+
166
173
  ### Math typesetting with KateX
167
174
 
168
175
  When KateX is set in `_config.yml`:
169
176
 
170
177
  ```yml
171
- katex: true # to Enable it
178
+ katex: true # to enable it
172
179
  ```
173
180
 
174
181
  You can then wrap math expressions with `$$` signs in your posts and make sure you have set the `katex` variable
@@ -188,6 +195,8 @@ $$
188
195
  $$
189
196
  ```
190
197
 
198
+ You can find a cheat sheet of the compatible LaTex symbols [online](https://artofproblemsolving.com/wiki/index.php/LaTeX:Symbols).
199
+
191
200
  ### Diagrams with Mermaid
192
201
 
193
202
  Enable the [mermaid-js](https://github.com/mermaid-js/mermaid) diagram rendering by setting mermaid to true in the `_config.yml`.
@@ -211,13 +220,13 @@ sequenceDiagram
211
220
 
212
221
  ### Social icons
213
222
 
214
- In `_data/social.yml` you can customize the social icons from other wbesite you wish to display in the blog.
223
+ In `_data/social.yml` you can customize the social icons from other website you wish to display in the blog.
215
224
  The site icons come from [Font Awesome](https://fontawesome.com/).
216
225
 
217
226
  ### Cookie consent
218
227
 
219
228
  You can add a cookie consent with a disclaimer if you use Google Analytics while respecting the [GDPR](https://en.wikipedia.org/wiki/General_Data_Protection_Regulation).
220
- Set to true, there will be a banner at the bottom of the page with the disclaimer and a approve button.
229
+ Set to true, there will be a banner at the bottom of the page with the disclaimer, and an _approve_ button.
221
230
  Once the user clicks on "Approve" the cookies will be created for Google Analytics.
222
231
 
223
232
  #### Share in article
@@ -252,7 +261,7 @@ Please refer to the [Jekyll docs for writing posts](https://jekyllrb.com/docs/po
252
261
 
253
262
  #### Layout: Post
254
263
 
255
- This are the basic features you can use with the `post` layout.
264
+ These are the basic features you can use with the `post` layout.
256
265
 
257
266
  ```yml
258
267
 
@@ -261,7 +270,7 @@ layout: post
261
270
  title: Hello World # Title of the page
262
271
  hide_title: true # Hide the title when displaying the post, but shown in lists of posts
263
272
  feature-img: "assets/img/sample.png" # Add a feature-image to the post
264
- thumbnail: "assets/thumbnails/sample-th.png" # Add a thumbnail image on blog view
273
+ thumbnail: "assets/img/thumbnails/sample-th.png" # Add a thumbnail image on blog view
265
274
  color: rgb(80,140,22) # Add the specified color as feature image, and change link colors in post
266
275
  bootstrap: true # Add bootstrap to the page
267
276
  tags: [sample, markdown, html]
@@ -303,7 +312,7 @@ some text in the excerpt
303
312
  ... rest of the text not shown in the excerpt ...
304
313
  ```
305
314
 
306
- The html is stripped out of the excerpt so it only display text.
315
+ The html is stripped out of the excerpt, so it only displays text.
307
316
 
308
317
  #### Image aligner
309
318
 
@@ -313,8 +322,8 @@ To easily add align images side by side in your article using the `aligner.html`
313
322
  {% include aligner.html images="path/to/img1.png,path/to/img2.png,path/to/img3.png" column=3 %}
314
323
  ```
315
324
 
316
- Use it in any markdown file. There are two fields in the include you need to look into:
317
- - _images_: Takes a string separated with `,` of all the images path.
325
+ Use it in any markdown file. There are two fields in the _include_ you need to look into:
326
+ - _images_: Takes a string separated with `,` of all the images' path.
318
327
  - It by default look into `assets/img/` so give the path from there.
319
328
  - _column_: (OPTIONAL) Set the number of column you want your imaged displayed in.
320
329
  - default is 2 columns
@@ -323,7 +332,7 @@ Use it in any markdown file. There are two fields in the include you need to loo
323
332
 
324
333
  #### Code highlight
325
334
 
326
- Like all CSS variables in the theme, you can edit the color of the code highlight in _sass > base > _variables.scss.
335
+ Like all CSS variables in the theme, you can edit the color of the code highlight in *_sass > base > _variables.scss*.
327
336
  The code highlighting works with [base16](https://github.com/chriskempson/base16-html-previews/tree/master/css) you can find existing example
328
337
  of your favourite highlight color scheme on this format.
329
338
 
@@ -384,7 +393,7 @@ layout: page
384
393
  title : Portfolio
385
394
  ---
386
395
 
387
- {% include portfolio.html %}
396
+ {% include default/portfolio.html %}
388
397
  ```
389
398
 
390
399
  #### Portfolio posts
@@ -416,14 +425,14 @@ collections:
416
425
  permalink: /:collection/:name
417
426
  ```
418
427
 
419
- This creates the collection for Jekyll so it can find and display your portfolio posts.
428
+ This creates the collection for Jekyll, so it can find and display your portfolio posts.
420
429
 
421
430
  ### Feature: Gallery 🖼
422
431
 
423
432
  You can create a gallery using [Masonry JS](https://masonry.desandro.com/) which will placing the pictures in optimal position
424
433
  based on available vertical space.
425
434
  You need to specify the `gallery_path` which will be used to find the pictures to render.
426
- It will take all of the picture under that directory. Then use the `include` to add it in your page.
435
+ It will take all the pictures under that directory. Then use the `include` to add it in your page.
427
436
 
428
437
  ```yml
429
438
 
@@ -433,14 +442,14 @@ title: Gallery
433
442
  gallery: "assets/img/pexels"
434
443
  ---
435
444
 
436
- {% include gallery.html gallery_path=page.gallery %}
445
+ {% include default/gallery.html gallery_path=page.gallery %}
437
446
  ```
438
447
 
439
448
 
440
449
  ### Feature: Search 🔍
441
450
 
442
451
  The search feature is based on [Simple-Jekyll-search](https://github.com/christian-fei/Simple-Jekyll-Search)
443
- there is a `search.json` file that will create a list of all of the site posts, pages and portfolios.
452
+ there is a `search.json` file that will create a list of all the site posts, pages and portfolios.
444
453
 
445
454
  Then there's a `search.js` displaying the formatted results entered in the `search.html` page.
446
455
 
@@ -471,7 +480,7 @@ tags: [sample, markdown, html]
471
480
  ---
472
481
  ```
473
482
 
474
- > Tags are case sensitive `Tag_nAme` ≠ `tag_name`
483
+ > Tags are case-sensitive `Tag_nAme` ≠ `tag_name`
475
484
 
476
485
  All the tags will be listed in `tags.html` with a link toward the pages or posts.
477
486
  The Tag page can be hidden with the `hide` option. You can remove the icon by removing `icon` (like for the search page).
@@ -489,7 +498,9 @@ Jekyll works with [liquid](https://shopify.github.io/liquid/) tags usually repre
489
498
  These are useful to render your jekyll files.
490
499
  You can learn more about them on [shopify's doc](https://help.shopify.com/themes/liquid/basics)
491
500
 
492
- ### Minimizing and optimizing: css, js and images
501
+ ### Gulp toolbox
502
+
503
+ #### Requirements
493
504
 
494
505
  Before you need to have *node* and `npm` installed:
495
506
 
@@ -505,18 +516,33 @@ sudo npm install gulp-cli -g
505
516
  npm install
506
517
  ```
507
518
 
519
+ #### Minimizing and optimizing: css, js and images
520
+
508
521
  You can run the default task that will compress the js, css and images and create the thumbnails for the supported image
509
522
  formats:
510
523
 
511
524
  ```bash
512
525
  cd assets/
513
526
  gulp default
514
- gulp thumbnails # to create all of the images thumbnails
527
+ gulp thumbnails-all # to create all of the images thumbnails
528
+ gulp thumbnails # to create thumbnails for the feature-img/ only
515
529
  # tip: run a git status to see the changes
516
530
  git status
517
531
  ```
518
532
 
519
- You can find more about the gulp tasks in the [gulpfile.js](assets/gulpfile.js)
533
+ You can find more about the gulp tasks in the [gulpfile.js](assets/gulpfile.js).
534
+
535
+ #### Create a post
536
+
537
+ To create a `.md` file in the *_posts/* section with the jekyll format of today's date.
538
+ Use this command with the title you'd like to create the very basic post.
539
+
540
+ ```bash
541
+ gulp post -n 'title of the post'
542
+ ```
543
+
544
+ A file will be created following the format `yyyy-mm-dd-title-of-the-post.md` with default post attributes inside.
545
+ Nothing will happen if the file exists already.
520
546
 
521
547
  ### Use as Ruby Gem 💎
522
548
 
@@ -548,7 +574,7 @@ Then you can start adding content like:
548
574
 
549
575
  ### Remote Theme
550
576
 
551
- Now you can use any theme gem with github pages with [29/11/2017 Github Pages Broadcast](https://github.com/blog/2464-use-any-theme-with-github-pages).
577
+ Now you can use any theme gem with GitHub pages with [29/11/2017 Github Pages Broadcast](https://github.com/blog/2464-use-any-theme-with-github-pages).
552
578
  For that remove all `theme:` attributes from `_config.yml` and add instead:
553
579
 
554
580
  ```yml
@@ -557,7 +583,7 @@ remote_theme: sylhare/Type-on-Strap
557
583
 
558
584
  ## License
559
585
 
560
- This theme is licensed under the [The MIT License (MIT)](https://raw.githubusercontent.com/Sylhare/Type-on-Strap/master/LICENSE)
586
+ This theme is licensed under the [The MIT License (MIT)](/LICENSE)
561
587
 
562
588
  - Pictures from [Pexels](https://www.pexels.com/) are under Creative Commons Zero (CC0) license
563
589
  - Fonts are licensed under the [SIL Open Font License (OFL)](https://scripts.sil.org/cms/scripts/page.php?site_id=nrsi&id=OFL)
data/_data/language.yml CHANGED
@@ -14,3 +14,7 @@ str_javascript_required_disqus: "Please enable JavaScript to view comments."
14
14
  str_no_result_found: "No result found"
15
15
  str_cookie_approve: "Approve"
16
16
  str_cookie_disclaimer: "We would like to use third party cookies and scripts to improve the functionality of this website."
17
+ str_months: [January, February, March, April, May, June, July, August, September, October, November, December]
18
+
19
+ # Localization settings
20
+ cusdis_lang: # zh-cn, es, tr, pt-BR
@@ -1,4 +1,7 @@
1
1
  <div class="posts">
2
+ {% unless paginator.posts %}
3
+ <article><section class="post-content"><p>There are no blog posts</p></section></article>
4
+ {% endunless %}
2
5
  {% for post in paginator.posts %}
3
6
  <div class="post-teaser">
4
7
  {% if post.thumbnail %}
@@ -15,7 +18,7 @@
15
18
  {{ post.title }}
16
19
  </a>
17
20
  </h1>
18
- {% include post_info.html author=post.author date=post.date %}
21
+ {% include blog/post_info.html author=post.author date=post.date %}
19
22
  </header>
20
23
  {% if site.excerpt or site.theme_settings.excerpt %}
21
24
  <div class="excerpt">
@@ -31,4 +34,4 @@
31
34
  {% endfor %}
32
35
  </div>
33
36
 
34
- {% include blog_nav.html %}
37
+ {% include blog/blog_nav.html %}
@@ -5,14 +5,14 @@
5
5
  {% if paginator.previous_page and paginator.previous_page != 1%}
6
6
  <!-- << -->
7
7
  <a aria-label="{{ site.data.language.str_previous_page | default: 'Prev' }}" href="{{ '/' | relative_url }}" class="button">
8
- <span><i class="fa fa-angle-double-left"></i></span>
8
+ <span><i class="fas fa-angle-double-left"></i></span>
9
9
  </a>
10
10
  {% endif %}
11
11
 
12
12
  <!-- < previous -->
13
13
  <a aria-label="{{ site.data.language.str_previous_page | default: 'Prev' }}" href="{{ paginator.previous_page_path | relative_url }}"
14
14
  {% unless paginator.previous_page %}style="visibility:hidden"{% endunless %} class="button">
15
- <span><i class="fa fa-chevron-left"></i></span>
15
+ <span><i class="fas fa-chevron-left"></i></span>
16
16
  {{ site.data.language.str_previous_page | default: "Prev" }}
17
17
  </a>
18
18
  </div>
@@ -27,14 +27,14 @@
27
27
  <a aria-label="{{ site.data.language.str_next_page | default: 'Next' }}" href="{{ paginator.next_page_path | relative_url }}"
28
28
  {% unless paginator.next_page %}style="visibility:hidden"{% endunless %} class="button">
29
29
  {{ site.data.language.str_next_page | default: "Next" }}
30
- <span><i class="fa fa-chevron-right"></i></span>
30
+ <span><i class="fas fa-chevron-right"></i></span>
31
31
  </a>
32
32
 
33
33
  {% if paginator.next_page and paginator.next_page != paginator.total_pages %}
34
34
  <!-- >> -->
35
35
  <a aria-label="{{ site.data.language.str_next_page | default: 'Next' }}"
36
36
  href="{{ site.paginate_path | relative_url | replace: ':num', paginator.total_pages }}" class="button">
37
- <span><i class="fa fa-angle-double-right"></i></span>
37
+ <span><i class="fas fa-angle-double-right"></i></span>
38
38
  </a>
39
39
  {% endif %}
40
40
 
@@ -0,0 +1,15 @@
1
+ {% assign author = site.data.authors[include.author] %}
2
+ {% assign date = include.date | default: "today" | date: "%B %-d, %Y" %}
3
+
4
+ <div class="post-info">
5
+ {%- if author.url -%}<a href="{{ author.url | relative_url }}" target="_blank">{%- endif -%}
6
+ {% if author.avatar %}
7
+ <img alt="Author's avatar" src="{{ author.avatar | relative_url }}">
8
+ {% endif %}
9
+ <p class="meta">
10
+ {% if author.name %}{{ author.name }} - {% endif %}
11
+ {% assign x = date | date: "%m" | minus: 1 %}
12
+ {{ site.data.language.str_months[x] | default: date | date: "%B" }} {{ date | date: "%d, %Y" }}
13
+ </p>
14
+ {%- if author.url -%}</a>{%- endif -%}
15
+ </div>
File without changes
@@ -4,7 +4,7 @@
4
4
  <div class="footer-icons">
5
5
  <ul>
6
6
  <!-- Social icons from Font Awesome, if enabled -->
7
- {% include icons.html %}
7
+ {% include social/icons.html %}
8
8
  </ul>
9
9
  </div>
10
10
  </footer>
@@ -1,6 +1,19 @@
1
1
  <head>
2
2
  <meta charset="utf-8">
3
- <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
3
+ <meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=0.5, maximum-scale=5">
4
+
5
+ <!-- Theme Mode-->
6
+ {% if site.color_theme == 'auto' %}
7
+ <script>
8
+ const isAutoTheme = true;
9
+ document.documentElement.setAttribute('data-theme', sessionStorage.getItem('theme'))
10
+ </script>
11
+ {% else %}
12
+ <script>
13
+ const isAutoTheme = false;
14
+ document.documentElement.setAttribute('data-theme', "{{ site.color_theme | default: 'light' }}")
15
+ </script>
16
+ {% endif %}
4
17
 
5
18
  <!-- Main JS (navbar.js, katex_init.js and masonry_init.js)-->
6
19
  <script defer src="{{ '/assets/js/main.min.js' | relative_url }}"></script>
@@ -12,8 +25,8 @@
12
25
  <link rel="shortcut icon" href="{{ site.favicon | relative_url }}" type="image/x-icon">
13
26
 
14
27
  <!-- RSS -->
15
- <link rel="alternate" type="application/atom+xml" title="{{ site.title }}" href="{{ 'feed.xml' | absolute_url }}"/>
16
-
28
+ <link rel="alternate" type="application/atom+xml" title="{{ site.title | default: 'Title' }}" href="{{ 'feed.xml' | absolute_url }}"/>
29
+
17
30
  {% if page.bootstrap %}
18
31
  <!-- Bootstrap-4.1.3 isolation CSS -->
19
32
  <link rel="stylesheet" type="text/css" href="{{ '/assets/css/vendor/bootstrap-iso.min.css' | relative_url }}">
@@ -25,19 +38,18 @@
25
38
  <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.3/umd/popper.min.js" integrity="sha384-ZMP7rVo3mIykV+2+9J3UJ46jBk0WLaUAdn689aCwoqbBJiSnjAK/l8WvCWPIPm49" crossorigin="anonymous"></script>
26
39
  {% endif %}
27
40
 
28
- <!-- KaTeX 0.12.0 -->
41
+ <!-- KaTeX 0.13.9 -->
29
42
  {% if site.katex or site.theme_settings.katex %}
30
43
  <script defer src="{{ '/assets/js/vendor/katex.min.js' | relative_url }}"></script>
31
44
  <script defer src="{{ '/assets/js/vendor/auto-render.min.js' | relative_url }}" onload="renderMathInElement(document.body);"></script>
32
45
  {% endif %}
33
46
 
34
- <!-- Mermaid 8.8.2 -->
47
+ <!-- Mermaid 8.9.2 -->
35
48
  {% if site.mermaid %}
36
- <!-- <script src=”https://cdnjs.cloudflare.com/ajax/libs/mermaid/8.8.2/mermaid.min.js" onload="mermaid.initialize({startOnLoad:true});"></script> -->
37
49
  <script defer src="{{ '/assets/js/vendor/mermaid.min.js' | relative_url }}" onload="mermaid.initialize({startOnLoad:true});"></script>
38
50
  {% endif %}
39
51
 
40
- <!-- Simple-Jekyll-Search 1.17.12 -->
52
+ <!-- Simple Jekyll Search 1.9.1 -->
41
53
  <script src="{{ '/assets/js/vendor/simple-jekyll-search.min.js' | relative_url }}" type="text/javascript"></script>
42
54
 
43
55
  <!-- Google Analytics / Cookie Consent -->
@@ -48,9 +60,9 @@
48
60
  </script>
49
61
 
50
62
  {% if site.cookie_consent %}
51
- <div id="cookie-notice"><span>{{ site.data.language.str_cookie_disclaimer | default: "We would like to use third party cookies and scripts to improve the functionality of this website." }}
63
+ <span id="cookie-notice"><span>{{ site.data.language.str_cookie_disclaimer | default: "We would like to use third party cookies and scripts to improve the functionality of this website." }}
52
64
  </span><a id="cookie-notice-accept" class="button">{{ site.data.language.str_cookie_approve | default: "Approve" }}</a>
53
- </div>
65
+ </span>
54
66
  {% endif %}
55
67
  {% if site.google_analytics %}
56
68
  <!-- Global site tag (gtag.js) -->