type-on-strap 2.3.7 → 2.3.11

Sign up to get free protection for your applications and to get access to all the features.
Files changed (105) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +43 -36
  3. data/_data/icons_builder.yml +1 -1
  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} +3 -5
  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} +0 -0
  13. data/_includes/social/{disqus.html → disqus.liquid} +0 -0
  14. data/_includes/social/{icons.html → icons.liquid} +4 -2
  15. data/_includes/social/{share_buttons.html → share_buttons.liquid} +0 -0
  16. data/_includes/social/{utterances.html → utterances.liquid} +1 -1
  17. data/_layouts/{custom.md → custom.liquid} +5 -5
  18. data/_layouts/default.html +4 -4
  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} +10 -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 +38 -11
  25. data/_sass/base/_highlight.scss +9 -4
  26. data/_sass/base/_variables.scss +49 -48
  27. data/_sass/external/_font-awesome.scss +1 -0
  28. data/_sass/external/_katex.scss +377 -564
  29. data/_sass/external/font-awesome/_stacked.scss +1 -1
  30. data/_sass/includes/_footer.scss +2 -2
  31. data/_sass/includes/{_grid.scss → _gallery.scss} +0 -0
  32. data/_sass/layouts/_posts.scss +3 -2
  33. data/_sass/type-on-strap.scss +36 -10
  34. data/assets/css/main.scss +1 -1
  35. data/assets/data/{search.json → search.liquid} +0 -0
  36. data/assets/fonts/katex/KaTeX_AMS-Regular.ttf +0 -0
  37. data/assets/fonts/katex/KaTeX_AMS-Regular.woff +0 -0
  38. data/assets/fonts/katex/KaTeX_AMS-Regular.woff2 +0 -0
  39. data/assets/fonts/katex/KaTeX_Caligraphic-Bold.ttf +0 -0
  40. data/assets/fonts/katex/KaTeX_Caligraphic-Bold.woff +0 -0
  41. data/assets/fonts/katex/KaTeX_Caligraphic-Bold.woff2 +0 -0
  42. data/assets/fonts/katex/KaTeX_Caligraphic-Regular.ttf +0 -0
  43. data/assets/fonts/katex/KaTeX_Caligraphic-Regular.woff +0 -0
  44. data/assets/fonts/katex/KaTeX_Caligraphic-Regular.woff2 +0 -0
  45. data/assets/fonts/katex/KaTeX_Fraktur-Bold.ttf +0 -0
  46. data/assets/fonts/katex/KaTeX_Fraktur-Bold.woff +0 -0
  47. data/assets/fonts/katex/KaTeX_Fraktur-Bold.woff2 +0 -0
  48. data/assets/fonts/katex/KaTeX_Fraktur-Regular.ttf +0 -0
  49. data/assets/fonts/katex/KaTeX_Fraktur-Regular.woff +0 -0
  50. data/assets/fonts/katex/KaTeX_Fraktur-Regular.woff2 +0 -0
  51. data/assets/fonts/katex/KaTeX_Main-Bold.ttf +0 -0
  52. data/assets/fonts/katex/KaTeX_Main-Bold.woff +0 -0
  53. data/assets/fonts/katex/KaTeX_Main-Bold.woff2 +0 -0
  54. data/assets/fonts/katex/KaTeX_Main-BoldItalic.ttf +0 -0
  55. data/assets/fonts/katex/KaTeX_Main-BoldItalic.woff +0 -0
  56. data/assets/fonts/katex/KaTeX_Main-BoldItalic.woff2 +0 -0
  57. data/assets/fonts/katex/KaTeX_Main-Italic.ttf +0 -0
  58. data/assets/fonts/katex/KaTeX_Main-Italic.woff +0 -0
  59. data/assets/fonts/katex/KaTeX_Main-Italic.woff2 +0 -0
  60. data/assets/fonts/katex/KaTeX_Main-Regular.ttf +0 -0
  61. data/assets/fonts/katex/KaTeX_Main-Regular.woff +0 -0
  62. data/assets/fonts/katex/KaTeX_Main-Regular.woff2 +0 -0
  63. data/assets/fonts/katex/KaTeX_Math-BoldItalic.ttf +0 -0
  64. data/assets/fonts/katex/KaTeX_Math-BoldItalic.woff +0 -0
  65. data/assets/fonts/katex/KaTeX_Math-BoldItalic.woff2 +0 -0
  66. data/assets/fonts/katex/KaTeX_Math-Italic.ttf +0 -0
  67. data/assets/fonts/katex/KaTeX_Math-Italic.woff +0 -0
  68. data/assets/fonts/katex/KaTeX_Math-Italic.woff2 +0 -0
  69. data/assets/fonts/katex/KaTeX_SansSerif-Bold.ttf +0 -0
  70. data/assets/fonts/katex/KaTeX_SansSerif-Bold.woff +0 -0
  71. data/assets/fonts/katex/KaTeX_SansSerif-Bold.woff2 +0 -0
  72. data/assets/fonts/katex/KaTeX_SansSerif-Italic.ttf +0 -0
  73. data/assets/fonts/katex/KaTeX_SansSerif-Italic.woff +0 -0
  74. data/assets/fonts/katex/KaTeX_SansSerif-Italic.woff2 +0 -0
  75. data/assets/fonts/katex/KaTeX_SansSerif-Regular.ttf +0 -0
  76. data/assets/fonts/katex/KaTeX_SansSerif-Regular.woff +0 -0
  77. data/assets/fonts/katex/KaTeX_SansSerif-Regular.woff2 +0 -0
  78. data/assets/fonts/katex/KaTeX_Script-Regular.ttf +0 -0
  79. data/assets/fonts/katex/KaTeX_Script-Regular.woff +0 -0
  80. data/assets/fonts/katex/KaTeX_Script-Regular.woff2 +0 -0
  81. data/assets/fonts/katex/KaTeX_Size1-Regular.ttf +0 -0
  82. data/assets/fonts/katex/KaTeX_Size1-Regular.woff +0 -0
  83. data/assets/fonts/katex/KaTeX_Size1-Regular.woff2 +0 -0
  84. data/assets/fonts/katex/KaTeX_Size2-Regular.ttf +0 -0
  85. data/assets/fonts/katex/KaTeX_Size2-Regular.woff +0 -0
  86. data/assets/fonts/katex/KaTeX_Size2-Regular.woff2 +0 -0
  87. data/assets/fonts/katex/KaTeX_Size3-Regular.ttf +0 -0
  88. data/assets/fonts/katex/KaTeX_Size3-Regular.woff +0 -0
  89. data/assets/fonts/katex/KaTeX_Size3-Regular.woff2 +0 -0
  90. data/assets/fonts/katex/KaTeX_Size4-Regular.ttf +0 -0
  91. data/assets/fonts/katex/KaTeX_Size4-Regular.woff +0 -0
  92. data/assets/fonts/katex/KaTeX_Size4-Regular.woff2 +0 -0
  93. data/assets/fonts/katex/KaTeX_Typewriter-Regular.ttf +0 -0
  94. data/assets/fonts/katex/KaTeX_Typewriter-Regular.woff +0 -0
  95. data/assets/fonts/katex/KaTeX_Typewriter-Regular.woff2 +0 -0
  96. data/assets/js/main.min.js +1 -1
  97. data/assets/js/partials/cookie_consent_init.js +2 -1
  98. data/assets/js/partials/dark-mode.js +3 -2
  99. data/assets/js/partials/masonry_init.js +1 -1
  100. data/assets/js/partials/navbar.js +1 -1
  101. data/assets/js/vendor/auto-render.min.js +1 -1
  102. data/assets/js/vendor/katex.min.js +1 -1
  103. metadata +25 -27
  104. data/_sass/includes/_cookie_consent.scss +0 -17
  105. data/_sass/includes/_mermaid.scss +0 -13
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0e912396979eb944a0691e338ab364b3253e471bf21aa1b46d4896906805063f
4
- data.tar.gz: 5ef7f480ea958f2742f1babf7c7f9a3c1e7e04fa99ece8ab40a29827b9c59aaa
3
+ metadata.gz: a37ea279425397cd545055ca109d642aadf5c3f55293a4525458da89b3fdb280
4
+ data.tar.gz: '081204be20380cfac5444debfdc2a86c7792e17b7358afcfb594656b212451cc'
5
5
  SHA512:
