type-on-strap 2.2.6 → 2.3.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (178) hide show
  1. checksums.yaml +4 -4
  2. data/LICENSE +1 -1
  3. data/README.md +78 -18
  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} +36 -12
  11. data/_includes/{navbar.html → default/navbar.html} +9 -7
  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 +12 -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 +12 -7
  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 +22 -12
  25. data/_layouts/search.html +1 -4
  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 +109 -73
  31. data/_sass/external/_font-awesome.scss +17 -15
  32. data/_sass/external/_katex.scss +1030 -895
  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 +12 -20
  55. data/_sass/layouts/_page.scss +3 -2
  56. data/_sass/layouts/_posts.scss +30 -7
  57. data/_sass/layouts/_search.scss +11 -8
  58. data/_sass/layouts/_tags.scss +20 -7
  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/katex.min.js +1 -1
  141. data/assets/js/vendor/mermaid.min.js +32 -0
  142. data/assets/js/vendor/simple-jekyll-search.min.js +3 -3
  143. metadata +41 -44
  144. data/_includes/icons.html +0 -267
  145. data/_includes/post_info.html +0 -13
  146. data/_includes/share_buttons.html +0 -81
  147. data/_includes/tags_list.html +0 -23
  148. data/_sass/external/font-awesome/_path.scss +0 -16
  149. data/_sass/external/font-awesome/font-awesome.scss +0 -17
  150. data/assets/fonts/fontawesome/FontAwesome.otf +0 -0
  151. data/assets/fonts/fontawesome/fontawesome-webfont.eot +0 -0
  152. data/assets/fonts/fontawesome/fontawesome-webfont.svg +0 -2671
  153. data/assets/fonts/fontawesome/fontawesome-webfont.ttf +0 -0
  154. data/assets/fonts/fontawesome/fontawesome-webfont.woff +0 -0
  155. data/assets/fonts/fontawesome/fontawesome-webfont.woff2 +0 -0
  156. data/assets/fonts/katex/KaTeX_AMS-Regular.eot +0 -0
  157. data/assets/fonts/katex/KaTeX_Caligraphic-Bold.eot +0 -0
  158. data/assets/fonts/katex/KaTeX_Caligraphic-Regular.eot +0 -0
  159. data/assets/fonts/katex/KaTeX_Fraktur-Bold.eot +0 -0
  160. data/assets/fonts/katex/KaTeX_Fraktur-Regular.eot +0 -0
  161. data/assets/fonts/katex/KaTeX_Main-Bold.eot +0 -0
  162. data/assets/fonts/katex/KaTeX_Main-Italic.eot +0 -0
  163. data/assets/fonts/katex/KaTeX_Main-Regular.eot +0 -0
  164. data/assets/fonts/katex/KaTeX_Math-BoldItalic.eot +0 -0
  165. data/assets/fonts/katex/KaTeX_Math-Italic.eot +0 -0
  166. data/assets/fonts/katex/KaTeX_Math-Regular.eot +0 -0
  167. data/assets/fonts/katex/KaTeX_Math-Regular.ttf +0 -0
  168. data/assets/fonts/katex/KaTeX_Math-Regular.woff +0 -0
  169. data/assets/fonts/katex/KaTeX_Math-Regular.woff2 +0 -0
  170. data/assets/fonts/katex/KaTeX_SansSerif-Bold.eot +0 -0
  171. data/assets/fonts/katex/KaTeX_SansSerif-Italic.eot +0 -0
  172. data/assets/fonts/katex/KaTeX_SansSerif-Regular.eot +0 -0
  173. data/assets/fonts/katex/KaTeX_Script-Regular.eot +0 -0
  174. data/assets/fonts/katex/KaTeX_Size1-Regular.eot +0 -0
  175. data/assets/fonts/katex/KaTeX_Size2-Regular.eot +0 -0
  176. data/assets/fonts/katex/KaTeX_Size3-Regular.eot +0 -0
  177. data/assets/fonts/katex/KaTeX_Size4-Regular.eot +0 -0
  178. data/assets/fonts/katex/KaTeX_Typewriter-Regular.eot +0 -0
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a94f2cf0ce0c4dfd19bd34c6822d7665ed2ad66c8bf8b05f92319779b665f0be
4
- data.tar.gz: ea00d9fd6147a84ae0699cd53642c3fc4bf06a9962b196aea92b360ebcd6ba96
3
+ metadata.gz: 478babd84de11e9924830b336ad9741deec1e41d437c36747a53060c6c185a87
4
+ data.tar.gz: 5a2f74dcb75f627ce7542b34c1b7a76229d6189ec80ea7e3bd19a87d7db79727
5
5
  SHA512:
