type-on-strap 2.2.4 → 2.3.3

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 (163) hide show
  1. checksums.yaml +4 -4
  2. data/LICENSE +1 -1
  3. data/README.md +121 -60
  4. data/_data/language.yml +5 -0
  5. data/_includes/blog_nav.html +4 -4
  6. data/_includes/head.html +43 -25
  7. data/_includes/icons.html +47 -47
  8. data/_includes/navbar.html +4 -7
  9. data/_includes/portfolio.html +1 -2
  10. data/_includes/post_info.html +5 -3
  11. data/_includes/share_buttons.html +9 -9
  12. data/_includes/tags_list.html +2 -2
  13. data/_layouts/default.html +2 -2
  14. data/_layouts/post.html +14 -7
  15. data/_layouts/search.html +3 -6
  16. data/_layouts/tags.html +61 -68
  17. data/_sass/base/_global.scss +1 -5
  18. data/_sass/{external/_syntax.scss → base/_highlight.scss} +7 -3
  19. data/_sass/base/_utility.scss +5 -1
  20. data/_sass/base/_variables.scss +4 -4
  21. data/_sass/external/_font-awesome.scss +17 -15
  22. data/_sass/external/_katex.scss +1030 -895
  23. data/_sass/external/font-awesome/_animated.scss +6 -20
  24. data/_sass/external/font-awesome/_bordered-pulled.scss +6 -11
  25. data/_sass/external/font-awesome/_brands.scss +23 -0
  26. data/_sass/external/font-awesome/_core.scss +15 -6
  27. data/_sass/external/font-awesome/_fixed-width.scss +1 -1
  28. data/_sass/external/font-awesome/_icons.scss +1460 -787
  29. data/_sass/external/font-awesome/_larger.scss +16 -6
  30. data/_sass/external/font-awesome/_list.scss +7 -8
  31. data/_sass/external/font-awesome/_mixins.scss +16 -20
  32. data/_sass/external/font-awesome/_regular.scss +23 -0
  33. data/_sass/external/font-awesome/_rotated-flipped.scss +10 -6
  34. data/_sass/external/font-awesome/_screen-reader.scss +2 -2
  35. data/_sass/external/font-awesome/_shims.scss +2066 -0
  36. data/_sass/external/font-awesome/_solid.scss +24 -0
  37. data/_sass/external/font-awesome/_stacked.scss +19 -8
  38. data/_sass/external/font-awesome/_variables.scss +1474 -795
  39. data/_sass/external/font-awesome/v4-shims.scss +6 -0
  40. data/_sass/includes/_navbar.scss +27 -28
  41. data/_sass/layouts/_blog.scss +4 -15
  42. data/_sass/layouts/_page.scss +2 -1
  43. data/_sass/layouts/_posts.scss +5 -1
  44. data/_sass/layouts/_tags.scss +4 -0
  45. data/_sass/type-on-strap.scss +9 -9
  46. data/assets/data/search.json +2 -2
  47. data/assets/fonts/font-awesome/fa-brands-400.eot +0 -0
  48. data/assets/fonts/font-awesome/fa-brands-400.svg +3717 -0
  49. data/assets/fonts/font-awesome/fa-brands-400.ttf +0 -0
  50. data/assets/fonts/font-awesome/fa-brands-400.woff +0 -0
  51. data/assets/fonts/font-awesome/fa-brands-400.woff2 +0 -0
  52. data/assets/fonts/font-awesome/fa-regular-400.eot +0 -0
  53. data/assets/fonts/font-awesome/fa-regular-400.svg +801 -0
  54. data/assets/fonts/font-awesome/fa-regular-400.ttf +0 -0
  55. data/assets/fonts/font-awesome/fa-regular-400.woff +0 -0
  56. data/assets/fonts/font-awesome/fa-regular-400.woff2 +0 -0
  57. data/assets/fonts/font-awesome/fa-solid-900.eot +0 -0
  58. data/assets/fonts/font-awesome/fa-solid-900.svg +5028 -0
  59. data/assets/fonts/font-awesome/fa-solid-900.ttf +0 -0
  60. data/assets/fonts/font-awesome/fa-solid-900.woff +0 -0
  61. data/assets/fonts/font-awesome/fa-solid-900.woff2 +0 -0
  62. data/assets/fonts/katex/KaTeX_AMS-Regular.ttf +0 -0
  63. data/assets/fonts/katex/KaTeX_AMS-Regular.woff +0 -0
  64. data/assets/fonts/katex/KaTeX_AMS-Regular.woff2 +0 -0
  65. data/assets/fonts/katex/KaTeX_Caligraphic-Bold.ttf +0 -0
  66. data/assets/fonts/katex/KaTeX_Caligraphic-Bold.woff +0 -0
  67. data/assets/fonts/katex/KaTeX_Caligraphic-Bold.woff2 +0 -0
  68. data/assets/fonts/katex/KaTeX_Caligraphic-Regular.ttf +0 -0
  69. data/assets/fonts/katex/KaTeX_Caligraphic-Regular.woff +0 -0
  70. data/assets/fonts/katex/KaTeX_Caligraphic-Regular.woff2 +0 -0
  71. data/assets/fonts/katex/KaTeX_Fraktur-Bold.ttf +0 -0
  72. data/assets/fonts/katex/KaTeX_Fraktur-Bold.woff +0 -0
  73. data/assets/fonts/katex/KaTeX_Fraktur-Bold.woff2 +0 -0
  74. data/assets/fonts/katex/KaTeX_Fraktur-Regular.ttf +0 -0
  75. data/assets/fonts/katex/KaTeX_Fraktur-Regular.woff +0 -0
  76. data/assets/fonts/katex/KaTeX_Fraktur-Regular.woff2 +0 -0
  77. data/assets/fonts/katex/KaTeX_Main-Bold.ttf +0 -0
  78. data/assets/fonts/katex/KaTeX_Main-Bold.woff +0 -0
  79. data/assets/fonts/katex/KaTeX_Main-Bold.woff2 +0 -0
  80. data/assets/fonts/katex/KaTeX_Main-BoldItalic.ttf +0 -0
  81. data/assets/fonts/katex/KaTeX_Main-BoldItalic.woff +0 -0
  82. data/assets/fonts/katex/KaTeX_Main-BoldItalic.woff2 +0 -0
  83. data/assets/fonts/katex/KaTeX_Main-Italic.ttf +0 -0
  84. data/assets/fonts/katex/KaTeX_Main-Italic.woff +0 -0
  85. data/assets/fonts/katex/KaTeX_Main-Italic.woff2 +0 -0
  86. data/assets/fonts/katex/KaTeX_Main-Regular.ttf +0 -0
  87. data/assets/fonts/katex/KaTeX_Main-Regular.woff +0 -0
  88. data/assets/fonts/katex/KaTeX_Main-Regular.woff2 +0 -0
  89. data/assets/fonts/katex/KaTeX_Math-BoldItalic.ttf +0 -0
  90. data/assets/fonts/katex/KaTeX_Math-BoldItalic.woff +0 -0
  91. data/assets/fonts/katex/KaTeX_Math-BoldItalic.woff2 +0 -0
  92. data/assets/fonts/katex/KaTeX_Math-Italic.ttf +0 -0
  93. data/assets/fonts/katex/KaTeX_Math-Italic.woff +0 -0
  94. data/assets/fonts/katex/KaTeX_Math-Italic.woff2 +0 -0
  95. data/assets/fonts/katex/KaTeX_SansSerif-Bold.ttf +0 -0
  96. data/assets/fonts/katex/KaTeX_SansSerif-Bold.woff +0 -0
  97. data/assets/fonts/katex/KaTeX_SansSerif-Bold.woff2 +0 -0
  98. data/assets/fonts/katex/KaTeX_SansSerif-Italic.ttf +0 -0
  99. data/assets/fonts/katex/KaTeX_SansSerif-Italic.woff +0 -0
  100. data/assets/fonts/katex/KaTeX_SansSerif-Italic.woff2 +0 -0
  101. data/assets/fonts/katex/KaTeX_SansSerif-Regular.ttf +0 -0
  102. data/assets/fonts/katex/KaTeX_SansSerif-Regular.woff +0 -0
  103. data/assets/fonts/katex/KaTeX_SansSerif-Regular.woff2 +0 -0
  104. data/assets/fonts/katex/KaTeX_Script-Regular.ttf +0 -0
  105. data/assets/fonts/katex/KaTeX_Script-Regular.woff +0 -0
  106. data/assets/fonts/katex/KaTeX_Script-Regular.woff2 +0 -0
  107. data/assets/fonts/katex/KaTeX_Size1-Regular.ttf +0 -0
  108. data/assets/fonts/katex/KaTeX_Size1-Regular.woff +0 -0
  109. data/assets/fonts/katex/KaTeX_Size1-Regular.woff2 +0 -0
  110. data/assets/fonts/katex/KaTeX_Size2-Regular.ttf +0 -0
  111. data/assets/fonts/katex/KaTeX_Size2-Regular.woff +0 -0
  112. data/assets/fonts/katex/KaTeX_Size2-Regular.woff2 +0 -0
  113. data/assets/fonts/katex/KaTeX_Size3-Regular.ttf +0 -0
  114. data/assets/fonts/katex/KaTeX_Size3-Regular.woff +0 -0
  115. data/assets/fonts/katex/KaTeX_Size3-Regular.woff2 +0 -0
  116. data/assets/fonts/katex/KaTeX_Size4-Regular.ttf +0 -0
  117. data/assets/fonts/katex/KaTeX_Size4-Regular.woff +0 -0
  118. data/assets/fonts/katex/KaTeX_Size4-Regular.woff2 +0 -0
  119. data/assets/fonts/katex/KaTeX_Typewriter-Regular.ttf +0 -0
  120. data/assets/fonts/katex/KaTeX_Typewriter-Regular.woff +0 -0
  121. data/assets/fonts/katex/KaTeX_Typewriter-Regular.woff2 +0 -0
  122. data/assets/js/main.min.js +1 -1
  123. data/assets/js/partials/cookie_consent_init.js +57 -0
  124. data/assets/js/partials/navbar.js +1 -1
  125. data/assets/js/vendor/auto-render.min.js +1 -0
  126. data/assets/js/vendor/katex.min.js +1 -1
  127. data/assets/js/vendor/mermaid.min.js +32 -0
  128. data/assets/js/vendor/mermaid.min.js.map +1 -0
  129. data/assets/js/vendor/simple-jekyll-search.min.js +2 -2
  130. metadata +33 -48
  131. data/_includes/cookie-consent.html +0 -51
  132. data/_sass/external/font-awesome/_path.scss +0 -16
  133. data/_sass/external/font-awesome/font-awesome.scss +0 -17
  134. data/assets/fonts/fontawesome/FontAwesome.otf +0 -0
  135. data/assets/fonts/fontawesome/fontawesome-webfont.eot +0 -0
  136. data/assets/fonts/fontawesome/fontawesome-webfont.svg +0 -2671
  137. data/assets/fonts/fontawesome/fontawesome-webfont.ttf +0 -0
  138. data/assets/fonts/fontawesome/fontawesome-webfont.woff +0 -0
  139. data/assets/fonts/fontawesome/fontawesome-webfont.woff2 +0 -0
  140. data/assets/fonts/katex/KaTeX_AMS-Regular.eot +0 -0
  141. data/assets/fonts/katex/KaTeX_Caligraphic-Bold.eot +0 -0
  142. data/assets/fonts/katex/KaTeX_Caligraphic-Regular.eot +0 -0
  143. data/assets/fonts/katex/KaTeX_Fraktur-Bold.eot +0 -0
  144. data/assets/fonts/katex/KaTeX_Fraktur-Regular.eot +0 -0
  145. data/assets/fonts/katex/KaTeX_Main-Bold.eot +0 -0
  146. data/assets/fonts/katex/KaTeX_Main-Italic.eot +0 -0
  147. data/assets/fonts/katex/KaTeX_Main-Regular.eot +0 -0
  148. data/assets/fonts/katex/KaTeX_Math-BoldItalic.eot +0 -0
  149. data/assets/fonts/katex/KaTeX_Math-Italic.eot +0 -0
  150. data/assets/fonts/katex/KaTeX_Math-Regular.eot +0 -0
  151. data/assets/fonts/katex/KaTeX_Math-Regular.ttf +0 -0
  152. data/assets/fonts/katex/KaTeX_Math-Regular.woff +0 -0
  153. data/assets/fonts/katex/KaTeX_Math-Regular.woff2 +0 -0
  154. data/assets/fonts/katex/KaTeX_SansSerif-Bold.eot +0 -0
  155. data/assets/fonts/katex/KaTeX_SansSerif-Italic.eot +0 -0
  156. data/assets/fonts/katex/KaTeX_SansSerif-Regular.eot +0 -0
  157. data/assets/fonts/katex/KaTeX_Script-Regular.eot +0 -0
  158. data/assets/fonts/katex/KaTeX_Size1-Regular.eot +0 -0
  159. data/assets/fonts/katex/KaTeX_Size2-Regular.eot +0 -0
  160. data/assets/fonts/katex/KaTeX_Size3-Regular.eot +0 -0
  161. data/assets/fonts/katex/KaTeX_Size4-Regular.eot +0 -0
  162. data/assets/fonts/katex/KaTeX_Typewriter-Regular.eot +0 -0
  163. data/assets/js/partials/katex_init.js +0 -28
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 64e23af743852732351b47a317581898a46eb51166c89d34d269ec28f0705208
4
- data.tar.gz: fcc2886a0faa1321a78607e86eb75c7dfda7b9920a06aa50c438f0b1303ee8f0
3
+ metadata.gz: fc25d3b4bece8a59b95f8f0d121c6017ef7b3928383d2f44cfeb6d32e80cc467
4
+ data.tar.gz: 5ac573f6d768d1e7df80f87a0d31c1be666066d1cac026d00de96119f60b4c7d
5
5
  SHA512:
6
- metadata.gz: 651b591231960d11c4a15885ea219bf81033a7c8612ce35be0bbacf92ed3ed930867fe42de05c8e3b1a730cfe1cda57a5b0b34c421c689793a4c44a81c9ec193
7
- data.tar.gz: add83657f5553e3789477ae2947c6a3fb6ea8de67b84147401dffd61ea42541131479eb6c9af6d7d0d022cb62abe5b88a5fa568f1e045d6bd70e2bca9564e854
6
+ metadata.gz: f186834f19b0b5df27a7168d448b7a8befd8d96a510e4f5bc39ca2d0c6aec711c0555850fd85f444744bc22b3a9714716ac28610b9fcb05a6dfad79f0935f30f
7
+ data.tar.gz: 159476abdd898fc35c8ef32cef82d0d90a639fe1959c6f3fba53e72cf7109d9a8f479165c03b75c2b4dec87b0bc21d03d0014f0037cd5a6dd6c6036713bf80c5
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
@@ -1,25 +1,26 @@
1
- # Type on Strap
1
+ # Type on Strap 🎨
2
2
 
3
3
  [![Build Status](https://travis-ci.org/sylhare/Type-on-Strap.svg?branch=master)](https://travis-ci.org/sylhare/Type-on-Strap)
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
- A free and open-source [Jekyll](https://jekyllrb.com) theme. Based on Rohan Chandra [type-theme](https://github.com/rohanchandra/type-theme) with a few new features:
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/)
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:
8
10
 
9
- * Responsive design
10
- * Portfolio page for your projects
11
- * Tags compatibility
12
- * Bootstrap : [Get Bootstrap](http://getbootstrap.com/)
13
- * Search feature : [Simple-Jekyll-Search](https://github.com/christian-fei/Simple-Jekyll-Search)
11
+ * Responsive design on all devices (🖥, 💻, 📱, ...)
12
+ * Portfolio 🗂, Gallery 🖼 pages for your projects
13
+ * Tags compatibility 🏷
14
+ * Handle Bootstrap'ed pages: [Get Bootstrap](http://getbootstrap.com/)
15
+ * 🔎 Search feature: [Simple-Jekyll-Search](https://github.com/christian-fei/Simple-Jekyll-Search)
14
16
  * Math Rendering : [KateX](https://github.com/Khan/KaTeX)
15
- * 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)
16
- * Seo Tags : [Jekyll-seo-tag](https://github.com/jekyll/jekyll-seo-tag)
17
- * Syntax Highlighting: Easily customisable [Base16](https://github.com/chriskempson/base16)
18
- * Free of rights images from [pexels](https://www.pexels.com/)
17
+ * Diagram Rendering: [Mermaid-js](https://github.com/mermaid-js/mermaid)
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
+ * Seo Tags: [Jekyll-seo-tag](https://github.com/jekyll/jekyll-seo-tag)
20
+ * 🛠 Syntax Highlighting: Easily customisable [Base16](https://github.com/chriskempson/base16)
21
+ * Find free of rights images on [pexels](https://www.pexels.com/)
19
22
 
20
23
  > [Demo Site](https://sylhare.github.io/Type-on-Strap/)
21
-
22
- [![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/)
23
24
 
24
25
  ## Table of Contents
25
26
 
@@ -33,11 +34,11 @@ A free and open-source [Jekyll](https://jekyllrb.com) theme. Based on Rohan Chan
33
34
 
34
35
  ## Usage
35
36
 
36
- ### As a ruby gem
37
+ ### As a ruby gem 💎
37
38
 
38
39
  Check out this tutorial: [Use as Ruby Gem](https://github.com/Sylhare/Type-on-Strap#use-as-ruby-gem)
39
40
 
40
- ### As a github page
41
+ ### As a github page 📋
41
42
 
42
43
  1. Fork and clone the [Type on Strap repo](https://github.com/sylhare/Type-On-Strap): `git clone https://github.com/Sylhare/Type-on-Strap.git`
43
44
  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.
@@ -77,7 +78,7 @@ Type-on-Strap
77
78
  └── index.html # sample home page (blog page paginated)
78
79
  ```
79
80
 
80
- ## Configure Type on Strap
81
+ ## Configure Type on Strap 🛠
81
82
 
82
83
  Open `_config.yml` in a text editor to change most of the blog's settings.
83
84
 
@@ -85,16 +86,17 @@ If a variable in this document is marked as "optional", disable the feature by r
85
86
 
86
87
 
87
88
  ### Site configuration
88
- Configure Jekyll as your own blog or with a subpath in in `_config.yml`:
89
89
 
90
- Jekyll website *without* a subpath (such as a GitHub Pages website for a given username):
90
+ Configure Jekyll as your own blog or with a "baseurl" in in `_config.yml`:
91
+
92
+ Jekyll website *without* a "baseurl" (such as a GitHub Pages website for a given username):
91
93
 
92
94
  ```yml
93
95
  baseurl: ""
94
96
  url: "https://username.github.io"
95
97
  ```
96
98
 
97
- Jekyll website *with* subpath (like the Type on Strap [demo](https://sylhare.github.io/Type-on-Strap/) page):
99
+ Jekyll website *with* "baseurl" (like the Type on Strap [demo](https://sylhare.github.io/Type-on-Strap/) page):
98
100
 
99
101
  ```yml
100
102
  baseurl: "/sub-directory"
@@ -117,7 +119,9 @@ description: My blog posts # Short description, primarily used by sea
117
119
  favicon: assets/favicon.ico # Icon displayed in the tab
118
120
  ```
119
121
 
120
- ### Main configuration
122
+ 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/).
123
+
124
+ ### Theme customization 🎨
121
125
 
122
126
  #### Footer and Header's text
123
127
 
@@ -159,7 +163,7 @@ to your project's `_config.yml` file:
159
163
  disqus_shortname: my_disqus_shortname
160
164
  ```
161
165
 
162
- ### Math typesetting
166
+ ### Math typesetting with KateX
163
167
 
164
168
  When KateX is set in `_config.yml`:
165
169
 
@@ -184,6 +188,29 @@ $$
184
188
  $$
185
189
  ```
186
190
 
191
+ You can find a cheat sheet of the compatible LaTex symbols [online](https://artofproblemsolving.com/wiki/index.php/LaTeX:Symbols).
192
+
193
+ ### Diagrams with Mermaid
194
+
195
+ Enable the [mermaid-js](https://github.com/mermaid-js/mermaid) diagram rendering by setting mermaid to true in the `_config.yml`.
196
+ 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).
197
+
198
+ ```yml
199
+ mermaid: true # to Enable it
200
+ ```
201
+
202
+ Find all the help you need on the official [mermaid documentation](https://mermaid-js.github.io/mermaid/).
203
+ You can create with ease diagrams. Add your mermaid script inside two mermaid divs (default Kramdown does not yet support mermaid).
204
+ With the `class="mermaid"` inside the `<div>`:
205
+
206
+ ```html
207
+ <div class="mermaid">
208
+ sequenceDiagram
209
+ Alice->>John: Hello John, how are you?
210
+ John-->>Alice: Great!
211
+ </div>
212
+ ```
213
+
187
214
  ### Social icons
188
215
 
189
216
  In `_data/social.yml` you can customize the social icons from other wbesite you wish to display in the blog.
@@ -217,23 +244,26 @@ youtube: UCqECaJ8Gagnn7YCbPEzWH6g # Youtube token of your channel in the url
217
244
 
218
245
  You can update the RSS settings in `_data/social` to change the default feed path (generated by [jekyll-feel](https://github.com/jekyll/jekyll-feed)).
219
246
 
220
- ### Customizing Posts
247
+ ### Personalize your Blog Posts 📝
221
248
 
222
249
  When writing a post, be sure in jekyll to:
223
250
  - Put it in the `_posts` folder
224
251
  - Name it with the date first like `2019-08-21-This-is-my-blog-post.md`
225
252
 
253
+ Please refer to the [Jekyll docs for writing posts](https://jekyllrb.com/docs/posts/).
254
+
226
255
  #### Layout: Post
227
256
 
228
257
  This are the basic features you can use with the `post` layout.
229
258
 
230
259
  ```yml
260
+
231
261
  ---
232
262
  layout: post
233
263
  title: Hello World # Title of the page
234
264
  hide_title: true # Hide the title when displaying the post, but shown in lists of posts
235
265
  feature-img: "assets/img/sample.png" # Add a feature-image to the post
236
- thumbnail: "assets/img/thumbnail/sample-th.png" # Add a thumbnail image on blog view
266
+ thumbnail: "assets/img/thumbnails/sample-th.png" # Add a thumbnail image on blog view
237
267
  color: rgb(80,140,22) # Add the specified color as feature image, and change link colors in post
238
268
  bootstrap: true # Add bootstrap to the page
239
269
  tags: [sample, markdown, html]
@@ -241,7 +271,7 @@ tags: [sample, markdown, html]
241
271
  ```
242
272
 
243
273
  With `thumbnail`, you can add a smaller image than the `feature-img`.
244
- If you don't have a thumbnail you can still use the same image as the feature one.
274
+ If you don't have a thumbnail you can still use the same image as the feature one. Or use the gulp task to create it.
245
275
 
246
276
  The background used when `color` is set comes from `lineart.png` from [xukimseven](https://github.com/xukimseven)
247
277
  you can edit it in the config file (`_config.yml > color_image`). If you want another one, put it in `/assets/img` as well.
@@ -263,6 +293,7 @@ excerpt: true
263
293
  Then in your post, add the `excerpt separator`:
264
294
 
265
295
  ```yml
296
+
266
297
  ---
267
298
  layout: post
268
299
  title: Sample Page
@@ -298,15 +329,36 @@ Like all CSS variables in the theme, you can edit the color of the code highligh
298
329
  The code highlighting works with [base16](https://github.com/chriskempson/base16-html-previews/tree/master/css) you can find existing example
299
330
  of your favourite highlight color scheme on this format.
300
331
 
301
- ## Other Layouts
302
- Please refer to the [Jekyll docs for writing posts](https://jekyllrb.com/docs/posts/).
332
+ ## Feature pages and layouts
333
+
334
+ All feature pages besides the "home" one are stored in the `page` folder,
335
+ they will appear in the navigation bar unless you set `Hide: true` in the front matter.
336
+
337
+ Here are the documentation for the other feature pages that can be added through `_config.yml`.
338
+
303
339
  Non-standard features are documented below.
304
340
 
305
- ### Layout: Page
341
+ ### Layout: Default
342
+
343
+ This layout includes the head, navigation bar and footer around your content.
344
+ Unless you're making a custom layout you won't need it.
345
+
346
+ ### Layout: Home 🏡
347
+
348
+ This page is used as the home page of the template (in the `index.html`). It displays the list of articles in `_posts`.
349
+ You can use this layout in another page (adding a title to it will make it appear in the navigation bar).
350
+
351
+ The recommended width and height for the home picture is width:`2484px;` and height:`1280px`
352
+ which are the dimensions of the actual picture for it to be rolling down as you scroll the page.
353
+
354
+ If your posts are not displaying ensure that you have added the line `paginate: 5` to `_config.yml`.
355
+
356
+ ### Layout: Page 📄
306
357
 
307
358
  The page layout have a bit more features explained here.
308
359
 
309
360
  ```yml
361
+
310
362
  ---
311
363
  layout: page
312
364
  title: "About"
@@ -321,33 +373,14 @@ tags: [sample, markdown, html]
321
373
 
322
374
  The hide only hides your page from the navigation bar, it is however still generated and can be access through its link.
323
375
 
324
- ### Layout: Default
325
-
326
- This layout includes the head, navigation bar and footer around your content.
327
-
328
- ## Feature pages
329
-
330
- All feature pages besides the "home" one are stored in the `page` folder,
331
- they will appear in the navigation bar unless you set `Hide: true` in the front matter.
332
-
333
- Here are the documentation for the other feature pages that can be added through `_config.yml`.
334
-
335
- ### Home
336
-
337
- This page is used as the home page of the template (in the `index.html`). It displays the list of articles in `_posts`.
338
- You can use this layout in another page (adding a title to it will make it appear in the navigation bar).
339
-
340
- The recommended width and height for the home picture is width:`2484px;` and height:`1280px`
341
- which are the dimensions of the actual picture for it to be rolling down as you scroll the page.
342
-
343
- If your posts are not displaying ensure that you have added the line `paginate: 5` to `_config.yml`.
344
-
345
- ### Portfolio
376
+ ### Feature: Portfolio 🗂
346
377
 
347
378
  Portfolio is a feature page that will take all the markdown/html files in the `_portfolio` folder to create a 3-columns image portfolio matrix.
348
379
 
349
380
  To use the portfolio, simply create a `portfolio.md` with this information inside:
381
+
350
382
  ```yml
383
+
351
384
  ---
352
385
  layout: page
353
386
  title : Portfolio
@@ -356,13 +389,14 @@ title : Portfolio
356
389
  {% include portfolio.html %}
357
390
  ```
358
391
 
359
- #### Portofolio posts
392
+ #### Portfolio posts
360
393
 
361
394
  You can format the portfolio posts in the `_portfolio` folder using the `post layout`. Here are little explaination on some of the possible feature you can use and what they will do.
362
395
 
363
396
  If you decide to use a date, please be sure to use one that can be parsed such as `yyyy-mm-dd`. You can see more format example on the demo posts that are available for the theme:
364
397
 
365
398
  ```yml
399
+
366
400
  ---
367
401
  layout: post
368
402
  title: Circus # Title of the portfolio post
@@ -377,7 +411,6 @@ date: 2019-07-25 # Not mandatory, however needs to be in date format t
377
411
  Make sure your `_config.yml` contains the following if you are using the theme as a gem:
378
412
 
379
413
  ```yml
380
-
381
414
  # PORTFOLIO
382
415
  collections:
383
416
  portfolio:
@@ -387,7 +420,7 @@ collections:
387
420
 
388
421
  This creates the collection for Jekyll so it can find and display your portfolio posts.
389
422
 
390
- ### Gallery
423
+ ### Feature: Gallery 🖼
391
424
 
392
425
  You can create a gallery using [Masonry JS](https://masonry.desandro.com/) which will placing the pictures in optimal position
393
426
  based on available vertical space.
@@ -395,6 +428,7 @@ You need to specify the `gallery_path` which will be used to find the pictures t
395
428
  It will take all of the picture under that directory. Then use the `include` to add it in your page.
396
429
 
397
430
  ```yml
431
+
398
432
  ---
399
433
  layout: page
400
434
  title: Gallery
@@ -405,7 +439,7 @@ gallery: "assets/img/pexels"
405
439
  ```
406
440
 
407
441
 
408
- ### Search
442
+ ### Feature: Search 🔍
409
443
 
410
444
  The search feature is based on [Simple-Jekyll-search](https://github.com/christian-fei/Simple-Jekyll-Search)
411
445
  there is a `search.json` file that will create a list of all of the site posts, pages and portfolios.
@@ -415,6 +449,7 @@ Then there's a `search.js` displaying the formatted results entered in the `sear
415
449
  The search page can be hidden with the `hide` option. You can remove the icon by removing `icon`:
416
450
 
417
451
  ```yml
452
+
418
453
  ---
419
454
  layout: search
420
455
  title: Search
@@ -422,7 +457,7 @@ icon: "search"
422
457
  ---
423
458
  ```
424
459
 
425
- ### Tags
460
+ ### Feature: Tags 🏷
426
461
 
427
462
  Tags should be placed between `[]` in your post metadata. Separate each tag with a comma.
428
463
  Tags are recommended for posts and portfolio items.
@@ -430,6 +465,7 @@ Tags are recommended for posts and portfolio items.
430
465
  For example:
431
466
 
432
467
  ```yml
468
+
433
469
  ---
434
470
  layout: post
435
471
  title: Markdown and HTML
@@ -455,29 +491,53 @@ Jekyll works with [liquid](https://shopify.github.io/liquid/) tags usually repre
455
491
  These are useful to render your jekyll files.
456
492
  You can learn more about them on [shopify's doc](https://help.shopify.com/themes/liquid/basics)
457
493
 
458
- ### Minimizing and optimizing: css, js and images
494
+ ### Gulp toolbox
495
+
496
+ #### Requirements
497
+
498
+ Before you need to have *node* and `npm` installed:
459
499
 
460
- Before you need to have `node` and `npm` installed:
461
500
  - Windows: https://nodejs.org/
462
501
  - Ubuntu/Debian: `apt-get install nodejs npm libgl1 libxi6`
463
502
  - Fedora (dnf) / RHEL/CentOS (yum): `dnf install node npm libglvnd-glx libXi`
464
503
 
465
504
  Then you need to install [`gulp-cli`](https://gulpjs.com/) and its dependencies:
466
- ```shell
505
+
506
+ ```bash
467
507
  cd assets/
468
508
  sudo npm install gulp-cli -g
469
509
  npm install
470
510
  ```
471
511
 
472
- **Now, whenever you want to minify and optimize, run:**
473
- ```shell
512
+ #### Minimizing and optimizing: css, js and images
513
+
514
+ You can run the default task that will compress the js, css and images and create the thumbnails for the supported image
515
+ formats:
516
+
517
+ ```bash
474
518
  cd assets/
475
519
  gulp default
520
+ gulp thumbnails-all # to create all of the images thumbnails
521
+ gulp thumbnails # to create thumbnails for the feature-img/ only
476
522
  # tip: run a git status to see the changes
477
523
  git status
478
524
  ```
479
525
 
480
- ### Use as Ruby Gem
526
+ You can find more about the gulp tasks in the [gulpfile.js](assets/gulpfile.js).
527
+
528
+ #### Create a post
529
+
530
+ To create a `.md` file in the *_posts/* section with the jekyll format of today's date.
531
+ Use this command with the title you'd like to create the very basic post.
532
+
533
+ ```bash
534
+ gulp post -n 'title of the post'
535
+ ```
536
+
537
+ A file will be create following the format `yyyy-mm-dd-title-of-the-post.md` with default post attributes inside.
538
+ Nothing will happen if the file exists already.
539
+
540
+ ### Use as Ruby Gem 💎
481
541
 
482
542
  You can use Type-on-strap as a [gem](https://rubygems.org/gems/type-on-strap).
483
543
 
@@ -487,6 +547,7 @@ Add this line to your Jekyll site's Gemfile (or create one):
487
547
  ```ruby
488
548
  gem "type-on-strap"
489
549
  ```
550
+
490
551
  Add this line to your Jekyll site's `_config.yml` file:
491
552
 
492
553
  ```yml
data/_data/language.yml CHANGED
@@ -11,3 +11,8 @@ str_previous_post: "Previous post"
11
11
  str_next_page: "Next"
12
12
  str_previous_page: "Prev"
13
13
  str_javascript_required_disqus: "Please enable JavaScript to view comments."
14
+ str_no_result_found: "No result found"
15
+ str_cookie_approve: "Approve"
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
+
@@ -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