type-on-strap 2.3.9 → 2.3.10

Sign up to get free protection for your applications and to get access to all the features.
Files changed (31) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +17 -16
  3. data/_includes/blog/{blog.html → blog.liquid} +2 -2
  4. data/_includes/blog/{blog_nav.html → blog_nav.liquid} +0 -0
  5. data/_includes/blog/{post_info.html → post_info.liquid} +1 -1
  6. data/_includes/blog/{post_nav.html → post_nav.liquid} +2 -2
  7. data/_includes/default/{footer.html → footer.liquid} +1 -1
  8. data/_includes/default/{head.html → head.liquid} +2 -4
  9. data/_includes/default/{navbar.html → navbar.liquid} +0 -0
  10. data/_includes/default/{tags_list.html → tags_list.liquid} +1 -1
  11. data/_includes/social/{cusdis.html → cusdis.liquid} +0 -0
  12. data/_includes/social/{disqus.html → disqus.liquid} +0 -0
  13. data/_includes/social/{icons.html → icons.liquid} +1 -1
  14. data/_includes/social/{share_buttons.html → share_buttons.liquid} +0 -0
  15. data/_includes/social/{utterances.html → utterances.liquid} +0 -0
  16. data/_layouts/{custom.md → custom.liquid} +5 -5
  17. data/_layouts/default.html +4 -4
  18. data/_layouts/{home.html → home.liquid} +1 -1
  19. data/_layouts/{page.html → page.liquid} +1 -1
  20. data/_layouts/{post.html → post.liquid} +10 -10
  21. data/_layouts/{search.html → search.liquid} +1 -1
  22. data/_layouts/{tags.html → tags.liquid} +4 -4
  23. data/_sass/external/_font-awesome.scss +1 -0
  24. data/_sass/external/font-awesome/_stacked.scss +1 -1
  25. data/assets/data/{search.json → search.liquid} +0 -0
  26. data/assets/js/main.min.js +1 -1
  27. data/assets/js/partials/cookie_consent_init.js +2 -1
  28. data/assets/js/partials/dark-mode.js +3 -2
  29. data/assets/js/partials/masonry_init.js +1 -1
  30. data/assets/js/partials/navbar.js +1 -1
  31. metadata +22 -22
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2fb748c9fa85515434e6df47ed36f442144eeba3be73aa87f9d2436ccfb6f922
4
- data.tar.gz: 07eb817e9d64afb913dadff99e3d90531f3212816caa66d17fb43978b6d591d4
3
+ metadata.gz: 8f74bb3beff5e55d7d9d2e26dff05d00dce42716ddc98260095f3ab700cf48d1
4
+ data.tar.gz: 81a134f5f4f12416300eeb9a45dc14a9c2624475ca0fcefffd4dfcf4e08006cd
5
5
  SHA512:
6
- metadata.gz: b19d1053042fe0bbf1385d2dc09ea0ca5b09ed8d25bc0cc034080c6bd5931d1fef234986f6223dfb4e7fe57b4311be4bc31fea2b332f5c961ad479782b0154d4
7
- data.tar.gz: 9862842c52c883cc4458af398b990d06eab2c67676f2e32528d0dca7123947f51693d477c0c4c7db6b7238245ddf82e0f584aa5b2254613b82990c3d175e8871
6
+ metadata.gz: 5af3d06b1ccccf281dcbf2a6bb0610ed4e6ee373faa94058d46d7b7e040496cec13ac8f81832226223be5e78c996f0cb75bb07ceb9ad548e8697ad7480af310c
7
+ data.tar.gz: 5b7363d7662612addf86084e81b2e658c331b9e7b10d9d3d79708690eec7b6a63b106804e21d15c19337c9e2c1c1f077a83d5668b85a4127ad6aa54f09fb99dc
data/README.md CHANGED
@@ -45,16 +45,16 @@ Check out this tutorial: [Use as Ruby Gem](#use-as-ruby-gem-)
45
45
 
46
46
  Here are the main files of the template
47
47
 
48
- ```bash
48
+ ```shell
49
49
  Type-on-Strap
50
- ├── _includes # theme includes
51
- ├── _layouts # theme layouts (see below for details)
52
- ├── _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
53
53
  ├── _posts # Blog posts
54
- ├── _sass # Sass partials
54
+ ├── _sass # Sass partials (compiled into css at runtime)
55
55
  ├── assets
56
- | ├── js # theme javascript, Katex, jquery, bootstrap, jekyll search,
57
- | ├── css # isolated Bootstrap, font-awesome, katex and main css
56
+ | ├── js # JS compiled for distribution + raw sources
57
+ | ├── css # CSS compiled for distribution
58
58
  | ├── fonts # Font-Awesome, and other fonts
59
59
  | └── img # Images used for the template
60
60
  ├── pages
@@ -62,12 +62,13 @@ Type-on-Strap
62
62
  | ├── about.md # About example page
63
63
  | ├── gallery.md # Gallery page for your photos
64
64
  | ├── portfolio.md # Portfolio page for your projects
65
- | ├── search.html # Search page
65
+ | ├── search.md # Search page
66
66
  | └── tags.md # The tag page
67
67
  ├── _config.yml # sample configuration
68
68
  ├── _data.yml
69
69
  | ├── authors.yml # Update the post authors configurations
70
70
  | ├── language.yml # Localization configuration
71
+ | ├── biblio.yml # To create a reference bibliography
71
72
  | ├── social.yml # Social configurations to share posts (RSS, shares, ...)
72
73
  | └── icons.yml # Footer icons (Twitter, Github, Stackoverflow, ...)
73
74
  └── index.html # sample home page (blog page paginated)
@@ -111,7 +112,7 @@ paginate_path: "blog/page:num"
111
112
  plugins: [jekyll-paginate, jekyll-seo-tag, jekyll-feed]
112
113
  ```
113
114
 
114
- To configure the blog part and default pluginshose plugins are validated by GitHub page.
115
+ To configure the blog part and default plugins. Those plugins are validated by GitHub page.
115
116
 
116
117
  #### Meta and Branding
117
118
 
@@ -122,7 +123,7 @@ Change these variables in `_config.yml`:
122
123
 
123
124
  ```yml
124
125
  title: My Jekyll Blog # Name of website
125
- 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
126
127
  description: My blog posts # Short description, primarily used by search engines
127
128
  favicon: assets/favicon.ico # Icon displayed in the tab
128
129
  color_theme: auto # color theme auto, dark or light
@@ -362,7 +363,7 @@ Use it in any markdown file. There are two fields in the _include_ you need to l
362
363
 
363
364
  #### Code highlight
364
365
 
365
- 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`.
366
367
  The code highlighting works with [base16](https://github.com/chriskempson/base16-html-previews/tree/master/css) you can find existing example
367
368
  of your favourite highlight color scheme on this format.
368
369
 
@@ -378,7 +379,7 @@ Non-standard features are documented below.
378
379
  ### Layout: Default
379
380
 
380
381
  This layout includes the head, navigation bar and footer around your content.
381
- 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.
382
383
 
383
384
  ### Layout: Home 🏡
384
385
 
@@ -401,7 +402,7 @@ layout: page
401
402
  title: "About"
402
403
  subtitle: "This is a subtitle"
403
404
  feature-img: "assets/img/sample.png"
404
- permalink: /about.html # Set a permalink your your page
405
+ permalink: /about/ # Set a permalink your your page
405
406
  hide: true # Prevent the page title to appear in the navbar
406
407
  icon: "fa-search" # Will Display only the fontawesome icon (here: fa-search) and not the title
407
408
  tags: [sample, markdown, html]
@@ -478,9 +479,9 @@ gallery: "assets/img/pexels"
478
479
  ### Feature: Search 🔍
479
480
 
480
481
  The search feature is based on [Simple-Jekyll-search](https://github.com/christian-fei/Simple-Jekyll-Search)
481
- 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.
482
483
 
483
- 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".
484
485
 
485
486
  The search page can be hidden with the `hide` option. You can remove the icon by removing `icon`:
486
487
 
@@ -511,7 +512,7 @@ tags: [sample, markdown, html]
511
512
 
512
513
  > Tags are case-sensitive `Tag_nAme` ≠ `tag_name`
513
514
 
514
- 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.
515
516
  The Tag page can be hidden with the `hide` option. You can remove the icon by removing `icon` (like for the search page).
516
517
 
517
518
  ## Advanced
@@ -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,16 +17,13 @@
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 }}">
@@ -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 %}
File without changes
File without changes
@@ -25,7 +25,7 @@
25
25
  <a href="{{ data.pre | append: id | append: data.pos }}"
26
26
  title="{{ site.data.language.str_follow_on }} {{ brand | remove: '-' | capitalize }}"
27
27
  target="_blank"
28
- rel="me">
28
+ rel="noopener">
29
29
  <span class="fa-stack fa-lg">
30
30
  <i class="fas fa-circle fa-stack-2x"></i>
31
31
  <i class="{{ icon }} fa-stack-1x fa-inverse"></i>
@@ -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,16 +1,16 @@
1
1
  <!DOCTYPE html>
2
2
  <!--
3
- Type on Strap jekyll theme v2.3.9
3
+ Type on Strap jekyll theme v2.3.10
4
4
  Theme free for personal and commercial use under the MIT license
5
5
  https://github.com/sylhare/Type-on-Strap/blob/master/LICENSE
6
6
  -->
7
7
  <html lang="en">
8
- {% include default/head.html %}
8
+ {% include default/head.liquid %}
9
9
  <body>
10
- {% include default/navbar.html %}
10
+ {% include default/navbar.liquid %}
11
11
  <div class="content">
12
12
  {{ content }}
13
13
  </div>
14
- {% include default/footer.html %}
14
+ {% include default/footer.liquid %}
15
15
  </body>
16
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>
@@ -8,7 +8,7 @@ layout: default
8
8
  <div class="feature-image-padding"></div>
9
9
  {% else %}
10
10
  <h1 id="{{ page.title | cgi_escape }}" class="title">{{ page.title }}</h1>
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
  </div>
14
14
  </header>
@@ -24,28 +24,28 @@ layout: default
24
24
  </section>
25
25
 
26
26
  <!-- Social media shares -->
27
- {% include social/share_buttons.html %}
27
+ {% include social/share_buttons.liquid %}
28
28
 
29
29
  <!-- Tag list -->
30
30
  {% capture tag_list %}{{ page.tags | join: "|"}}{% endcapture %}
31
- {% include default/tags_list.html tags=tag_list %}
31
+ {% include default/tags_list.liquid tags=tag_list %}
32
32
 
33
33
  </article>
34
34
 
35
35
  <!-- Post navigation -->
36
36
  {% if site.post_navigation or site.theme_settings.post_navigation %}
37
- {% include blog/post_nav.html %}
37
+ {% include blog/post_nav.liquid %}
38
38
  {% endif %}
39
39
 
40
40
  <!--Utterances-->
41
- {% if site.comments.utterances.repo and site.comments.utterances.issue-term %} {% include social/utterances.html %} {% endif %}
41
+ {% if site.comments.utterances.repo and site.comments.utterances.issue-term %} {% include social/utterances.liquid %} {% endif %}
42
42
 
43
43
  <!-- Cusdis -->
44
- {% if site.comments.cusdis_app_id or site.cusdis_app_id %}{% include social/cusdis.html %}{% endif %}
44
+ {% if site.comments.cusdis_app_id or site.cusdis_app_id %}{% include social/cusdis.liquid %}{% endif %}
45
45
 
46
46
  <!-- Disqus -->
47
47
  {% if site.comments.disqus_shortname or site.theme_settings.disqus_shortname or site.disqus_shortname %}
48
- {% include social/disqus.html %}{% endif %}
48
+ {% include social/disqus.liquid %}{% endif %}
49
49
 
50
50
  <!-- To change color of links in the page -->
51
51
  <style>
@@ -54,18 +54,18 @@ layout: default
54
54
  background-repeat: no-repeat;
55
55
  background-position: center;
56
56
  }
57
-
57
+
58
58
  {% if page.color %}
59
59
  .feature-image a { color: {{ page.color }} !important; }
60
60
  div#post-nav a { color: {{ page.color }} !important; }
61
61
  footer a { color: {{ page.color }} !important; }
62
62
  .site-header nav a:hover { color: {{ page.color }} !important; }
63
- header#main {
63
+ header#main {
64
64
  background-color: {{ page.color }} !important;
65
65
  background-image: url('{{ site.color_image | relative_url }}');
66
66
  }
67
67
  {% endif %}
68
-
68
+
69
69
  {% if page.feature-img %}
70
70
  header#main { background-image: url('{{ page.feature-img | relative_url }}'); }
71
71
  {% endif %}
@@ -13,7 +13,7 @@ layout: page
13
13
  SimpleJekyllSearch({
14
14
  searchInput: document.getElementById('search-input'),
15
15
  resultsContainer: document.getElementById('results-container'),
16
- json: '{{ "/assets/data/search.json" | relative_url }}',
16
+ json: '{{ "/assets/data/search.liquid" | relative_url }}',
17
17
  searchResultTemplate: '<div class="search-title"><a href="{url}"><h3> {title}</h3></a><div class="meta">{date} <div class="right"><i class="fas fa-tag"></i> {tags}</div></div><p>{excerpt}</p></div><hr> ',
18
18
  noResultsText: '{{ site.data.language.str_no_result_found | default: "No result found" }}',
19
19
  limit: 10,
@@ -29,7 +29,7 @@ layout: page
29
29
  {% endfor %}
30
30
 
31
31
  <!-- Displays the list of tags-->
32
- {% include default/tags_list.html tags=rawtags %}
32
+ {% include default/tags_list.liquid tags=rawtags %}
33
33
 
34
34
  <!-- Displays the posts and pages that contains the tag-->
35
35
  <div class="posts">
@@ -51,7 +51,7 @@ layout: page
51
51
  <i class="far fa-file-image" aria-hidden="true"></i>
52
52
  {{ page.title }}
53
53
  </a>
54
- {% include blog/post_info.html date=page.date %}
54
+ {% include blog/post_info.liquid date=page.date %}
55
55
  </h5>
56
56
  {% endif %}
57
57
  {% endfor %}
@@ -65,7 +65,7 @@ layout: page
65
65
  {{ post.title }}
66
66
  </a>
67
67
 
68
- {% include blog/post_info.html date=post.date %}
68
+ {% include blog/post_info.liquid date=post.date %}
69
69
  </h5>
70
70
  {% endif %}
71
71
  {% endfor %}
@@ -79,7 +79,7 @@ layout: page
79
79
  {{ note.title }}
80
80
  </a>
81
81
 
82
- {% include blog/post_info.html date=note.date %}
82
+ {% include blog/post_info.liquid date=note.date %}
83
83
  </h5>
84
84
  {% endif %}
85
85
  {% endfor %}
@@ -2,6 +2,7 @@
2
2
  * Font Awesome Free 5.15.2 by @fontawesome - https://fontawesome.com
3
3
  * License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
4
4
  */
5
+ $fa-inverse: var(--background);
5
6
  @import 'font-awesome/variables';
6
7
  @import 'font-awesome/mixins';
7
8
  @import 'font-awesome/core';
@@ -27,5 +27,5 @@
27
27
  }
28
28
 
29
29
  .#{$fa-css-prefix}-inverse {
30
- color: var(--background);
30
+ color: $fa-inverse;
31
31
  }
File without changes
@@ -1 +1 @@
1
- function createCookie(e,t,o){var n,i="";o&&((n=new Date).setTime(n.getTime()+24*o*60*60*1e3),i="; expires="+n.toUTCString()),document.cookie=e+"="+t+i+"; path=/"}function readCookie(e){for(var t=e+"=",o=document.cookie.split(";"),n=0;n<o.length;n++){for(var i=o[n];" "===i.charAt(0);)i=i.substring(1,i.length);if(0===i.indexOf(t))return i.substring(t.length,i.length)}return null}function addCookieConsentListener(){document.getElementById("cookie-notice-accept").addEventListener("click",function(){createCookie(cookieName,"true",31),document.getElementById("cookie-notice").style.display="none",location.reload()})}function googleAnalytics(){function e(){dataLayer.push(arguments)}""!==analyticsName.toLowerCase()&&(window.dataLayer=window.dataLayer||[],e("js",new Date),e("config",analyticsName),window.ga=window.ga||function(){(ga.q=ga.q||[]).push(arguments)},ga.l=+new Date,ga("create",analyticsName,"auto"),ga("send","pageview"))}"true"===isCookieConsent.toLowerCase()?(addCookieConsentListener(),"true"===readCookie(cookieName)?googleAnalytics():document.getElementById("cookie-notice").style.display="block"):googleAnalytics();const themeButton={light:'<i class="fas fa-adjust" aria-hidden="true"></i>',dark:'<i class="fas fa-adjust fa-rotate-180" aria-hidden="true"></i>'},currentTheme=()=>sessionStorage.getItem("theme");function setMode(e){document.documentElement.setAttribute("data-theme",e),sessionStorage.setItem("theme",e),document.getElementById("theme-toggle").innerHTML=themeButton[e]}function themeToggle(){setMode("light"===currentTheme()?"dark":"light")}window.onload=function(){if(isAutoTheme){if(!currentTheme()){let e=window.matchMedia("(prefers-color-scheme: dark)");e.addEventListener("change",()=>{e.matches&&sessionStorage.setItem("theme","dark")})}var e=currentTheme();setMode(e||"light")}};try{var elem=document.querySelector(".grid"),msnry=new Masonry(elem,{itemSelector:".grid-item",columnWidth:".grid-sizer",gutter:".gutter-sizer",percentPosition:!0}),imgLoad=imagesLoaded(elem);imgLoad.on("progress",function(e,t){msnry.layout()})}catch(e){if(!(e instanceof ReferenceError))throw e}document.addEventListener("DOMContentLoaded",function(e){var t=document.getElementById("pull"),o=document.querySelector("nav ul");["click","touch"].forEach(function(e){t.addEventListener(e,function(){o.classList.toggle("hide")},!1)}),window.addEventListener("scroll",function(){var e=-(window.scrollY||window.pageYOffset||document.body.scrollTop)/3;document.getElementById("main").style.backgroundPosition="100% "+(e-50)+"px, 0%, center top"})});
1
+ function createCookie(e,t,o){var n,i="";o&&((n=new Date).setTime(n.getTime()+24*o*60*60*1e3),i="; expires="+n.toUTCString()),document.cookie=`${e}=${t}${i}; path=/`}function readCookie(e){for(var t=e+"=",o=document.cookie.split(";"),n=0;n<o.length;n++){for(var i=o[n];" "===i.charAt(0);)i=i.substring(1,i.length);if(0===i.indexOf(t))return i.substring(t.length,i.length)}return null}function addCookieConsentListener(){document.getElementById("cookie-notice-accept").addEventListener("click",function(){createCookie(cookieName,"true",31),document.getElementById("cookie-notice").style.display="none",location.reload()})}function googleAnalytics(){function e(){dataLayer.push(arguments)}""!==analyticsName.toLowerCase()&&(window.dataLayer=window.dataLayer||[],e("js",new Date),e("config",analyticsName),window.ga=window.ga||function(){(ga.q=ga.q||[]).push(arguments)},ga.l=+new Date,ga("create",analyticsName,"auto"),ga("send","pageview"))}"true"===isCookieConsent.toLowerCase()?(addCookieConsentListener(),"true"===readCookie(cookieName)?googleAnalytics():document.getElementById("cookie-notice").style.display="block"):googleAnalytics();const themeButton={light:'<i class="fas fa-adjust" aria-hidden="true"></i>',dark:'<i class="fas fa-adjust fa-rotate-180" aria-hidden="true"></i>'},currentTheme=()=>sessionStorage.getItem("theme");function setMode(e){document.documentElement.setAttribute("data-theme",e),sessionStorage.setItem("theme",e),document.getElementById("theme-toggle").innerHTML=themeButton[e]}function themeToggle(){setMode("light"===currentTheme()?"dark":"light")}window.onload=function(){if(isAutoTheme){if(!currentTheme()){let e=window.matchMedia("(prefers-color-scheme: dark)");e.addEventListener("change",()=>{e.matches&&sessionStorage.setItem("theme","dark")})}var e=currentTheme();setMode(e||"light")}};try{var elem=document.querySelector(".grid"),msnry=new Masonry(elem,{itemSelector:".grid-item",columnWidth:".grid-sizer",gutter:".gutter-sizer",percentPosition:!0}),imgLoad=imagesLoaded(elem);imgLoad.on("progress",function(e,t){msnry.layout()})}catch(e){if(!(e instanceof ReferenceError))throw e}document.addEventListener("DOMContentLoaded",function(e){var t=document.getElementById("pull"),o=document.querySelector("nav ul");["click","touch"].forEach(function(e){t.addEventListener(e,function(){o.classList.toggle("hide")},!1)}),window.addEventListener("scroll",function(){var e=-(window.scrollY||window.pageYOffset||document.body.scrollTop)/3;document.getElementById("main").style.backgroundPosition="100% "+(e-50)+"px, 0%, center top"})});
@@ -1,3 +1,4 @@
1
+ /* @preserve Cookie Consent Init */
1
2
  function createCookie(name, value, days) {
2
3
  var expires = "";
3
4
  if (days) {
@@ -5,7 +6,7 @@ function createCookie(name, value, days) {
5
6
  date.setTime(date.getTime() + (days * 24 * 60 * 60 * 1000));
6
7
  expires = "; expires=" + date.toUTCString();
7
8
  }
8
- document.cookie = name + "=" + value + expires + "; path=/";
9
+ document.cookie = `${name}=${value}${expires}; path=/`;
9
10
  }
10
11
 
11
12
  function readCookie(name) {
@@ -1,9 +1,10 @@
1
+ /* @preserve Dark mode Init */
1
2
  /*
2
3
  * There are two color palettes on CSS for the data-theme: 'light' and 'dark'.
3
- * Initially the script check if a theme is set in session storage and alternatively listens to a MediaQuery callback looking for "prefers-color-scheme: dark".
4
+ * Initially the script check if a theme is set in session storage and
5
+ * alternatively listens to a MediaQuery callback looking for "prefers-color-scheme: dark".
4
6
  */
5
7
 
6
-
7
8
  const themeButton = {
8
9
  'light': '<i class="fas fa-adjust" aria-hidden="true"></i>',
9
10
  'dark': '<i class="fas fa-adjust fa-rotate-180" aria-hidden="true"></i>'
@@ -1,4 +1,4 @@
1
- // init Masonry
1
+ /* @preserve Masonry Init */
2
2
  try {
3
3
  var elem = document.querySelector('.grid');
4
4
  var msnry = new Masonry(elem, {
@@ -1,3 +1,4 @@
1
+ /* @preserve Navbar */
1
2
  document.addEventListener("DOMContentLoaded", function (event) {
2
3
 
3
4
  /*
@@ -6,7 +7,6 @@ document.addEventListener("DOMContentLoaded", function (event) {
6
7
  var pull = document.getElementById('pull');
7
8
  var menu = document.querySelector('nav ul');
8
9
 
9
-
10
10
  ['click', 'touch'].forEach(function (e) {
11
11
  pull.addEventListener(e, function () {
12
12
  menu.classList.toggle('hide')
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: type-on-strap
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.3.9
4
+ version: 2.3.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sylhare
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2021-11-18 00:00:00.000000000 Z
12
+ date: 2022-01-04 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: jekyll
@@ -89,29 +89,29 @@ files:
89
89
  - _data/icons_builder.yml
90
90
  - _data/language.yml
91
91
  - _includes/aligner.html
92
- - _includes/blog/blog.html
93
- - _includes/blog/blog_nav.html
94
- - _includes/blog/post_info.html
95
- - _includes/blog/post_nav.html
92
+ - _includes/blog/blog.liquid
93
+ - _includes/blog/blog_nav.liquid
94
+ - _includes/blog/post_info.liquid
95
+ - _includes/blog/post_nav.liquid
96
96
  - _includes/citation.html
97
- - _includes/default/footer.html
98
- - _includes/default/head.html
99
- - _includes/default/navbar.html
100
- - _includes/default/tags_list.html
97
+ - _includes/default/footer.liquid
98
+ - _includes/default/head.liquid
99
+ - _includes/default/navbar.liquid
100
+ - _includes/default/tags_list.liquid
101
101
  - _includes/gallery.html
102
102
  - _includes/portfolio.html
103
- - _includes/social/cusdis.html
104
- - _includes/social/disqus.html
105
- - _includes/social/icons.html
106
- - _includes/social/share_buttons.html
107
- - _includes/social/utterances.html
108
- - _layouts/custom.md
103
+ - _includes/social/cusdis.liquid
104
+ - _includes/social/disqus.liquid
105
+ - _includes/social/icons.liquid
106
+ - _includes/social/share_buttons.liquid
107
+ - _includes/social/utterances.liquid
108
+ - _layouts/custom.liquid
109
109
  - _layouts/default.html
110
- - _layouts/home.html
111
- - _layouts/page.html
112
- - _layouts/post.html
113
- - _layouts/search.html
114
- - _layouts/tags.html
110
+ - _layouts/home.liquid
111
+ - _layouts/page.liquid
112
+ - _layouts/post.liquid
113
+ - _layouts/search.liquid
114
+ - _layouts/tags.liquid
115
115
  - _sass/base/_global.scss
116
116
  - _sass/base/_highlight.scss
117
117
  - _sass/base/_utility.scss
@@ -156,7 +156,7 @@ files:
156
156
  - assets/css/vendor/bootstrap-iso.css
157
157
  - assets/css/vendor/bootstrap-iso.min.css
158
158
  - assets/css/vendor/bootstrap.css
159
- - assets/data/search.json
159
+ - assets/data/search.liquid
160
160
  - assets/fonts/Pacifico/Pacifico.eot
161
161
  - assets/fonts/Pacifico/Pacifico.svg
162
162
  - assets/fonts/Pacifico/Pacifico.ttf