6
- metadata.gz: 35a632c2cc8f0c9f830d0e6ce94c77bf005e074579d393c7ef3976291e11468f03823ec30a85c069258fc176bd4ca419c85d2dd8d2005436e129aaa97d2230a6
7
- data.tar.gz: daa6fe964468be5e132d9864475bca5d95bc42453fa46d6a8a237e3e749c51aa717cfcedee4bdf7554e8c38a77aa16b63e4a8412901fb56a94d8dac8b6e591c8
6
+ metadata.gz: 459a18b0e0e372db95920cfa1dedcb6d835c54af709fd13d41a60648df05d952d9edc2a455edc4e6e3411f17b1a215b64bc92219eeb895285f66dc4909f7595c
7
+ data.tar.gz: '059f94bb911213c4ea06f7109ddf46e25358afd2a581250e27b9701cc416249a6ba114b7752a45230ffbbc7ed6279f2fe81077599d2114b8bfbb2fd77cb48675'
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,7 +4,7 @@
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
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:
10
10
 
@@ -14,10 +14,12 @@ A free and open-source [Jekyll](https://jekyllrb.com) theme. Based on Rohan Chan
14
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
+ * Diagram Rendering: [Mermaid-js](https://github.com/mermaid-js/mermaid)
17
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)
18
19
  * Seo Tags: [Jekyll-seo-tag](https://github.com/jekyll/jekyll-seo-tag)
19
20
  * 🛠 Syntax Highlighting: Easily customisable [Base16](https://github.com/chriskempson/base16)
20
- * 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/)
21
23
 
22
24
  > [Demo Site](https://sylhare.github.io/Type-on-Strap/)
23
25
 
@@ -43,7 +45,7 @@ Check out this tutorial: [Use as Ruby Gem](https://github.com/Sylhare/Type-on-St
43
45
  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.
44
46
  3. Install the theme's dependencies: `bundle install`
45
47
  4. Customize the theme
46
- - Github Page: [update `_config.yml`](https://github.com/Sylhare/Type-on-Strap#site-configuration)
48
+ - GitHub Page: [update `_config.yml`](https://github.com/Sylhare/Type-on-Strap#site-configuration)
47
49
  5. Run the Jekyll server: `bundle exec jekyll serve`
48
50
 
49
51
  ## Structure
@@ -86,7 +88,7 @@ If a variable in this document is marked as "optional", disable the feature by r
86
88
 
87
89
  ### Site configuration
88
90
 
89
- Configure Jekyll as your own blog or with a "baseurl" in in `_config.yml`:
91
+ Configure Jekyll as your own blog or with a "baseurl" in `_config.yml`:
90
92
 
91
93
  Jekyll website *without* a "baseurl" (such as a GitHub Pages website for a given username):
92
94
 
@@ -116,8 +118,13 @@ title: My Jekyll Blog # Name of website
116
118
  avatar: assets/img/triangle.png # Path of avatar image, to be displayed in the theme's header
117
119
  description: My blog posts # Short description, primarily used by search engines
118
120
  favicon: assets/favicon.ico # Icon displayed in the tab
121
+ color_theme: auto # color theme auto, dark or light
119
122
  ```
120
123
 
124
+ 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/).
125
+ The color theme can be set to dark or light (customize it in _variables.scss_).
126
+ Using _auto_ you'll have a tiny icon in the navbar allowing the use to manually switch from dark to light theme.
127
+
121
128
  ### Theme customization 🎨
122
129
 
123
130
  #### Footer and Header's text
@@ -137,7 +144,7 @@ If you don't want anything, replace the value by `" "`.
137
144
  Localization string is a way to quickly change the template language for text like *Next Post* or *Follow on*, ...
138
145
  You can find all the properties in `_data/language.yml`.
139
146
 
140
- By default it is in english, but you can easily add your own language.
147
+ By default, it is in english, but you can easily add your own language.
141
148
 
142
149
  ### Google Analytics
143
150
 
@@ -148,7 +155,9 @@ to `_config.yml` like so:
148
155
  google_analytics: UA-NNNNNNNN-N
149
156
  ```
150
157
 
151
- ### Comments (via Disqus)
158
+ ### Comments
159
+
160
+ #### Disqus
152
161
 
153
162
  Optionally, if you have a [Disqus](https://disqus.com/) account, you can show a
154
163
  comments section below each post.
@@ -160,12 +169,23 @@ to your project's `_config.yml` file:
160
169
  disqus_shortname: my_disqus_shortname
161
170
  ```
162
171
 
163
- ### Math typesetting
172
+ #### Cusdis
173
+
174
+ [Cusdis](https://cusdis.com/) is an open source alternative to Disqus.
175
+ You can read more about it in the [documentation](https://cusdis.com/doc#/)
176
+
177
+ To enable it, set your cusdis name in `_config.yml`:
178
+
179
+ ```yaml
180
+ cusdis_app_id: my_data-app-id
181
+ ```
182
+
183
+ ### Math typesetting with KateX
164
184
 
165
185
  When KateX is set in `_config.yml`:
166
186
 
167
187
  ```yml
168
- katex: true # to Enable it
188
+ katex: true # to enable it
169
189
  ```
170
190
 
171
191
  You can then wrap math expressions with `$$` signs in your posts and make sure you have set the `katex` variable
@@ -185,6 +205,29 @@ $$
185
205
  $$
186
206
  ```
187
207
 
208
+ You can find a cheat sheet of the compatible LaTex symbols [online](https://artofproblemsolving.com/wiki/index.php/LaTeX:Symbols).
209
+
210
+ ### Diagrams with Mermaid
211
+
212
+ Enable the [mermaid-js](https://github.com/mermaid-js/mermaid) diagram rendering by setting mermaid to true in the `_config.yml`.
213
+ This will load and init the [mermaid.min.js](https://mermaid-js.github.io/mermaid/getting-started/n00b-gettingStarted.html#4-calling-mermaid-from-a-relative-link).
214
+
215
+ ```yml
216
+ mermaid: true # to Enable it
217
+ ```
218
+
219
+ Find all the help you need on the official [mermaid documentation](https://mermaid-js.github.io/mermaid/).
220
+ You can create with ease diagrams. Add your mermaid script inside two mermaid divs (default Kramdown does not yet support mermaid).
221
+ With the `class="mermaid"` inside the `<div>`:
222
+
223
+ ```html
224
+ <div class="mermaid">
225
+ sequenceDiagram
226
+ Alice->>John: Hello John, how are you?
227
+ John-->>Alice: Great!
228
+ </div>
229
+ ```
230
+
188
231
  ### Social icons
189
232
 
190
233
  In `_data/social.yml` you can customize the social icons from other wbesite you wish to display in the blog.
@@ -228,7 +271,7 @@ Please refer to the [Jekyll docs for writing posts](https://jekyllrb.com/docs/po
228
271
 
229
272
  #### Layout: Post
230
273
 
231
- This are the basic features you can use with the `post` layout.
274
+ These are the basic features you can use with the `post` layout.
232
275
 
233
276
  ```yml
234
277
 
@@ -237,7 +280,7 @@ layout: post
237
280
  title: Hello World # Title of the page
238
281
  hide_title: true # Hide the title when displaying the post, but shown in lists of posts
239
282
  feature-img: "assets/img/sample.png" # Add a feature-image to the post
240
- thumbnail: "assets/thumbnails/sample-th.png" # Add a thumbnail image on blog view
283
+ thumbnail: "assets/img/thumbnails/sample-th.png" # Add a thumbnail image on blog view
241
284
  color: rgb(80,140,22) # Add the specified color as feature image, and change link colors in post
242
285
  bootstrap: true # Add bootstrap to the page
243
286
  tags: [sample, markdown, html]
@@ -279,7 +322,7 @@ some text in the excerpt
279
322
  ... rest of the text not shown in the excerpt ...
280
323
  ```
281
324
 
282
- The html is stripped out of the excerpt so it only display text.
325
+ The html is stripped out of the excerpt, so it only displays text.
283
326
 
284
327
  #### Image aligner
285
328
 
@@ -289,8 +332,8 @@ To easily add align images side by side in your article using the `aligner.html`
289
332
  {% include aligner.html images="path/to/img1.png,path/to/img2.png,path/to/img3.png" column=3 %}
290
333
  ```
291
334
 
292
- Use it in any markdown file. There are two fields in the include you need to look into:
293
- - _images_: Takes a string separated with `,` of all the images path.
335
+ Use it in any markdown file. There are two fields in the _include_ you need to look into:
336
+ - _images_: Takes a string separated with `,` of all the images' path.
294
337
  - It by default look into `assets/img/` so give the path from there.
295
338
  - _column_: (OPTIONAL) Set the number of column you want your imaged displayed in.
296
339
  - default is 2 columns
@@ -360,7 +403,7 @@ layout: page
360
403
  title : Portfolio
361
404
  ---
362
405
 
363
- {% include portfolio.html %}
406
+ {% include default/portfolio.html %}
364
407
  ```
365
408
 
366
409
  #### Portfolio posts
@@ -409,7 +452,7 @@ title: Gallery
409
452
  gallery: "assets/img/pexels"
410
453
  ---
411
454
 
412
- {% include gallery.html gallery_path=page.gallery %}
455
+ {% include default/gallery.html gallery_path=page.gallery %}
413
456
  ```
414
457
 
415
458
 
@@ -465,7 +508,9 @@ Jekyll works with [liquid](https://shopify.github.io/liquid/) tags usually repre
465
508
  These are useful to render your jekyll files.
466
509
  You can learn more about them on [shopify's doc](https://help.shopify.com/themes/liquid/basics)
467
510
 
468
- ### Minimizing and optimizing: css, js and images
511
+ ### Gulp toolbox
512
+
513
+ #### Requirements
469
514
 
470
515
  Before you need to have *node* and `npm` installed:
471
516
 
@@ -481,18 +526,33 @@ sudo npm install gulp-cli -g
481
526
  npm install
482
527
  ```
483
528
 
529
+ #### Minimizing and optimizing: css, js and images
530
+
484
531
  You can run the default task that will compress the js, css and images and create the thumbnails for the supported image
485
532
  formats:
486
533
 
487
534
  ```bash
488
535
  cd assets/
489
536
  gulp default
490
- gulp thumbnails # to create all of the images thumbnails
537
+ gulp thumbnails-all # to create all of the images thumbnails
538
+ gulp thumbnails # to create thumbnails for the feature-img/ only
491
539
  # tip: run a git status to see the changes
492
540
  git status
493
541
  ```
494
542
 
495
- You can find more about the gulp tasks in the [gulpfile.js](assets/gulpfile.js)
543
+ You can find more about the gulp tasks in the [gulpfile.js](assets/gulpfile.js).
544
+
545
+ #### Create a post
546
+
547
+ To create a `.md` file in the *_posts/* section with the jekyll format of today's date.
548
+ Use this command with the title you'd like to create the very basic post.
549
+
550
+ ```bash
551
+ gulp post -n 'title of the post'
552
+ ```
553
+
554
+ A file will be create following the format `yyyy-mm-dd-title-of-the-post.md` with default post attributes inside.
555
+ Nothing will happen if the file exists already.
496
556
 
497
557
  ### Use as Ruby Gem 💎
498
558
 
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>
@@ -11,12 +24,9 @@
11
24
  <!--Favicon-->
12
25
  <link rel="shortcut icon" href="{{ site.favicon | relative_url }}" type="image/x-icon">
13
26
 
14
- <!-- Canonical -->
15
- <link rel="canonical" href="{{ page.url | replace:'index.html','' | absolute_url }}">
16
-
17
27
  <!-- RSS -->
18
- <link rel="alternate" type="application/atom+xml" title="{{ site.title }}" href="{{ 'feed.xml' | absolute_url }}"/>
19
-
28
+ <link rel="alternate" type="application/atom+xml" title="{{ site.title | default: 'Title' }}" href="{{ 'feed.xml' | absolute_url }}"/>
29
+
20
30
  {% if page.bootstrap %}
21
31
  <!-- Bootstrap-4.1.3 isolation CSS -->
22
32
  <link rel="stylesheet" type="text/css" href="{{ '/assets/css/vendor/bootstrap-iso.min.css' | relative_url }}">
@@ -29,12 +39,19 @@
29
39
  {% endif %}
30
40
 
31
41
  <!-- KaTeX 0.12.0 -->
32
- <!-- if you have any issue check https://github.com/KaTeX/KaTeX -->
33
42
  {% if site.katex or site.theme_settings.katex %}
34
43
  <script defer src="{{ '/assets/js/vendor/katex.min.js' | relative_url }}"></script>
35
44
  <script defer src="{{ '/assets/js/vendor/auto-render.min.js' | relative_url }}" onload="renderMathInElement(document.body);"></script>
36
45
  {% endif %}
37
46
 
47
+ <!-- Mermaid 8.9.2 -->
48
+ {% if site.mermaid %}
49
+ <script defer src="{{ '/assets/js/vendor/mermaid.min.js' | relative_url }}" onload="mermaid.initialize({startOnLoad:true});"></script>
50
+ {% endif %}
51
+
52
+ <!-- Simple Jekyll Search 1.9.1 -->
53
+ <script src="{{ '/assets/js/vendor/simple-jekyll-search.min.js' | relative_url }}" type="text/javascript"></script>
54
+
38
55
  <!-- Google Analytics / Cookie Consent -->
39
56
  <script>
40
57
  const cookieName = 'cookie-notice-dismissed-{{ site.url }}';
@@ -43,9 +60,9 @@
43
60
  </script>
44
61
 
45
62
  {% if site.cookie_consent %}
46
- <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." }}
47
64
  </span><a id="cookie-notice-accept" class="button">{{ site.data.language.str_cookie_approve | default: "Approve" }}</a>
48
- </div>
65
+ </span>
49
66
  {% endif %}
50
67
  {% if site.google_analytics %}
51
68
  <!-- Global site tag (gtag.js) -->
@@ -56,15 +73,22 @@
56
73
 
57
74
  <!-- seo tags -->
58
75
  <meta property="og:image" content="{{ '/' | absolute_url }}{% if page.thumbnail %}{{ page.thumbnail }}{% else %}{{ page.feature-img | default: site.header_feature_image }}{% endif %}">
76
+ {% unless page.layout == post %}
77
+ <meta property="og:type" content="website" />
78
+ {% endunless %}
59
79
  {% seo %}
60
80
 
61
81
  <!-- RSS -->
62
82
  {% feed_meta %}
63
83
 
64
84
  <!-- Twitter Cards -->
65
- <meta name="twitter:title" content="{% if page.title %}{{ page.title }}{% else %}{{ site.theme_settings.title }}{% endif %}">
66
- <meta name="twitter:description" content="{{ page.content | strip_html | strip_newlines | truncate: 160 }}">
67
- {% if site.theme_settings.twitter %}<meta name="twitter:creator" content="@{{ site.theme_settings.twitter }}">{% endif %}
85
+ <meta name="twitter:title" content="{{ page.title | default: site.title }}">
86
+ <meta name="twitter:description" content="{{ page.content | strip_html | strip_newlines | truncate: 160 | default: site.header_text}}">
87
+ {% if site.data.social.twitter %}
88
+ <meta name="twitter:creator" content="@{{ site.data.social.twitter }}">
89
+ <meta name="twitter:site" content="@{{ site.data.social.twitter }}">
90
+ {% endif %}
68
91
  <meta name="twitter:card" content="{% unless page.thumbnail %}summary{% else %}summary_large_image{% endunless %}">
69
92
  <meta name="twitter:image" content="{{ '/' | absolute_url }}{% if page.thumbnail %}{{ page.thumbnail }}{% else %}{{ page.feature-img | default: site.header_feature_image }}{% endif %}">
93
+ <meta name="twitter:image:alt" content="{{ page.title | default: site.title }}">
70
94
  </head>
@@ -7,18 +7,15 @@
7
7
  <img alt="logo img" class="avatar" src="{{ site.avatar | relative_url }}" />
8
8
  </a>
9
9
  {% endif %}
10
-
11
- <h1 class="site-title">
12
- <a aria-label="{{ site.title }}" href="{{ '/' | relative_url }}">
10
+ <a class="site-title" aria-label="{{ site.title }}" href="{{ '/' | relative_url }}">
13
11
  {{ site.title }}
14
- </a>
15
- </h1>
12
+ </a>
16
13
  </div>
17
14
 
18
15
  <!-- Toggle menu -->
19
16
  <nav class="clear">
20
17
  <a aria-label="pull" id="pull" class="toggle" href="#">
21
- <i class="fa fa-bars fa-lg"></i>
18
+ <i class="fas fa-bars fa-lg"></i>
22
19
  </a>
23
20
 
24
21
  <!-- Menu -->
@@ -30,13 +27,18 @@
30
27
  <li class="separator"> | </li>
31
28
  <li>
32
29
  <a class="clear" aria-label="{{ page.title }}" title="{{ page.title }}" href="{{ page.url | relative_url }}">
33
- {% if page.icon %} <i class="fa {{ page.icon }}" aria-hidden="true"></i>
30
+ {% if page.icon %} <i class="fas {{ page.icon }}" aria-hidden="true"></i>
34
31
  {% else %} {{ page.title }} {% endif%}
35
32
  </a>
36
33
  </li>
37
34
  {% endunless %}
38
35
  {% assign name_page = page.title | append: name_page %}
39
36
  {% endfor %}
37
+
38
+ {% if site.color_theme == 'auto' %}
39
+ <li class="separator"> | </li>
40
+ <li><a id="theme-toggle" title="{{ page.title }} "aria-label="{{ page.title }}" onclick="themeToggle()"></a></li>
41
+ {% endif %}
40
42
  </ul>
41
43
 
42
44
  </nav>