type-on-strap 2.3.6 → 2.3.10

Sign up to get free protection for your applications and to get access to all the features.
Files changed (44) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +74 -44
  3. data/_data/icons_builder.yml +82 -0
  4. data/_includes/blog/{blog.html → blog.liquid} +2 -2
  5. data/_includes/blog/{blog_nav.html → blog_nav.liquid} +0 -0
  6. data/_includes/blog/{post_info.html → post_info.liquid} +1 -1
  7. data/_includes/blog/{post_nav.html → post_nav.liquid} +2 -2
  8. data/_includes/default/{footer.html → footer.liquid} +1 -1
  9. data/_includes/default/{head.html → head.liquid} +5 -7
  10. data/_includes/default/{navbar.html → navbar.liquid} +0 -0
  11. data/_includes/default/{tags_list.html → tags_list.liquid} +1 -1
  12. data/_includes/social/{cusdis.html → cusdis.liquid} +2 -2
  13. data/_includes/social/{disqus.html → disqus.liquid} +1 -1
  14. data/_includes/social/icons.liquid +36 -0
  15. data/_includes/social/{share_buttons.html → share_buttons.liquid} +0 -0
  16. data/_includes/social/utterances.liquid +8 -0
  17. data/_layouts/{custom.md → custom.liquid} +5 -5
  18. data/_layouts/default.html +4 -5
  19. data/_layouts/{home.html → home.liquid} +1 -1
  20. data/_layouts/{page.html → page.liquid} +1 -1
  21. data/_layouts/{post.html → post.liquid} +13 -10
  22. data/_layouts/{search.html → search.liquid} +1 -1
  23. data/_layouts/{tags.html → tags.liquid} +4 -4
  24. data/_sass/base/_global.scss +52 -13
  25. data/_sass/base/_highlight.scss +4 -4
  26. data/_sass/base/_variables.scss +50 -51
  27. data/_sass/external/_font-awesome.scss +1 -0
  28. data/_sass/external/font-awesome/_stacked.scss +1 -1
  29. data/_sass/includes/_footer.scss +2 -2
  30. data/_sass/includes/{_grid.scss → _gallery.scss} +0 -0
  31. data/_sass/layouts/_blog.scss +6 -2
  32. data/_sass/layouts/_posts.scss +4 -3
  33. data/_sass/type-on-strap.scss +36 -10
  34. data/assets/data/{search.json → search.liquid} +0 -0
  35. data/assets/js/main.min.js +1 -1
  36. data/assets/js/partials/cookie_consent_init.js +2 -1
  37. data/assets/js/partials/dark-mode.js +3 -2
  38. data/assets/js/partials/masonry_init.js +1 -1
  39. data/assets/js/partials/navbar.js +1 -1
  40. metadata +26 -27
  41. data/_includes/social/icon_partial.html +0 -11
  42. data/_includes/social/icons.html +0 -107
  43. data/_sass/includes/_cookie_consent.scss +0 -17
  44. data/_sass/includes/_mermaid.scss +0 -8
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7ec12a9dd9f1ebb6a121accb434aac3199012abe93ae3b1cc59e2b0d3e7f233a
4
- data.tar.gz: f344537349f557bc2a2c2fe88701ba3fcb8f02ba809c9f0d2721f23ec960bfe2
3
+ metadata.gz: 8f74bb3beff5e55d7d9d2e26dff05d00dce42716ddc98260095f3ab700cf48d1
4
+ data.tar.gz: 81a134f5f4f12416300eeb9a45dc14a9c2624475ca0fcefffd4dfcf4e08006cd
5
5
  SHA512:
6
- metadata.gz: fe97b6348c8829c62dad820f42e16afaad782f88b7a291ba0062ea4015d4651aa4882134b7652a2c9100b0e3da9bada778444fa4bc47ef3e4db4fd4c9f165c3e
7
- data.tar.gz: 0a848716a49bf9efe3bc19c1e10a6d4e4606356ce57e09ceb2a04750c38b619eeacff77c1254d9a65f8a993a5243f3941d8cc6f59a0af5ce1eb4fd8ad7627071
6
+ metadata.gz: 5af3d06b1ccccf281dcbf2a6bb0610ed4e6ee373faa94058d46d7b7e040496cec13ac8f81832226223be5e78c996f0cb75bb07ceb9ad548e8697ad7480af310c
7
+ data.tar.gz: 5b7363d7662612addf86084e81b2e658c331b9e7b10d9d3d79708690eec7b6a63b106804e21d15c19337c9e2c1c1f077a83d5668b85a4127ad6aa54f09fb99dc
data/README.md CHANGED
@@ -1,6 +1,6 @@
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
 
