type-on-strap 2.3.5 → 2.3.9

Sign up to get free protection for your applications and to get access to all the features.
Files changed (88) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +71 -52
  3. data/_data/icons_builder.yml +82 -0
  4. data/_includes/default/head.html +4 -4
  5. data/_includes/default/navbar.html +1 -1
  6. data/_includes/social/cusdis.html +3 -2
  7. data/_includes/social/disqus.html +1 -1
  8. data/_includes/social/icons.html +25 -96
  9. data/_includes/social/utterances.html +8 -0
  10. data/_layouts/{custom.html → custom.md} +5 -5
  11. data/_layouts/default.html +1 -2
  12. data/_layouts/post.html +10 -7
  13. data/_sass/base/_global.scss +51 -12
  14. data/_sass/base/_highlight.scss +4 -4
  15. data/_sass/base/_variables.scss +50 -47
  16. data/_sass/external/_katex.scss +1103 -899
  17. data/_sass/includes/_footer.scss +2 -2
  18. data/_sass/includes/{_grid.scss → _gallery.scss} +0 -0
  19. data/_sass/layouts/_blog.scss +6 -2
  20. data/_sass/layouts/_posts.scss +4 -6
  21. data/_sass/layouts/_tags.scss +1 -1
  22. data/_sass/type-on-strap.scss +36 -10
  23. data/assets/fonts/katex/KaTeX_AMS-Regular.ttf +0 -0
  24. data/assets/fonts/katex/KaTeX_AMS-Regular.woff +0 -0
  25. data/assets/fonts/katex/KaTeX_AMS-Regular.woff2 +0 -0
  26. data/assets/fonts/katex/KaTeX_Caligraphic-Bold.ttf +0 -0
  27. data/assets/fonts/katex/KaTeX_Caligraphic-Bold.woff +0 -0
  28. data/assets/fonts/katex/KaTeX_Caligraphic-Bold.woff2 +0 -0
  29. data/assets/fonts/katex/KaTeX_Caligraphic-Regular.ttf +0 -0
  30. data/assets/fonts/katex/KaTeX_Caligraphic-Regular.woff +0 -0
  31. data/assets/fonts/katex/KaTeX_Caligraphic-Regular.woff2 +0 -0
  32. data/assets/fonts/katex/KaTeX_Fraktur-Bold.ttf +0 -0
  33. data/assets/fonts/katex/KaTeX_Fraktur-Bold.woff +0 -0
  34. data/assets/fonts/katex/KaTeX_Fraktur-Bold.woff2 +0 -0
  35. data/assets/fonts/katex/KaTeX_Fraktur-Regular.ttf +0 -0
  36. data/assets/fonts/katex/KaTeX_Fraktur-Regular.woff +0 -0
  37. data/assets/fonts/katex/KaTeX_Fraktur-Regular.woff2 +0 -0
  38. data/assets/fonts/katex/KaTeX_Main-Bold.ttf +0 -0
  39. data/assets/fonts/katex/KaTeX_Main-Bold.woff +0 -0
  40. data/assets/fonts/katex/KaTeX_Main-Bold.woff2 +0 -0
  41. data/assets/fonts/katex/KaTeX_Main-BoldItalic.ttf +0 -0
  42. data/assets/fonts/katex/KaTeX_Main-BoldItalic.woff +0 -0
  43. data/assets/fonts/katex/KaTeX_Main-BoldItalic.woff2 +0 -0
  44. data/assets/fonts/katex/KaTeX_Main-Italic.ttf +0 -0
  45. data/assets/fonts/katex/KaTeX_Main-Italic.woff +0 -0
  46. data/assets/fonts/katex/KaTeX_Main-Italic.woff2 +0 -0
  47. data/assets/fonts/katex/KaTeX_Main-Regular.ttf +0 -0
  48. data/assets/fonts/katex/KaTeX_Main-Regular.woff +0 -0
  49. data/assets/fonts/katex/KaTeX_Main-Regular.woff2 +0 -0
  50. data/assets/fonts/katex/KaTeX_Math-BoldItalic.ttf +0 -0
  51. data/assets/fonts/katex/KaTeX_Math-BoldItalic.woff +0 -0
  52. data/assets/fonts/katex/KaTeX_Math-BoldItalic.woff2 +0 -0
  53. data/assets/fonts/katex/KaTeX_Math-Italic.ttf +0 -0
  54. data/assets/fonts/katex/KaTeX_Math-Italic.woff +0 -0
  55. data/assets/fonts/katex/KaTeX_Math-Italic.woff2 +0 -0
  56. data/assets/fonts/katex/KaTeX_SansSerif-Bold.ttf +0 -0
  57. data/assets/fonts/katex/KaTeX_SansSerif-Bold.woff +0 -0
  58. data/assets/fonts/katex/KaTeX_SansSerif-Bold.woff2 +0 -0
  59. data/assets/fonts/katex/KaTeX_SansSerif-Italic.ttf +0 -0
  60. data/assets/fonts/katex/KaTeX_SansSerif-Italic.woff +0 -0
  61. data/assets/fonts/katex/KaTeX_SansSerif-Italic.woff2 +0 -0
  62. data/assets/fonts/katex/KaTeX_SansSerif-Regular.ttf +0 -0
  63. data/assets/fonts/katex/KaTeX_SansSerif-Regular.woff +0 -0
  64. data/assets/fonts/katex/KaTeX_SansSerif-Regular.woff2 +0 -0
  65. data/assets/fonts/katex/KaTeX_Script-Regular.ttf +0 -0
  66. data/assets/fonts/katex/KaTeX_Script-Regular.woff +0 -0
  67. data/assets/fonts/katex/KaTeX_Script-Regular.woff2 +0 -0
  68. data/assets/fonts/katex/KaTeX_Size1-Regular.ttf +0 -0
  69. data/assets/fonts/katex/KaTeX_Size1-Regular.woff +0 -0
  70. data/assets/fonts/katex/KaTeX_Size1-Regular.woff2 +0 -0
  71. data/assets/fonts/katex/KaTeX_Size2-Regular.ttf +0 -0
  72. data/assets/fonts/katex/KaTeX_Size2-Regular.woff +0 -0
  73. data/assets/fonts/katex/KaTeX_Size2-Regular.woff2 +0 -0
  74. data/assets/fonts/katex/KaTeX_Size3-Regular.ttf +0 -0
  75. data/assets/fonts/katex/KaTeX_Size3-Regular.woff +0 -0
  76. data/assets/fonts/katex/KaTeX_Size3-Regular.woff2 +0 -0
  77. data/assets/fonts/katex/KaTeX_Size4-Regular.ttf +0 -0
  78. data/assets/fonts/katex/KaTeX_Size4-Regular.woff +0 -0
  79. data/assets/fonts/katex/KaTeX_Size4-Regular.woff2 +0 -0
  80. data/assets/fonts/katex/KaTeX_Typewriter-Regular.ttf +0 -0
  81. data/assets/fonts/katex/KaTeX_Typewriter-Regular.woff +0 -0
  82. data/assets/fonts/katex/KaTeX_Typewriter-Regular.woff2 +0 -0
  83. data/assets/js/vendor/auto-render.min.js +1 -1
  84. data/assets/js/vendor/katex.min.js +1 -1
  85. metadata +8 -9
  86. data/_includes/social/icon_partial.html +0 -11
  87. data/_sass/includes/_cookie_consent.scss +0 -17
  88. data/_sass/includes/_mermaid.scss +0 -8
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 478babd84de11e9924830b336ad9741deec1e41d437c36747a53060c6c185a87
4
- data.tar.gz: 5a2f74dcb75f627ce7542b34c1b7a76229d6189ec80ea7e3bd19a87d7db79727
3
+ metadata.gz: 2fb748c9fa85515434e6df47ed36f442144eeba3be73aa87f9d2436ccfb6f922
4
+ data.tar.gz: 07eb817e9d64afb913dadff99e3d90531f3212816caa66d17fb43978b6d591d4
5
5
  SHA512:
6
- metadata.gz: 459a18b0e0e372db95920cfa1dedcb6d835c54af709fd13d41a60648df05d952d9edc2a455edc4e6e3411f17b1a215b64bc92219eeb895285f66dc4909f7595c
7
- data.tar.gz: '059f94bb911213c4ea06f7109ddf46e25358afd2a581250e27b9701cc416249a6ba114b7752a45230ffbbc7ed6279f2fe81077599d2114b8bfbb2fd77cb48675'
6
+ metadata.gz: b19d1053042fe0bbf1385d2dc09ea0ca5b09ed8d25bc0cc034080c6bd5931d1fef234986f6223dfb4e7fe57b4311be4bc31fea2b332f5c961ad479782b0154d4
7
+ data.tar.gz: 9862842c52c883cc4458af398b990d06eab2c67676f2e32528d0dca7123947f51693d477c0c4c7db6b7238245ddf82e0f584aa5b2254613b82990c3d175e8871
data/README.md CHANGED
@@ -1,17 +1,18 @@
1
1
  # Type on Strap 🎨
2
2
 
3
- [![Build Status](https://travis-ci.org/sylhare/Type-on-Strap.svg?branch=master)](https://travis-ci.org/sylhare/Type-on-Strap)
3
+ [![Build](https://github.com/sylhare/Type-on-Strap/actions/workflows/jekyll-build.yml/badge.svg)](https://github.com/sylhare/Type-on-Strap/actions/workflows/jekyll-build.yml)
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
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
+ * Multi comments 💬 options
13
14
  * Tags compatibility 🏷
14
- * Handle Bootstrap'ed pages: [Get Bootstrap](http://getbootstrap.com/)
15
+ * Handle _Bootstrap_'ed pages: [Get Bootstrap](http://getbootstrap.com/)
15
16
  * 🔎 Search feature: [Simple-Jekyll-Search](https://github.com/christian-fei/Simple-Jekyll-Search)
16
17
  * Math Rendering : [KateX](https://github.com/Khan/KaTeX)
17
18
  * Diagram Rendering: [Mermaid-js](https://github.com/mermaid-js/mermaid)
@@ -21,23 +22,15 @@ A free and open-source [Jekyll](https://jekyllrb.com) theme. Based on Rohan Chan
21
22
  * 💡 Light and dark theme supported
22
23
  * Find free of rights images on [pexels](https://www.pexels.com/)
23
24
 
24
- > [Demo Site](https://sylhare.github.io/Type-on-Strap/)
25
-
26
- ## Table of Contents
27
-
28
- - [Usage](#usage)
29
- - [Structure](#structure)
30
- - [Configure Type on Strap](#configure-type-on-strap)
31
- - [Other Layouts](#other-layouts)
32
- - [Feature pages](#feature-pages)
33
- - [Advanced](#advanced)
34
- - [License](#license)
25
+ > [Demo Site](https://sylhare.github.io/Type-on-Strap/)
35
26
 
36
27
  ## Usage
37
28
 
38
29
  ### As a ruby gem 💎
39
30
 
40
- Check out this tutorial: [Use as Ruby Gem](https://github.com/Sylhare/Type-on-Strap#use-as-ruby-gem)
31
+ Check out this tutorial: [Use as Ruby Gem](#use-as-ruby-gem-)
32
+
33
+ [![Open in Gitpod](https://gitpod.io/button/open-in-gitpod.svg)](https://gitpod.io/#/https://github.com/sylhare/Type-On-Strap)
41
34
 
42
35
  ### As a github page 📋
43
36
 
@@ -45,7 +38,7 @@ Check out this tutorial: [Use as Ruby Gem](https://github.com/Sylhare/Type-on-St
45
38
  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.
46
39
  3. Install the theme's dependencies: `bundle install`
47
40
  4. Customize the theme
48
- - GitHub Page: [update `_config.yml`](https://github.com/Sylhare/Type-on-Strap#site-configuration)
41
+ - GitHub Page: [update `_config.yml`](#site-configuration)
49
42
  5. Run the Jekyll server: `bundle exec jekyll serve`
50
43
 
51
44
  ## Structure
@@ -75,7 +68,8 @@ Type-on-Strap
75
68
  ├── _data.yml
76
69
  | ├── authors.yml # Update the post authors configurations
77
70
  | ├── language.yml # Localization configuration
78
- | └── social.yml # Social configurations (RSS, Twitter, ...)
71
+ | ├── social.yml # Social configurations to share posts (RSS, shares, ...)
72
+ | └── icons.yml # Footer icons (Twitter, Github, Stackoverflow, ...)
79
73
  └── index.html # sample home page (blog page paginated)
80
74
  ```
81
75
 
@@ -85,12 +79,13 @@ Open `_config.yml` in a text editor to change most of the blog's settings.
85
79
 
86
80
  If a variable in this document is marked as "optional", disable the feature by removing all text from the variable.
87
81
 
88
-
89
82
  ### Site configuration
90
83
 
84
+ #### Base url
85
+
91
86
  Configure Jekyll as your own blog or with a "baseurl" in `_config.yml`:
92
87
 
93
- Jekyll website *without* a "baseurl" (such as a GitHub Pages website for a given username):
88
+ Jekyll website *without* a "baseurl" (such as a **GitHub Pages website** with your username as the repository name):
94
89
 
95
90
  ```yml
96
91
  baseurl: ""
@@ -101,15 +96,27 @@ Jekyll website *with* "baseurl" (like the Type on Strap [demo](https://sylhare.g
101
96
 
102
97
  ```yml
103
98
  baseurl: "/sub-directory"
104
- url: "https://username.github.io/"
99
+ url: "https://username.github.io"
100
+ ```
101
+
102
+ #### Jekyll blog configuration
103
+
104
+ And here is the basic information you will need in your `_config.yml` for it to work properly:
105
+
106
+ ```yaml
107
+ # BLOG CONFIGURATION
108
+ post_navigation: true
109
+ paginate: 10
110
+ paginate_path: "blog/page:num"
111
+ plugins: [jekyll-paginate, jekyll-seo-tag, jekyll-feed]
105
112
  ```
106
113
 
107
- Please configure this before using the theme.
114
+ To configure the blog part and default pluginshose plugins are validated by GitHub page.
108
115
 
109
- ### Meta and Branding
116
+ #### Meta and Branding
110
117
 
111
118
  Meta variables hold basic information about your Jekyll site which will be used throughout the site
112
- and as meta properties for search engines, browsers, and the site's RSS feed.
119
+ and as meta properties that are used for search engines, browsers, and the site's RSS feed.
113
120
 
114
121
  Change these variables in `_config.yml`:
115
122
 
@@ -155,18 +162,18 @@ to `_config.yml` like so:
155
162
  google_analytics: UA-NNNNNNNN-N
156
163
  ```
157
164
 
158
- ### Comments
165
+ ### Comments 💬
159
166
 
160
167
  #### Disqus
161
168
 
162
- Optionally, if you have a [Disqus](https://disqus.com/) account, you can show a
163
- comments section below each post.
169
+ If you have a [Disqus](https://disqus.com/) account, you can show a comments section below each post.
164
170
 
165
171
  To enable Disqus comments, add your [Disqus shortname](https://help.disqus.com/customer/portal/articles/466208)
166
172
  to your project's `_config.yml` file:
167
173
 
168
174
  ```yml
169
- disqus_shortname: my_disqus_shortname
175
+ comments:
176
+ disqus_shortname: my_disqus_shortname
170
177
  ```
171
178
 
172
179
  #### Cusdis
@@ -177,7 +184,25 @@ You can read more about it in the [documentation](https://cusdis.com/doc#/)
177
184
  To enable it, set your cusdis name in `_config.yml`:
178
185
 
179
186
  ```yaml
180
- cusdis_app_id: my_data-app-id
187
+ comments:
188
+ cusdis_app_id: my_data-app-id
189
+ ```
190
+
191
+ #### Utterances
192
+
193
+ [Utterances](https://utteranc.es) is another open source alternative linked to one's GitHub account.
194
+ It stores the comments as GitHub issues on a repository for each page.
195
+
196
+ Install the utterance [app](https://github.com/apps/utterances) to your repo.
197
+ After installing, add your info in the `_config.yml`:
198
+
199
+ ```yaml
200
+ comments:
201
+ utterances: # Enable by filling below information. For more info, go to https://utteranc.es
202
+ repo: # your public comments repository (e.g. owner/repo)
203
+ issue-term: # Issue term (e.g. "comment" consider issues with this word in the title as comments)
204
+ theme: # OPTIONAL: Take the `color_theme` by default, or set a custom one like github-dark-orange
205
+ label: # OPTIONAL: Adds an issue label in the issue
181
206
  ```
182
207
 
183
208
  ### Math typesetting with KateX
@@ -230,13 +255,17 @@ sequenceDiagram
230
255
 
231
256
  ### Social icons
232
257
 
233
- In `_data/social.yml` you can customize the social icons from other wbesite you wish to display in the blog.
258
+ In `_data/social.yml` you can customize the social icons that will be displayed in the post to share your post.
259
+ You can also enable RSS.
234
260
  The site icons come from [Font Awesome](https://fontawesome.com/).
235
261
 
262
+ In `_data/icons.yml` you can set the footer icon that will appear at the bottom of the page.
263
+ They will redirect the user on your profile on the other platform like Twitter, GitHub and so many more!
264
+
236
265
  ### Cookie consent
237
266
 
238
267
  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).
239
- Set to true, there will be a banner at the bottom of the page with the disclaimer and a approve button.
268
+ Set to true, there will be a banner at the bottom of the page with the disclaimer, and an _approve_ button.
240
269
  Once the user clicks on "Approve" the cookies will be created for Google Analytics.
241
270
 
242
271
  #### Share in article
@@ -246,20 +275,11 @@ to share the article on those platform.
246
275
 
247
276
  #### Footer
248
277
 
249
- Display in the footer.
250
- All icon variables should be your username enclosed in quotes (e.g. "username") in `_data/social.yml`,
251
- except for the following variables:
252
-
253
- ```yml
254
- rss: true
255
- email_address: type@example.com
256
- linkedin: https://www.linkedin.com/in/FirstLast
257
- stack_exchange: https://stackexchangecom/users/0000/first-last
258
- stack_overflow: https://stackoverflow.com/users/0000/first-last
259
- youtube: UCqECaJ8Gagnn7YCbPEzWH6g # Youtube token of your channel in the url
260
- ```
278
+ Display icons in the footer.
279
+ All icon variables should be your username enclosed in quotes (e.g. "username") in `_data/icons.yml`.
261
280
 
262
281
  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)).
282
+ To enable the share icons at the bottom of each article set to true the one you'd like under `share` in the `_data/social.yml` file.
263
283
 
264
284
  ### Personalize your Blog Posts 📝
265
285
 
@@ -342,7 +362,7 @@ Use it in any markdown file. There are two fields in the _include_ you need to l
342
362
 
343
363
  #### Code highlight
344
364
 
345
- Like all CSS variables in the theme, you can edit the color of the code highlight in _sass > base > _variables.scss.
365
+ Like all CSS variables in the theme, you can edit the color of the code highlight in *_sass > base > _variables.scss*.
346
366
  The code highlighting works with [base16](https://github.com/chriskempson/base16-html-previews/tree/master/css) you can find existing example
347
367
  of your favourite highlight color scheme on this format.
348
368
 
@@ -435,14 +455,14 @@ collections:
435
455
  permalink: /:collection/:name
436
456
  ```
437
457
 
438
- This creates the collection for Jekyll so it can find and display your portfolio posts.
458
+ This creates the collection for Jekyll, so it can find and display your portfolio posts.
439
459
 
440
460
  ### Feature: Gallery 🖼
441
461
 
442
462
  You can create a gallery using [Masonry JS](https://masonry.desandro.com/) which will placing the pictures in optimal position
443
463
  based on available vertical space.
444
464
  You need to specify the `gallery_path` which will be used to find the pictures to render.
445
- It will take all of the picture under that directory. Then use the `include` to add it in your page.
465
+ It will take all the pictures under that directory. Then use the `include` to add it in your page.
446
466
 
447
467
  ```yml
448
468
 
@@ -455,11 +475,10 @@ gallery: "assets/img/pexels"
455
475
  {% include default/gallery.html gallery_path=page.gallery %}
456
476
  ```
457
477
 
458
-
459
478
  ### Feature: Search 🔍
460
479
 
461
480
  The search feature is based on [Simple-Jekyll-search](https://github.com/christian-fei/Simple-Jekyll-Search)
462
- there is a `search.json` file that will create a list of all of the site posts, pages and portfolios.
481
+ there is a `search.json` file that will create a list of all the site posts, pages and portfolios.
463
482
 
464
483
  Then there's a `search.js` displaying the formatted results entered in the `search.html` page.
465
484
 
@@ -490,7 +509,7 @@ tags: [sample, markdown, html]
490
509
  ---
491
510
  ```
492
511
 
493
- > Tags are case sensitive `Tag_nAme` ≠ `tag_name`
512
+ > Tags are case-sensitive `Tag_nAme` ≠ `tag_name`
494
513
 
495
514
  All the tags will be listed in `tags.html` with a link toward the pages or posts.
496
515
  The Tag page can be hidden with the `hide` option. You can remove the icon by removing `icon` (like for the search page).
@@ -551,14 +570,14 @@ Use this command with the title you'd like to create the very basic post.
551
570
  gulp post -n 'title of the post'
552
571
  ```
553
572
 
554
- A file will be create following the format `yyyy-mm-dd-title-of-the-post.md` with default post attributes inside.
573
+ A file will be created following the format `yyyy-mm-dd-title-of-the-post.md` with default post attributes inside.
555
574
  Nothing will happen if the file exists already.
556
575
 
557
576
  ### Use as Ruby Gem 💎
558
577
 
559
578
  You can use Type-on-strap as a [gem](https://rubygems.org/gems/type-on-strap).
560
579
 
561
- Ruby Gem Method
580
+ Using the [Ruby Gem Method](https://sylhare.github.io/2021/03/25/Run-type-on-strap-jekyll-theme-locally.html).
562
581
  Add this line to your Jekyll site's Gemfile (or create one):
563
582
 
564
583
  ```ruby
@@ -584,7 +603,7 @@ Then you can start adding content like:
584
603
 
585
604
  ### Remote Theme
586
605
 
587
- 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).
606
+ 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).
588
607
  For that remove all `theme:` attributes from `_config.yml` and add instead:
589
608
 
590
609
  ```yml
@@ -593,7 +612,7 @@ remote_theme: sylhare/Type-on-Strap
593
612
 
594
613
  ## License
595
614
 
596
- This theme is licensed under the [The MIT License (MIT)](https://raw.githubusercontent.com/Sylhare/Type-on-Strap/master/LICENSE)
615
+ This theme is licensed under the [The MIT License (MIT)](/LICENSE)
597
616
 
598
617
  - Pictures from [Pexels](https://www.pexels.com/) are under Creative Commons Zero (CC0) license
599
618
  - Fonts are licensed under the [SIL Open Font License (OFL)](https://scripts.sil.org/cms/scripts/page.php?site_id=nrsi&id=OFL)
@@ -0,0 +1,82 @@
1
+ # Default data to build the footer icons
2
+ # DO NOT MODIFY, use the "icons.yml" instead.
3
+ behance:
4
+ pre: "https://www.behance.net/"
5
+ bitbucket:
6
+ pre: "https://bitbucket.org/"
7
+ calendly:
8
+ pre: "https://calendly.com/"
9
+ icon: "far fa-calendar-plus"
10
+ dribbble:
11
+ pre: "https://www.dribbble.com/"
12
+ facebook:
13
+ pre: "https://www.facebook.com/"
14
+ flickr:
15
+ pre: "https://flickr.com/photos/"
16
+ github:
17
+ pre: "https://github.com/"
18
+ gitlab:
19
+ pre: "https://gitlab.com/"
20
+ google-scholar:
21
+ pre: "https://scholar.google.com/citations?hl=en&user="
22
+ icon: "fas fa-user-graduate"
23
+ instagram:
24
+ pre: "https://instagram.com/"
25
+ hacker-news:
26
+ pre: "https://news.ycombinator.com/user?id="
27
+ keybase:
28
+ pre: "https://keybase.io/"
29
+ linkedin:
30
+ pre: "https://www.linkedin.com/in/"
31
+ mail:
32
+ pre: "mailto:"
33
+ icon: "fas fa-envelope"
34
+ map:
35
+ pre: "https://www.openstreetmap.org/#map=15/"
36
+ icon: "fas fa-map-marked"
37
+ mastodon:
38
+ pre: "https://"
39
+ matrix:
40
+ pre: "https://matrix.to/#/"
41
+ icon: "fab fa-connectdevelop"
42
+ medium:
43
+ pre: "https://medium.com/@"
44
+ patreon:
45
+ pre: "https://www.patreon.com/"
46
+ phone:
47
+ pre: "tel:"
48
+ icon: "fas fa-phone"
49
+ pinterest:
50
+ pre: "https://www.pinterest.com/"
51
+ reddit:
52
+ pre: "https://www.reddit.com/user/"
53
+ soundcloud:
54
+ pre: "https://soundcloud.com/"
55
+ sms:
56
+ pre: "sms:"
57
+ pos: "?body=Hi"
58
+ icon: "fas fa-sms"
59
+ stack-exchange:
60
+ pre: "https://stackexchange.com/users/"
61
+ stack-overflow:
62
+ pre: "https://stackoverflow.com/users/"
63
+ steam:
64
+ pre: "https://steamcommunity.com/id/"
65
+ telegram:
66
+ pre: "https://t.me/"
67
+ tumblr:
68
+ pre: "https://"
69
+ pos: ".tumblr.com/"
70
+ twitch:
71
+ pre: "https://twitch.tv/"
72
+ twitter:
73
+ pre: "https://twitter.com/"
74
+ vimeo:
75
+ pre: "https://vimeo.com/"
76
+ vk:
77
+ pre: "https://vk.com/"
78
+ wordpress:
79
+ pre: "https://"
80
+ pos: ".wordpress.com/"
81
+ youtube:
82
+ pre: "https://www.youtube.com/channel/"
@@ -31,14 +31,14 @@
31
31
  <!-- Bootstrap-4.1.3 isolation CSS -->
32
32
  <link rel="stylesheet" type="text/css" href="{{ '/assets/css/vendor/bootstrap-iso.min.css' | relative_url }}">
33
33
  <!-- JQuery 3.3.1 -->
34
- <script src="https://code.jquery.com/jquery-3.3.1.slim.min.js" integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo" crossorigin="anonymous"></script>
34
+ <script defer src="https://code.jquery.com/jquery-3.3.1.slim.min.js" integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo" crossorigin="anonymous"></script>
35
35
  <!-- Bootstrap 4.1.3 compiled and minified JavaScript -->
36
- <script src="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/js/bootstrap.min.js" integrity="sha384-ChfqqxuZUCnJSK3+MXmPNIyE6ZbWh2IMqE241rYiqJxyMiZ6OW/JmZQ5stwEULTy" crossorigin="anonymous"></script>
36
+ <script defer src="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/js/bootstrap.min.js" integrity="sha384-ChfqqxuZUCnJSK3+MXmPNIyE6ZbWh2IMqE241rYiqJxyMiZ6OW/JmZQ5stwEULTy" crossorigin="anonymous"></script>
37
37
  <!-- Popper, a dependency of Bootstrap-->
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>
38
+ <script defer 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>
39
39
  {% endif %}
40
40
 
41
- <!-- KaTeX 0.12.0 -->
41
+ <!-- KaTeX 0.13.9 -->
42
42
  {% if site.katex or site.theme_settings.katex %}
43
43
  <script defer src="{{ '/assets/js/vendor/katex.min.js' | relative_url }}"></script>
44
44
  <script defer src="{{ '/assets/js/vendor/auto-render.min.js' | relative_url }}" onload="renderMathInElement(document.body);"></script>
@@ -37,7 +37,7 @@
37
37
 
38
38
  {% if site.color_theme == 'auto' %}
39
39
  <li class="separator"> | </li>
40
- <li><a id="theme-toggle" title="{{ page.title }} "aria-label="{{ page.title }}" onclick="themeToggle()"></a></li>
40
+ <li><a id="theme-toggle" title="{{ page.title }} " aria-label="{{ page.title }}" onclick="themeToggle()"></a></li>
41
41
  {% endif %}
42
42
  </ul>
43
43
 
@@ -1,9 +1,10 @@
1
- <div class="comments" id="cusdis"
1
+ <div class="comments" id="cusdis_thread"
2
2
  data-host="https://cusdis.com"
3
- data-app-id="{{ site.cusdis_app_id }}"
3
+ data-app-id="{% if site.comments.cusdis_app_id %}{{ site.comments.cusdis_app_id }}{% else %}{{ site.cusdis_app_id }}{% endif %}"
4
4
  data-page-id="{{ page.relative_path }}"
5
5
  data-page-url="{{ page.url }}"
6
6
  data-page-title="{{ page.title }}"
7
+ data-theme="{{ site.color_theme }}"
7
8
  ></div>
8
9
 
9
10
  {% if site.data.language.cusdis_lang %}
@@ -1,7 +1,7 @@
1
1
  <div class="comments">
2
2
  <div id="disqus_thread"></div>
3
3
  <script type="text/javascript">
4
- var disqus_shortname = '{{ site.disqus_shortname }}';
4
+ var disqus_shortname = '{{ site.comments.disqus_shortname }}' || '{{ site.disqus_shortname }}';
5
5
  (function() {
6
6
  var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
7
7
  dsq.src = '//' + disqus_shortname + '.disqus.com/embed.js';
@@ -1,7 +1,8 @@
1
1
  {% if site.data.social.rss or site.theme_settings.rss %}
2
2
  <li>
3
3
  <a feed.xml href="{{ site.data.social.feed.path | default: 'feed.xml' | relative_url }}"
4
- title="{{ site.data.language.str_rss_follow | default: 'Follow RSS feed' }}">
4
+ title="{{ site.data.language.str_rss_follow | default: 'Follow RSS feed' }}"
5
+ target="_blank">
5
6
  <span class="fa-stack fa-lg">
6
7
  <i class="fas fa-circle fa-stack-2x"></i>
7
8
  <i class="fas fa-rss fa-stack-1x fa-inverse"></i>
@@ -10,98 +11,26 @@
10
11
  </li>
11
12
  {% endif %}
12
13
 
13
- {% if site.data.social.email_address or site.theme_settings.email_address %}
14
- <li>
15
- <a href="mailto:{{ site.data.social.email_address }}"
16
- title="{{ site.data.language.str_email }}">
17
- <span class="fa-stack fa-lg">
18
- <i class="fas fa-circle fa-stack-2x"></i>
19
- <i class="fas fa-envelope fa-stack-1x fa-inverse"></i>
20
- </span>
21
- </a>
22
- </li>
23
- {% endif %}
24
-
25
- {% assign bh_url = "https://www.behance.net/" | append: site.data.social.behance %}
26
- {% assign bh_on = site.data.social.behance or site.theme_settings.behance %}
27
- {% include social/icon_partial.html isDisplayed=bh_on url=bh_url social="Behance" %}
28
-
29
- {% assign bb_url = "https://bitbucket.org/" | append: site.data.social.bitbucket %}
30
- {% assign bb_on = site.data.social.bitbucket or site.theme_settings.bitbucket %}
31
- {% include social/icon_partial.html isDisplayed=bb_on url=bb_url social="Bitbucket" %}
32
-
33
- {% assign db_url = "https://www.dribbble.com/" | append: site.data.social.dribbble %}
34
- {% assign db_on = site.data.social.dribbble or site.theme_settings.dribbble %}
35
- {% include social/icon_partial.html isDisplayed=db_on url=db_url social="Dribbble" %}
36
-
37
- {% assign fb_url = "https://www.facebook.com/" | append: site.data.social.facebook %}
38
- {% assign fb_on = site.data.social.facebook or site.theme_settings.facebook %}
39
- {% include social/icon_partial.html isDisplayed=fb_on url=fb_url social="Facebook" %}
40
-
41
- {% assign fk_url = "https://flickr.com/photos/" | append: site.data.social.flickr %}
42
- {% assign fk_on = site.data.social.flickr or site.theme_settings.flickr %}
43
- {% include social/icon_partial.html isDisplayed=fk_on url=fk_url social="Flickr" %}
44
-
45
- {% assign gh_url = "https://github.com/" | append: site.data.social.github %}
46
- {% assign gh_on = site.data.social.github or site.theme_settings.github %}
47
- {% include social/icon_partial.html isDisplayed=gh_on url=gh_url social="GitHub" %}
48
-
49
- {% assign ig_url = "https://instagram.com/" | append: site.data.social.instagram %}
50
- {% assign ig_on = site.data.social.instagram or site.theme_settings.instagram %}
51
- {% include social/icon_partial.html isDisplayed=ig_on url=ig_url social="instagram" %}
52
-
53
- {% assign kb_url = "https://keybase.io/" | append: site.data.social.keybase %}
54
- {% assign kb_on = site.data.social.keybase or site.theme_settings.keybase %}
55
- {% include social/icon_partial.html isDisplayed=kb_on url=kb_url social="Keybase" %}
56
-
57
- {% assign se_url = site.data.social.linkedin %}
58
- {% assign se_on = site.data.social.linkedin or site.theme_settings.linkedin %}
59
- {% include social/icon_partial.html isDisplayed=se_on url=se_url social="Linkedin" %}
60
-
61
- {% assign pi_url = "https://www.pinterest.com/" | append: site.data.social.pinterest %}
62
- {% assign pi_on = site.data.social.pinterest or site.theme_settings.pinterest %}
63
- {% include social/icon_partial.html isDisplayed=pi_on url=pi_url social="Pinterest" %}
64
-
65
- {% assign rd_url = "https://www.reddit.com/user/" | append: site.data.social.reddit %}
66
- {% assign rd_on = site.data.social.reddit or site.theme_settings.reddit %}
67
- {% include social/icon_partial.html isDisplayed=rd_on url=rd_url social="Reddit" %}
68
-
69
- {% assign sc_url = "https://soundcloud.com/" | append: site.data.social.soundcloud %}
70
- {% assign sc_on = site.data.social.soundcloud or site.theme_settings.soundcloud %}
71
- {% include social/icon_partial.html isDisplayed=sc_on url=sc_url social="SoundCloud" %}
72
-
73
- {% assign se_url = site.data.social.stack_exchange %}
74
- {% assign se_on = site.data.social.stack_exchange or site.theme_settings.stack_exchange %}
75
- {% include social/icon_partial.html isDisplayed=se_on url=se_url social="Stack-Exchange" %}
76
-
77
- {% assign so_url = site.data.social.stack_overflow %}
78
- {% assign so_on = site.data.social.stack_overflow or site.theme_settings.stack_overflow %}
79
- {% include social/icon_partial.html isDisplayed=so_on url=so_url social="Stack-Overflow" %}
80
-
81
- {% assign st_url = "http://steamcommunity.com/id/" | append: site.data.social.steam %}
82
- {% assign st_on = site.data.social.steam or site.theme_settings.steam %}
83
- {% include social/icon_partial.html isDisplayed=st_on url=st_url social="Steam" %}
84
-
85
- {% assign tb_url = "https://" | append: site.data.social.tumblr | append: ".tumblr.com/" %}
86
- {% assign tb_on = site.data.social.tumblr or site.theme_settings.tumblr %}
87
- {% include social/icon_partial.html isDisplayed=tb_on url=tb_url social="Tumblr" %}
88
-
89
- {% assign gl_url = "https://gitlab.com/" | append: site.data.social.gitlab %}
90
- {% assign gl_on = site.data.social.gitlab or site.theme_settings.gitlab %}
91
- {% include social/icon_partial.html isDisplayed=gl_on url=gl_url social="Gitlab" %}
92
-
93
- {% assign tw_url = "https://twitter.com/" | append: site.data.social.twitter %}
94
- {% assign tw_on = site.data.social.twitter or site.theme_settings.twitter %}
95
- {% include social/icon_partial.html isDisplayed=tw_on url=tw_url social="Twitter" %}
96
-
97
- {% assign v_url = "https://vimeo.com/" | append: site.data.social.vimeo %}
98
- {% assign v_on = site.data.social.vimeo or site.theme_settings.vimeo %}
99
- {% include social/icon_partial.html isDisplayed=v_on url=v_url social="Vimeo" %}
100
-
101
- {% assign wp_url = "https://" | append: site.data.social.wordpress | append: ".wordpress.com/" %}
102
- {% assign wp_on = site.data.social.wordpress or site.theme_settings.wordpress %}
103
- {% include social/icon_partial.html isDisplayed=wp_on url=wp_url social="WordPress" %}
104
-
105
- {% assign yt_url = "https://www.youtube.com/channel/" | append: site.data.social.youtube %}
106
- {% assign yt_on = site.data.social.youtube or site.theme_settings.youtube %}
107
- {% include social/icon_partial.html isDisplayed=yt_on url=yt_url social="Youtube" %}
14
+ {% for footer in site.data.icons %}
15
+ {% unless footer[1] == nil %}
16
+ {% assign brand = footer[0] %}
17
+ {% assign id = footer[1] %}
18
+ {% assign data = site.data.icons_builder[brand] %}
19
+ {% if data.icon == nil %}
20
+ {% assign icon = "fab fa-" | append: brand %}
21
+ {% else %}
22
+ {% assign icon = data.icon %}
23
+ {% endif %}
24
+ <li>
25
+ <a href="{{ data.pre | append: id | append: data.pos }}"
26
+ title="{{ site.data.language.str_follow_on }} {{ brand | remove: '-' | capitalize }}"
27
+ target="_blank"
28
+ rel="me">
29
+ <span class="fa-stack fa-lg">
30
+ <i class="fas fa-circle fa-stack-2x"></i>
31
+ <i class="{{ icon }} fa-stack-1x fa-inverse"></i>
32
+ </span>
33
+ </a>
34
+ </li>
35
+ {% endunless %}
36
+ {% endfor %}
@@ -0,0 +1,8 @@
1
+ <script src="https://utteranc.es/client.js"
2
+ repo='{{ site.comments.utterances.repo }}'
3
+ issue-term="{{ site.comments.utterances.issue-term}}"
4
+ theme="{% if site.comments.utterances.theme %}{{ site.comments.utterances.theme }}{% elsif site.color_theme == 'dark' %}github-dark{% else %}github-light{% endif %}"
5
+ {% if site.comments.utterances.label %}label="{{ site.comments.utterances.label }}"{% endif %}
6
+ crossorigin="anonymous"
7
+ async>
8
+ </script>
@@ -24,14 +24,14 @@ layout: default
24
24
 
25
25
  </article>
26
26
 
27
+ <!-- Post navigation -->
28
+ {% if site.post_navigation %}
29
+ {% include blog/post_nav.html %}
30
+ {% endif %}
31
+
27
32
  <!-- Cusdis -->
28
33
  {% if site.cusdis_app_id %}{% include social/cusdis.html %}{% endif %}
29
34
 
30
35
  <!-- Disqus -->
31
36
  {% if site.disqus_shortname or site.theme_settings.disqus_shortname %}
32
37
  {% include social/disqus.html %}{% endif %}
33
-
34
- <!-- Post navigation -->
35
- {% if site.post_navigation %}
36
- {% include blog/post_nav.html %}
37
- {% endif %}
@@ -1,7 +1,6 @@
1
1
  <!DOCTYPE html>
2
2
  <!--
3
- Type on Strap jekyll theme v2.3.5
4
- Copyright 2016-2021 Sylhare
3
+ Type on Strap jekyll theme v2.3.9
5
4
  Theme free for personal and commercial use under the MIT license
6
5
  https://github.com/sylhare/Type-on-Strap/blob/master/LICENSE
7
6
  -->
data/_layouts/post.html CHANGED
@@ -32,18 +32,21 @@ layout: default
32
32
 
33
33
  </article>
34
34
 
35
+ <!-- Post navigation -->
36
+ {% if site.post_navigation or site.theme_settings.post_navigation %}
37
+ {% include blog/post_nav.html %}
38
+ {% endif %}
39
+
40
+ <!--Utterances-->
41
+ {% if site.comments.utterances.repo and site.comments.utterances.issue-term %} {% include social/utterances.html %} {% endif %}
42
+
35
43
  <!-- Cusdis -->
36
- {% if site.cusdis_app_id %}{% include social/cusdis.html %}{% endif %}
44
+ {% if site.comments.cusdis_app_id or site.cusdis_app_id %}{% include social/cusdis.html %}{% endif %}
37
45
 
38
46
  <!-- Disqus -->
39
- {% if site.disqus_shortname or site.theme_settings.disqus_shortname %}
47
+ {% if site.comments.disqus_shortname or site.theme_settings.disqus_shortname or site.disqus_shortname %}
40
48
  {% include social/disqus.html %}{% endif %}
41
49
 
42
- <!-- Post navigation -->
43
- {% if site.post_navigation or site.theme_settings.post_navigation %}
44
- {% include blog/post_nav.html %}
45
- {% endif %}
46
-
47
50
  <!-- To change color of links in the page -->
48
51
  <style>
49
52
  header#main {