6
- metadata.gz: 6fe7611948fabbbc956cad3f1cb166e265a9404c1c04156d3efab13a0b3151b5d5cb6a472127df0bf282a5f0176ef8bba9d3e2ef1e45029330703390ac5d543c
7
- data.tar.gz: b0fcc4324bd86a5e9b31ddd874206fcbd04d1d44a2e6b10d744e185556d9e33267d06f1b3ec1317e7f21a60dc9cdc728e851d28ab547f56a735937050a7749ee
6
+ metadata.gz: 5a44d150d46b3f7aa736a1c1fd15dfff1e1bb107125249c6577534f847d4bea0213e068268f78340873720aa963f8eab44f2e1d468bd18ac1bd8f1c668b030b1
7
+ data.tar.gz: d3991649b3e7138e93c1963e75a89b2502c11398ef670b0c59542dfdf9f3f7c19e0d08a35f25b441554989a82da05e2f604908437ce2f4c4255a14f37cae2fac
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
 
@@ -22,7 +22,7 @@ A free and open-source [Jekyll](https://jekyllrb.com) theme. Based on Rohan Chan
22
22
  * 💡 Light and dark theme supported
23
23
  * Find free of rights images on [pexels](https://www.pexels.com/)
24
24
 
25
- > [Demo Site](https://sylhare.github.io/Type-on-Strap/)
25
+ > [Demo Site](https://sylhare.github.io/Type-on-Strap/)
26
26
 
27
27
  ## Usage
28
28
 
@@ -30,6 +30,8 @@ A free and open-source [Jekyll](https://jekyllrb.com) theme. Based on Rohan Chan
30
30
 
31
31
  Check out this tutorial: [Use as Ruby Gem](#use-as-ruby-gem-)
32
32
 
33
+ [![Open in Gitpod](https://gitpod.io/button/open-in-gitpod.svg)](https://gitpod.io/#/https://github.com/sylhare/Type-On-Strap)
34
+
33
35
  ### As a github page 📋
34
36
 
35
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`
@@ -43,16 +45,16 @@ Check out this tutorial: [Use as Ruby Gem](#use-as-ruby-gem-)
43
45
 
44
46
  Here are the main files of the template
45
47
 
46
- ```bash
48
+ ```shell
47
49
  Type-on-Strap
48
- ├── _includes # theme includes
49
- ├── _layouts # theme layouts (see below for details)
50
- ├── _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
51
53
  ├── _posts # Blog posts
52
- ├── _sass # Sass partials
54
+ ├── _sass # Sass partials (compiled into css at runtime)
53
55
  ├── assets
54
- | ├── js # theme javascript, Katex, jquery, bootstrap, jekyll search,
55
- | ├── css # isolated Bootstrap, font-awesome, katex and main css
56
+ | ├── js # JS compiled for distribution + raw sources
57
+ | ├── css # CSS compiled for distribution
56
58
  | ├── fonts # Font-Awesome, and other fonts
57
59
  | └── img # Images used for the template
58
60
  ├── pages
@@ -60,12 +62,13 @@ Type-on-Strap
60
62
  | ├── about.md # About example page
61
63
  | ├── gallery.md # Gallery page for your photos
62
64
  | ├── portfolio.md # Portfolio page for your projects
63
- | ├── search.html # Search page
65
+ | ├── search.md # Search page
64
66
  | └── tags.md # The tag page
65
67
  ├── _config.yml # sample configuration
66
68
  ├── _data.yml
67
69
  | ├── authors.yml # Update the post authors configurations
68
70
  | ├── language.yml # Localization configuration
71
+ | ├── biblio.yml # To create a reference bibliography
69
72
  | ├── social.yml # Social configurations to share posts (RSS, shares, ...)
70
73
  | └── icons.yml # Footer icons (Twitter, Github, Stackoverflow, ...)
71
74
  └── index.html # sample home page (blog page paginated)
@@ -79,9 +82,11 @@ If a variable in this document is marked as "optional", disable the feature by r
79
82
 
80
83
  ### Site configuration
81
84
 
85
+ #### Base url
86
+
82
87
  Configure Jekyll as your own blog or with a "baseurl" in `_config.yml`:
83
88
 
84
- 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):
85
90
 
86
91
  ```yml
87
92
  baseurl: ""
@@ -92,21 +97,33 @@ Jekyll website *with* "baseurl" (like the Type on Strap [demo](https://sylhare.g
92
97
 
93
98
  ```yml
94
99
  baseurl: "/sub-directory"
95
- url: "https://username.github.io/"
100
+ url: "https://username.github.io"
96
101
  ```
97
102
 
98
- Please configure this before using the theme.
103
+ #### Jekyll blog configuration
99
104
 
100
- ### 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
101
118
 
102
119
  Meta variables hold basic information about your Jekyll site which will be used throughout the site
103
- 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.
104
121
 
105
122
  Change these variables in `_config.yml`:
106
123
 
107
124
  ```yml
108
125
  title: My Jekyll Blog # Name of website
109
- 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
110
127
  description: My blog posts # Short description, primarily used by search engines
111
128
  favicon: assets/favicon.ico # Icon displayed in the tab
112
129
  color_theme: auto # color theme auto, dark or light
@@ -259,20 +276,11 @@ to share the article on those platform.
259
276
 
260
277
  #### Footer
261
278
 
262
- Display in the footer.
263
- All icon variables should be your username enclosed in quotes (e.g. "username") in `_data/social.yml`,
264
- except for the following variables:
265
-
266
- ```yml
267
- rss: true
268
- email_address: type@example.com
269
- linkedin: https://www.linkedin.com/in/FirstLast
270
- stack_exchange: https://stackexchangecom/users/0000/first-last
271
- stack_overflow: https://stackoverflow.com/users/0000/first-last
272
- youtube: UCqECaJ8Gagnn7YCbPEzWH6g # Youtube token of your channel in the url
273
- ```
279
+ Display icons in the footer.
280
+ All icon variables should be your username enclosed in quotes (e.g. "username") in `_data/icons.yml`.
274
281
 
275
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.
276
284
 
277
285
  ### Personalize your Blog Posts 📝
278
286
 
@@ -355,7 +363,7 @@ Use it in any markdown file. There are two fields in the _include_ you need to l
355
363
 
356
364
  #### Code highlight
357
365
 
358
- 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`.
359
367
  The code highlighting works with [base16](https://github.com/chriskempson/base16-html-previews/tree/master/css) you can find existing example
360
368
  of your favourite highlight color scheme on this format.
361
369
 
@@ -371,7 +379,7 @@ Non-standard features are documented below.
371
379
  ### Layout: Default
372
380
 
373
381
  This layout includes the head, navigation bar and footer around your content.
374
- 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.
375
383
 
376
384
  ### Layout: Home 🏡
377
385
 
@@ -394,7 +402,7 @@ layout: page
394
402
  title: "About"
395
403
  subtitle: "This is a subtitle"
396
404
  feature-img: "assets/img/sample.png"
397
- permalink: /about.html # Set a permalink your your page
405
+ permalink: /about/ # Set a permalink your your page
398
406
  hide: true # Prevent the page title to appear in the navbar
399
407
  icon: "fa-search" # Will Display only the fontawesome icon (here: fa-search) and not the title
400
408
  tags: [sample, markdown, html]
@@ -468,13 +476,12 @@ gallery: "assets/img/pexels"
468
476
  {% include default/gallery.html gallery_path=page.gallery %}
469
477
  ```
470
478
 
471
-
472
479
  ### Feature: Search 🔍
473
480
 
474
481
  The search feature is based on [Simple-Jekyll-search](https://github.com/christian-fei/Simple-Jekyll-Search)
475
- 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.
476
483
 
477
- 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".
478
485
 
479
486
  The search page can be hidden with the `hide` option. You can remove the icon by removing `icon`:
480
487
 
@@ -505,7 +512,7 @@ tags: [sample, markdown, html]
505
512
 
506
513
  > Tags are case-sensitive `Tag_nAme` ≠ `tag_name`
507
514
 
508
- 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.
509
516
  The Tag page can be hidden with the `hide` option. You can remove the icon by removing `icon` (like for the search page).
510
517
 
511
518
  ## Advanced
@@ -571,7 +578,7 @@ Nothing will happen if the file exists already.
571
578
 
572
579
  You can use Type-on-strap as a [gem](https://rubygems.org/gems/type-on-strap).
573
580
 
574
- Ruby Gem Method
581
+ Using the [Ruby Gem Method](https://sylhare.github.io/2021/03/25/Run-type-on-strap-jekyll-theme-locally.html).
575
582
  Add this line to your Jekyll site's Gemfile (or create one):
576
583
 
577
584
  ```ruby
@@ -29,7 +29,7 @@ keybase:
29
29
  linkedin:
30
30
  pre: "https://www.linkedin.com/in/"
31
31
  mail:
32
- pre: "mailto://"
32
+ pre: "mailto:"
33
33
  icon: "fas fa-envelope"
34
34
  map:
35
35
  pre: "https://www.openstreetmap.org/#map=15/"
@@ -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 }}">
@@ -38,7 +35,7 @@
38
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
- <!-- KaTeX 0.13.9 -->
38
+ <!-- KaTeX 0.15.2 -->
42
39
  {% if site.katex or site.theme_settings.katex %}
43
40
  <script defer src="{{ '/assets/js/vendor/katex.min.js' | relative_url }}"></script>
44
41
  <script defer src="{{ '/assets/js/vendor/auto-render.min.js' | relative_url }}" onload="renderMathInElement(document.body);"></script>
@@ -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
@@ -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>
@@ -23,7 +24,8 @@
23
24
  <li>
24
25
  <a href="{{ data.pre | append: id | append: data.pos }}"
25
26
  title="{{ site.data.language.str_follow_on }} {{ brand | remove: '-' | capitalize }}"
26
- rel="me">
27
+ target="_blank"
28
+ rel="noopener">
27
29
  <span class="fa-stack fa-lg">
28
30
  <i class="fas fa-circle fa-stack-2x"></i>
29
31
  <i class="{{ icon }} fa-stack-1x fa-inverse"></i>
@@ -2,7 +2,7 @@
2
2
  repo='{{ site.comments.utterances.repo }}'
3
3
  issue-term="{{ site.comments.utterances.issue-term}}"
4
4
  theme="{% if site.comments.utterances.theme %}{{ site.comments.utterances.theme }}{% elsif site.color_theme == 'dark' %}github-dark{% else %}github-light{% endif %}"
5
- label="{{ site.comments.utterances.label }}"
5
+ {% if site.comments.utterances.label %}label="{{ site.comments.utterances.label }}"{% endif %}
6
6
  crossorigin="anonymous"
7
7
  async>
8
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,16 +1,16 @@
1
1
  <!DOCTYPE html>
2
2
  <!--
3
- Type on Strap jekyll theme v2.3.7
3
+ Type on Strap jekyll theme v2.3.11
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 and site.comments.utterances.theme %} {% 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 %}
@@ -8,11 +8,6 @@ figure {
8
8
  margin: 0;
9
9
  }
10
10
 
11
- // For correct line number width in Github Gists
12
- .gist table tbody tr td {
13
- box-sizing: content-box;
14
- }
15
-
16
11
  html {
17
12
  background: var(--background);
18
13
  }
@@ -84,6 +79,10 @@ img[align=right] {
84
79
  margin-left: 3%;
85
80
  }
86
81
 
82
+ summary {
83
+ cursor: pointer;
84
+ }
85
+
87
86
  /* ---- Responsive ---- */
88
87
 
89
88
  @media screen and (max-width: $break) {
@@ -192,12 +191,6 @@ dl,
192
191
  margin-bottom: 1em;
193
192
  }
194
193
 
195
- // KaTeX math display
196
- .math-display {
197
- display: inline-block;
198
- width: 100%;
199
- }
200
-
201
194
  // Lists within lists
202
195
  li {
203
196
  p {
@@ -243,3 +236,37 @@ kbd {
243
236
  padding: 2px 4px;
244
237
  white-space: nowrap;
245
238
  }
239
+
240
+ // Cookie consent
241
+ #cookie-notice {
242
+ padding: 0.5rem 1rem;
243
+ display: none;
244
+ text-align: center;
245
+ position: fixed;
246
+ bottom: 0;
247
+ width: 100%;
248
+ background: rgba(2, 2, 2, 0.85);
249
+ color: lightgray;
250
+ z-index: 1000;
251
+
252
+ & a {
253
+ display: inline-block;
254
+ cursor: pointer;
255
+ margin-left: 0.6rem;
256
+ }
257
+ }
258
+
259
+ // Mermaid
260
+ .mermaid {
261
+ background-color: rgba(255, 255, 255, 0.9);
262
+ border-radius: 2%;
263
+
264
+ & > svg {
265
+ margin: auto;
266
+ display: block;
267
+ height: auto;
268
+ padding-bottom: 2em;
269
+ padding-top: 2em;
270
+ max-width: 100%;
271
+ }
272
+ }