@@ -10,6 +10,7 @@ A free and open-source [Jekyll](https://jekyllrb.com) theme. Based on Rohan Chan
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
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)
@@ -21,7 +22,7 @@ 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
+ > [Demo Site](https://sylhare.github.io/Type-on-Strap/)
25
26
 
26
27
  ## Usage
27
28
 
@@ -29,6 +30,8 @@ A free and open-source [Jekyll](https://jekyllrb.com) theme. Based on Rohan Chan
29
30
 
30
31
  Check out this tutorial: [Use as Ruby Gem](#use-as-ruby-gem-)
31
32
 
33
+ [![Open in Gitpod](https://gitpod.io/button/open-in-gitpod.svg)](https://gitpod.io/#/https://github.com/sylhare/Type-On-Strap)
34
+
32
35
  ### As a github page 📋
33
36
 
34
37
  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`
@@ -42,16 +45,16 @@ Check out this tutorial: [Use as Ruby Gem](#use-as-ruby-gem-)
42
45
 
43
46
  Here are the main files of the template
44
47
 
45
- ```bash
48
+ ```shell
46
49
  Type-on-Strap
47
- ├── _includes # theme includes
48
- ├── _layouts # theme layouts (see below for details)
49
- ├── _portfolio # collection of article to be populated in the portfolio page
50
+ ├── _includes # Theme includes
51
+ ├── _layouts # Theme layouts (see below for details)
52
+ ├── _portfolio # Collection of articles for the portfolio page
50
53
  ├── _posts # Blog posts
51
- ├── _sass # Sass partials
54
+ ├── _sass # Sass partials (compiled into css at runtime)
52
55
  ├── assets
53
- | ├── js # theme javascript, Katex, jquery, bootstrap, jekyll search,
54
- | ├── css # isolated Bootstrap, font-awesome, katex and main css
56
+ | ├── js # JS compiled for distribution + raw sources
57
+ | ├── css # CSS compiled for distribution
55
58
  | ├── fonts # Font-Awesome, and other fonts
56
59
  | └── img # Images used for the template
57
60
  ├── pages
@@ -59,13 +62,15 @@ Type-on-Strap
59
62
  | ├── about.md # About example page
60
63
  | ├── gallery.md # Gallery page for your photos
61
64
  | ├── portfolio.md # Portfolio page for your projects
62
- | ├── search.html # Search page
65
+ | ├── search.md # Search page
63
66
  | └── tags.md # The tag page
64
67
  ├── _config.yml # sample configuration
65
68
  ├── _data.yml
66
69
  | ├── authors.yml # Update the post authors configurations
67
70
  | ├── language.yml # Localization configuration
68
- | └── social.yml # Social configurations (RSS, Twitter, ...)
71
+ | ├── biblio.yml # To create a reference bibliography
72
+ | ├── social.yml # Social configurations to share posts (RSS, shares, ...)
73
+ | └── icons.yml # Footer icons (Twitter, Github, Stackoverflow, ...)
69
74
  └── index.html # sample home page (blog page paginated)
70
75
  ```
71
76
 
@@ -75,12 +80,13 @@ Open `_config.yml` in a text editor to change most of the blog's settings.
75
80
 
76
81
  If a variable in this document is marked as "optional", disable the feature by removing all text from the variable.
77
82
 
78
-
79
83
  ### Site configuration
80
84
 
85
+ #### Base url
86
+
81
87
  Configure Jekyll as your own blog or with a "baseurl" in `_config.yml`:
82
88
 
83
- Jekyll website *without* a "baseurl" (such as a GitHub Pages website for a given username):
89
+ Jekyll website *without* a "baseurl" (such as a **GitHub Pages website** with your username as the repository name):
84
90
 
85
91
  ```yml
86
92
  baseurl: ""
@@ -91,21 +97,33 @@ Jekyll website *with* "baseurl" (like the Type on Strap [demo](https://sylhare.g
91
97
 
92
98
  ```yml
93
99
  baseurl: "/sub-directory"
94
- url: "https://username.github.io/"
100
+ url: "https://username.github.io"
95
101
  ```
96
102
 
97
- Please configure this before using the theme.
103
+ #### Jekyll blog configuration
98
104
 
99
- ### Meta and Branding
105
+ And here is the basic information you will need in your `_config.yml` for it to work properly:
106
+
107
+ ```yaml
108
+ # BLOG CONFIGURATION
109
+ post_navigation: true
110
+ paginate: 10
111
+ paginate_path: "blog/page:num"
112
+ plugins: [jekyll-paginate, jekyll-seo-tag, jekyll-feed]
113
+ ```
114
+
115
+ To configure the blog part and default plugins. Those plugins are validated by GitHub page.
116
+
117
+ #### Meta and Branding
100
118
 
101
119
  Meta variables hold basic information about your Jekyll site which will be used throughout the site
102
- and as meta properties for search engines, browsers, and the site's RSS feed.
120
+ and as meta properties that are used for search engines, browsers, and the site's RSS feed.
103
121
 
104
122
  Change these variables in `_config.yml`:
105
123
 
106
124
  ```yml
107
125
  title: My Jekyll Blog # Name of website
108
- avatar: assets/img/triangle.png # Path of avatar image, to be displayed in the theme's header
126
+ avatar: assets/img/avatar.png # Path of avatar image, to be displayed in the theme's header
109
127
  description: My blog posts # Short description, primarily used by search engines
110
128
  favicon: assets/favicon.ico # Icon displayed in the tab
111
129
  color_theme: auto # color theme auto, dark or light
@@ -145,18 +163,18 @@ to `_config.yml` like so:
145
163
  google_analytics: UA-NNNNNNNN-N
146
164
  ```
147
165
 
148
- ### Comments
166
+ ### Comments 💬
149
167
 
150
168
  #### Disqus
151
169
 
152
- Optionally, if you have a [Disqus](https://disqus.com/) account, you can show a
153
- comments section below each post.
170
+ If you have a [Disqus](https://disqus.com/) account, you can show a comments section below each post.
154
171
 
155
172
  To enable Disqus comments, add your [Disqus shortname](https://help.disqus.com/customer/portal/articles/466208)
156
173
  to your project's `_config.yml` file:
157
174
 
158
175
  ```yml
159
- disqus_shortname: my_disqus_shortname
176
+ comments:
177
+ disqus_shortname: my_disqus_shortname
160
178
  ```
161
179
 
162
180
  #### Cusdis
@@ -167,7 +185,25 @@ You can read more about it in the [documentation](https://cusdis.com/doc#/)
167
185
  To enable it, set your cusdis name in `_config.yml`:
168
186
 
169
187
  ```yaml
170
- cusdis_app_id: my_data-app-id
188
+ comments:
189
+ cusdis_app_id: my_data-app-id
190
+ ```
191
+
192
+ #### Utterances
193
+
194
+ [Utterances](https://utteranc.es) is another open source alternative linked to one's GitHub account.
195
+ It stores the comments as GitHub issues on a repository for each page.
196
+
197
+ Install the utterance [app](https://github.com/apps/utterances) to your repo.
198
+ After installing, add your info in the `_config.yml`:
199
+
200
+ ```yaml
201
+ comments:
202
+ utterances: # Enable by filling below information. For more info, go to https://utteranc.es
203
+ repo: # your public comments repository (e.g. owner/repo)
204
+ issue-term: # Issue term (e.g. "comment" consider issues with this word in the title as comments)
205
+ theme: # OPTIONAL: Take the `color_theme` by default, or set a custom one like github-dark-orange
206
+ label: # OPTIONAL: Adds an issue label in the issue
171
207
  ```
172
208
 
173
209
  ### Math typesetting with KateX
@@ -220,9 +256,13 @@ sequenceDiagram
220
256
 
221
257
  ### Social icons
222
258
 
223
- In `_data/social.yml` you can customize the social icons from other website you wish to display in the blog.
259
+ In `_data/social.yml` you can customize the social icons that will be displayed in the post to share your post.
260
+ You can also enable RSS.
224
261
  The site icons come from [Font Awesome](https://fontawesome.com/).
225
262
 
263
+ In `_data/icons.yml` you can set the footer icon that will appear at the bottom of the page.
264
+ They will redirect the user on your profile on the other platform like Twitter, GitHub and so many more!
265
+
226
266
  ### Cookie consent
227
267
 
228
268
  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).
@@ -236,20 +276,11 @@ to share the article on those platform.
236
276
 
237
277
  #### Footer
238
278
 
239
- Display in the footer.
240
- All icon variables should be your username enclosed in quotes (e.g. "username") in `_data/social.yml`,
241
- except for the following variables:
242
-
243
- ```yml
244
- rss: true
245
- email_address: type@example.com
246
- linkedin: https://www.linkedin.com/in/FirstLast
247
- stack_exchange: https://stackexchangecom/users/0000/first-last
248
- stack_overflow: https://stackoverflow.com/users/0000/first-last
249
- youtube: UCqECaJ8Gagnn7YCbPEzWH6g # Youtube token of your channel in the url
250
- ```
279
+ Display icons in the footer.
280
+ All icon variables should be your username enclosed in quotes (e.g. "username") in `_data/icons.yml`.
251
281
 
252
282
  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)).
283
+ 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.
253
284
 
254
285
  ### Personalize your Blog Posts 📝
255
286
 
@@ -332,7 +363,7 @@ Use it in any markdown file. There are two fields in the _include_ you need to l
332
363
 
333
364
  #### Code highlight
334
365
 
335
- Like all CSS variables in the theme, you can edit the color of the code highlight in *_sass > base > _variables.scss*.
366
+ Like all CSS variables in the theme, you can edit the color of the code highlight in `_sass > base > _variables.scss`.
336
367
  The code highlighting works with [base16](https://github.com/chriskempson/base16-html-previews/tree/master/css) you can find existing example
337
368
  of your favourite highlight color scheme on this format.
338
369
 
@@ -348,7 +379,7 @@ Non-standard features are documented below.
348
379
  ### Layout: Default
349
380
 
350
381
  This layout includes the head, navigation bar and footer around your content.
351
- Unless you're making a custom layout you won't need it.
382
+ Unless you are making a custom layout you won't need it.
352
383
 
353
384
  ### Layout: Home 🏡
354
385
 
@@ -371,7 +402,7 @@ layout: page
371
402
  title: "About"
372
403
  subtitle: "This is a subtitle"
373
404
  feature-img: "assets/img/sample.png"
374
- permalink: /about.html # Set a permalink your your page
405
+ permalink: /about/ # Set a permalink your your page
375
406
  hide: true # Prevent the page title to appear in the navbar
376
407
  icon: "fa-search" # Will Display only the fontawesome icon (here: fa-search) and not the title
377
408
  tags: [sample, markdown, html]
@@ -445,13 +476,12 @@ gallery: "assets/img/pexels"
445
476
  {% include default/gallery.html gallery_path=page.gallery %}
446
477
  ```
447
478
 
448
-
449
479
  ### Feature: Search 🔍
450
480
 
451
481
  The search feature is based on [Simple-Jekyll-search](https://github.com/christian-fei/Simple-Jekyll-Search)
452
- there is a `search.json` file that will create a list of all the site posts, pages and portfolios.
482
+ there is a `search.liquid` file that will create a list of all the site posts, pages and portfolios.
453
483
 
454
- Then there's a `search.js` displaying the formatted results entered in the `search.html` page.
484
+ Then there's a `search.js` displaying the formatted results in the "search page".
455
485
 
456
486
  The search page can be hidden with the `hide` option. You can remove the icon by removing `icon`:
457
487
 
@@ -482,7 +512,7 @@ tags: [sample, markdown, html]
482
512
 
483
513
  > Tags are case-sensitive `Tag_nAme` ≠ `tag_name`
484
514
 
485
- All the tags will be listed in `tags.html` with a link toward the pages or posts.
515
+ All the tags will be listed the tags page with a link toward the pages or posts.
486
516
  The Tag page can be hidden with the `hide` option. You can remove the icon by removing `icon` (like for the search page).
487
517
 
488
518
  ## Advanced
@@ -548,7 +578,7 @@ Nothing will happen if the file exists already.
548
578
 
549
579
  You can use Type-on-strap as a [gem](https://rubygems.org/gems/type-on-strap).
550
580
 
551
- Ruby Gem Method
581
+ Using the [Ruby Gem Method](https://sylhare.github.io/2021/03/25/Run-type-on-strap-jekyll-theme-locally.html).
552
582
  Add this line to your Jekyll site's Gemfile (or create one):
553
583
 
554
584
  ```ruby
@@ -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/"
@@ -18,7 +18,7 @@
18
18
  {{ post.title }}
19
19
  </a>
20
20
  </h1>
21
- {% include blog/post_info.html author=post.author date=post.date %}
21
+ {% include blog/post_info.liquid author=post.author date=post.date %}
22
22
  </header>
23
23
  {% if site.excerpt or site.theme_settings.excerpt %}
24
24
  <div class="excerpt">
@@ -34,4 +34,4 @@
34
34
  {% endfor %}
35
35
  </div>
36
36
 
37
- {% include blog/blog_nav.html %}
37
+ {% include blog/blog_nav.liquid %}
File without changes
@@ -2,7 +2,7 @@
2
2
  {% assign date = include.date | default: "today" | date: "%B %-d, %Y" %}
3
3
 
4
4
  <div class="post-info">
5
- {%- if author.url -%}<a href="{{ author.url | relative_url }}" target="_blank">{%- endif -%}
5
+ {%- if author.url -%}<a href="{{ author.url | relative_url }}" target="_blank" rel="noopener">{%- endif -%}
6
6
  {% if author.avatar %}
7
7
  <img alt="Author's avatar" src="{{ author.avatar | relative_url }}">
8
8
  {% endif %}
@@ -1,7 +1,7 @@
1
1
  <div id="post-nav">
2
2
  {% if page.next.url %}
3
3
  <div id="previous-post">
4
- <a alt="{{ page.next.title }}" href="{{ page.next.url | relative_url }}">
4
+ <a alt="{{ page.next.title }}" href="{{ page.next.url | relative_url | default: 'none' }}">
5
5
  <p>{{ site.data.language.str_previous_post | default: "Previous post" }}</p>
6
6
  {{ page.next.title }}
7
7
  </a>
@@ -10,7 +10,7 @@
10
10
 
11
11
  {% if page.previous.url %}
12
12
  <div id="next-post">
13
- <a alt="{{ page.previous.title }}" href="{{ page.previous.url | relative_url }}">
13
+ <a alt="{{ page.previous.title }}" href="{{ page.previous.url | relative_url | default: 'none' }}">
14
14
  <p>{{ site.data.language.str_next_post | default: "Next post"}}</p>
15
15
  {{ page.previous.title }}
16
16
  </a>
@@ -4,7 +4,7 @@
4
4
  <div class="footer-icons">
5
5
  <ul>
6
6
  <!-- Social icons from Font Awesome, if enabled -->
7
- {% include social/icons.html %}
7
+ {% include social/icons.liquid %}
8
8
  </ul>
9
9
  </div>
10
10
  </footer>
@@ -17,25 +17,22 @@
17
17
 
18
18
  <!-- Main JS (navbar.js, katex_init.js and masonry_init.js)-->
19
19
  <script defer src="{{ '/assets/js/main.min.js' | relative_url }}"></script>
20
-
20
+
21
21
  <!-- CSS -->
22
22
  <link rel="stylesheet" href="{{ '/assets/css/main.css' | relative_url }}">
23
23
 
24
24
  <!--Favicon-->
25
25
  <link rel="shortcut icon" href="{{ site.favicon | relative_url }}" type="image/x-icon">
26
26
 
27
- <!-- RSS -->
28
- <link rel="alternate" type="application/atom+xml" title="{{ site.title | default: 'Title' }}" href="{{ 'feed.xml' | absolute_url }}"/>
29
-
30
27
  {% if page.bootstrap %}
31
28
  <!-- Bootstrap-4.1.3 isolation CSS -->
32
29
  <link rel="stylesheet" type="text/css" href="{{ '/assets/css/vendor/bootstrap-iso.min.css' | relative_url }}">
33
30
  <!-- 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>
31
+ <script defer src="https://code.jquery.com/jquery-3.3.1.slim.min.js" integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo" crossorigin="anonymous"></script>
35
32
  <!-- 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>
33
+ <script defer src="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/js/bootstrap.min.js" integrity="sha384-ChfqqxuZUCnJSK3+MXmPNIyE6ZbWh2IMqE241rYiqJxyMiZ6OW/JmZQ5stwEULTy" crossorigin="anonymous"></script>
37
34
  <!-- 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>
35
+ <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
36
  {% endif %}
40
37
 
41
38
  <!-- KaTeX 0.13.9 -->
@@ -79,6 +76,7 @@
79
76
  {% seo %}
80
77
 
81
78
  <!-- RSS -->
79
+ <link rel="alternate" type="application/atom+xml" title="{{ site.title | default: 'Title' }}" href="{{ 'feed.xml' | absolute_url }}"/>
82
80
  {% feed_meta %}
83
81
 
84
82
  <!-- Twitter Cards -->
File without changes
@@ -10,7 +10,7 @@
10
10
  {% endif %}
11
11
 
12
12
  {% for tag in tags %}
13
- <li><a class="button" href="{{ '/tags' | relative_url }}#{{ tag | cgi_escape }}">
13
+ <li><a class="button" href="#{{ tag | cgi_escape }}">
14
14
  <p><i class="fas fa-tag fa-fw fa-sm"></i> {{ tag }}</p>
15
15
  </a></li>
16
16
  {% endfor %}
@@ -1,6 +1,6 @@
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 }}"
@@ -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';
@@ -0,0 +1,36 @@
1
+ {% if site.data.social.rss or site.theme_settings.rss %}
2
+ <li>
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' }}"
5
+ target="_blank">
6
+ <span class="fa-stack fa-lg">
7
+ <i class="fas fa-circle fa-stack-2x"></i>
8
+ <i class="fas fa-rss fa-stack-1x fa-inverse"></i>
9
+ </span>
10
+ </a>
11
+ </li>
12
+ {% endif %}
13
+
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="noopener">
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>
@@ -8,7 +8,7 @@ layout: default
8
8
  <h1 id="{{ page.title | cgi_escape }}" class="title">{{ page.title }}</h1>
9
9
  {% endunless %}
10
10
  {% if page.is_post %}
11
- {% include blog/post_info.html author=page.author date=page.date %}
11
+ {% include blog/post_info.liquid author=page.author date=page.date %}
12
12
  {% endif %}
13
13
  </header>
14
14
  <section class="post-content">{{ content }}</section>
@@ -19,19 +19,19 @@ layout: default
19
19
 
20
20
  <!-- Tag list -->
21
21
  {% capture tag_list %}{{ page.tags | join: "|"}}{% endcapture %}
22
- {% include default/tags_list.html tags=tag_list %}
22
+ {% include default/tags_list.liquid tags=tag_list %}
23
23
  </div>
24
24
 
25
25
  </article>
26
26
 
27
27
  <!-- Post navigation -->
28
28
  {% if site.post_navigation %}
29
- {% include blog/post_nav.html %}
29
+ {% include blog/post_nav.liquid %}
30
30
  {% endif %}
31
31
 
32
32
  <!-- Cusdis -->
33
- {% if site.cusdis_app_id %}{% include social/cusdis.html %}{% endif %}
33
+ {% if site.cusdis_app_id %}{% include social/cusdis.liquid %}{% endif %}
34
34
 
35
35
  <!-- Disqus -->
36
36
  {% if site.disqus_shortname or site.theme_settings.disqus_shortname %}
37
- {% include social/disqus.html %}{% endif %}
37
+ {% include social/disqus.liquid %}{% endif %}
@@ -1,17 +1,16 @@
1
1
  <!DOCTYPE html>
2
2
  <!--
3
- Type on Strap jekyll theme v2.3.6
4
- Copyright 2016-2021 Sylhare
3
+ Type on Strap jekyll theme v2.3.10
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
  -->
8
7
  <html lang="en">
9
- {% include default/head.html %}
8
+ {% include default/head.liquid %}
10
9
  <body>
11
- {% include default/navbar.html %}
10
+ {% include default/navbar.liquid %}
12
11
  <div class="content">
13
12
  {{ content }}
14
13
  </div>
15
- {% include default/footer.html %}
14
+ {% include default/footer.liquid %}
16
15
  </body>
17
16
  </html>
@@ -9,6 +9,6 @@ layout: default
9
9
  <h1> {{ site.header_text | default: "Change <code>header_text</code> in <code>_config.yml</code>"}} </h1>
10
10
  </div>
11
11
 
12
- {% include blog/blog.html %}
12
+ {% include blog/blog.liquid %}
13
13
 
14
14
  </div>
@@ -30,6 +30,6 @@ layout: default
30
30
 
31
31
  <!-- Tag list for portfolio -->
32
32
  {% capture tag_list %}{{ page.tags | join: "|"}}{% endcapture %}
33
- {% include default/tags_list.html tags=tag_list %}
33
+ {% include default/tags_list.liquid tags=tag_list %}
34
34
 
35
35
  </article>