type-on-strap 2.3.8 → 2.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (101) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +55 -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} +4 -6
  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} +0 -0
  17. data/_layouts/{custom.md → custom.liquid} +5 -5
  18. data/_layouts/default.html +4 -4
  19. data/_layouts/home.liquid +30 -0
  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 +17 -25
  25. data/_sass/base/_highlight.scss +9 -4
  26. data/_sass/external/_font-awesome.scss +1 -0
  27. data/_sass/external/_katex.scss +377 -564
  28. data/_sass/external/font-awesome/_stacked.scss +1 -1
  29. data/_sass/layouts/_blog.scss +6 -6
  30. data/assets/css/main.scss +1 -1
  31. data/assets/data/{search.json → search.liquid} +0 -0
  32. data/assets/fonts/katex/KaTeX_AMS-Regular.ttf +0 -0
  33. data/assets/fonts/katex/KaTeX_AMS-Regular.woff +0 -0
  34. data/assets/fonts/katex/KaTeX_AMS-Regular.woff2 +0 -0
  35. data/assets/fonts/katex/KaTeX_Caligraphic-Bold.ttf +0 -0
  36. data/assets/fonts/katex/KaTeX_Caligraphic-Bold.woff +0 -0
  37. data/assets/fonts/katex/KaTeX_Caligraphic-Bold.woff2 +0 -0
  38. data/assets/fonts/katex/KaTeX_Caligraphic-Regular.ttf +0 -0
  39. data/assets/fonts/katex/KaTeX_Caligraphic-Regular.woff +0 -0
  40. data/assets/fonts/katex/KaTeX_Caligraphic-Regular.woff2 +0 -0
  41. data/assets/fonts/katex/KaTeX_Fraktur-Bold.ttf +0 -0
  42. data/assets/fonts/katex/KaTeX_Fraktur-Bold.woff +0 -0
  43. data/assets/fonts/katex/KaTeX_Fraktur-Bold.woff2 +0 -0
  44. data/assets/fonts/katex/KaTeX_Fraktur-Regular.ttf +0 -0
  45. data/assets/fonts/katex/KaTeX_Fraktur-Regular.woff +0 -0
  46. data/assets/fonts/katex/KaTeX_Fraktur-Regular.woff2 +0 -0
  47. data/assets/fonts/katex/KaTeX_Main-Bold.ttf +0 -0
  48. data/assets/fonts/katex/KaTeX_Main-Bold.woff +0 -0
  49. data/assets/fonts/katex/KaTeX_Main-Bold.woff2 +0 -0
  50. data/assets/fonts/katex/KaTeX_Main-BoldItalic.ttf +0 -0
  51. data/assets/fonts/katex/KaTeX_Main-BoldItalic.woff +0 -0
  52. data/assets/fonts/katex/KaTeX_Main-BoldItalic.woff2 +0 -0
  53. data/assets/fonts/katex/KaTeX_Main-Italic.ttf +0 -0
  54. data/assets/fonts/katex/KaTeX_Main-Italic.woff +0 -0
  55. data/assets/fonts/katex/KaTeX_Main-Italic.woff2 +0 -0
  56. data/assets/fonts/katex/KaTeX_Main-Regular.ttf +0 -0
  57. data/assets/fonts/katex/KaTeX_Main-Regular.woff +0 -0
  58. data/assets/fonts/katex/KaTeX_Main-Regular.woff2 +0 -0
  59. data/assets/fonts/katex/KaTeX_Math-BoldItalic.ttf +0 -0
  60. data/assets/fonts/katex/KaTeX_Math-BoldItalic.woff +0 -0
  61. data/assets/fonts/katex/KaTeX_Math-BoldItalic.woff2 +0 -0
  62. data/assets/fonts/katex/KaTeX_Math-Italic.ttf +0 -0
  63. data/assets/fonts/katex/KaTeX_Math-Italic.woff +0 -0
  64. data/assets/fonts/katex/KaTeX_Math-Italic.woff2 +0 -0
  65. data/assets/fonts/katex/KaTeX_SansSerif-Bold.ttf +0 -0
  66. data/assets/fonts/katex/KaTeX_SansSerif-Bold.woff +0 -0
  67. data/assets/fonts/katex/KaTeX_SansSerif-Bold.woff2 +0 -0
  68. data/assets/fonts/katex/KaTeX_SansSerif-Italic.ttf +0 -0
  69. data/assets/fonts/katex/KaTeX_SansSerif-Italic.woff +0 -0
  70. data/assets/fonts/katex/KaTeX_SansSerif-Italic.woff2 +0 -0
  71. data/assets/fonts/katex/KaTeX_SansSerif-Regular.ttf +0 -0
  72. data/assets/fonts/katex/KaTeX_SansSerif-Regular.woff +0 -0
  73. data/assets/fonts/katex/KaTeX_SansSerif-Regular.woff2 +0 -0
  74. data/assets/fonts/katex/KaTeX_Script-Regular.ttf +0 -0
  75. data/assets/fonts/katex/KaTeX_Script-Regular.woff +0 -0
  76. data/assets/fonts/katex/KaTeX_Script-Regular.woff2 +0 -0
  77. data/assets/fonts/katex/KaTeX_Size1-Regular.ttf +0 -0
  78. data/assets/fonts/katex/KaTeX_Size1-Regular.woff +0 -0
  79. data/assets/fonts/katex/KaTeX_Size1-Regular.woff2 +0 -0
  80. data/assets/fonts/katex/KaTeX_Size2-Regular.ttf +0 -0
  81. data/assets/fonts/katex/KaTeX_Size2-Regular.woff +0 -0
  82. data/assets/fonts/katex/KaTeX_Size2-Regular.woff2 +0 -0
  83. data/assets/fonts/katex/KaTeX_Size3-Regular.ttf +0 -0
  84. data/assets/fonts/katex/KaTeX_Size3-Regular.woff +0 -0
  85. data/assets/fonts/katex/KaTeX_Size3-Regular.woff2 +0 -0
  86. data/assets/fonts/katex/KaTeX_Size4-Regular.ttf +0 -0
  87. data/assets/fonts/katex/KaTeX_Size4-Regular.woff +0 -0
  88. data/assets/fonts/katex/KaTeX_Size4-Regular.woff2 +0 -0
  89. data/assets/fonts/katex/KaTeX_Typewriter-Regular.ttf +0 -0
  90. data/assets/fonts/katex/KaTeX_Typewriter-Regular.woff +0 -0
  91. data/assets/fonts/katex/KaTeX_Typewriter-Regular.woff2 +0 -0
  92. data/assets/js/main.min.js +1 -1
  93. data/assets/js/partials/cookie_consent_init.js +2 -1
  94. data/assets/js/partials/dark-mode.js +3 -2
  95. data/assets/js/partials/masonry_init.js +1 -1
  96. data/assets/js/partials/navbar.js +4 -4
  97. data/assets/js/vendor/auto-render.min.js +1 -1
  98. data/assets/js/vendor/katex.min.js +1 -1
  99. data/assets/js/vendor/mermaid.min.js +2 -32
  100. metadata +22 -22
  101. data/_layouts/home.html +0 -14
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9d37aa295ef0bba39ece59de4e39bcfc5235c9edf80bff478a9054b3e8fdcbf6
4
- data.tar.gz: 34d45f1b419ded21adfa161155963682d9c6d6dbee747c7a4ce874f6b96a24fc
3
+ metadata.gz: 8389a7d6ea215d30a665c55a1395631f0fc555772ed192956637b81390cd36d6
4
+ data.tar.gz: 7bb8bef255c863b833801b5c6005c49c33a7c0d9d438f1733b3072685fa3f202
5
5
  SHA512:
6
- metadata.gz: 200fb555e6f2a4f6a0c10e7cf6d1e713de1162c08bcf063bb536a3631e815bb337ebf37e65a62161d2ff5683683df0d7174da4099d8c5fb5d65c7ec539d6977f
7
- data.tar.gz: 9238840c1df0c434254416a15b6a311df9eca82ae8be75be1c0375da51ccf54092a4acbb078c52289092ba5727dd35a25eebc628bc8c05ffb7f4646482492c3b
6
+ metadata.gz: 3f4da0e9cc2b2447859de17a193b26bede24f02a8f78be88556c44ab4f8cdceac7a57fc101959ebccf5707fb7e3b5a6734548641e4ee359f9be4a0f3bb119e92
7
+ data.tar.gz: 12acd5e8c2b5e807489bbffb5a9472c4488fbacf5af2be3daf396b65231f627d17f82b40df03f0b875e13e6417f3af9fee0f1d631c0d1585ea0e3e9f996744ff
data/README.md CHANGED
@@ -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"
101
+ ```
102
+
103
+ #### Jekyll blog configuration
104
+
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]
96
113
  ```
97
114
 
98
- Please configure this before using the theme.
115
+ To configure the blog part and default plugins. Those plugins are validated by GitHub page.
99
116
 
100
- ### Meta and Branding
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
@@ -124,12 +141,24 @@ Customize your site header/footer with these variables in `_config.yml`:
124
141
 
125
142
  ```yml
126
143
  header_text: Welcome to my Jekyll blog
127
- header_feature_image: assets/img/sample3.png
128
144
  footer_text: Copyright 2017
129
145
  ```
130
146
 
131
147
  If you don't want anything, replace the value by `" "`.
132
148
 
149
+ #### Header's image
150
+
151
+ The header's image (tested with 2480x1280) can be set as one image with `header_feature_image`
152
+ but can also be responsive:
153
+
154
+ ```yml
155
+ header_feature_image: assets/img/header/my-header-image.png
156
+ header_feature_image_responsive: true
157
+ ```
158
+
159
+ By setting `header_feature_image_responsive` to true, it will look for images
160
+ with suffix `-small` (620x320) and `-medium` (1240x640) to display on smaller screen.
161
+
133
162
  #### Localisation string
134
163
 
135
164
  Localization string is a way to quickly change the template language for text like *Next Post* or *Follow on*, ...
@@ -259,20 +288,11 @@ to share the article on those platform.
259
288
 
260
289
  #### Footer
261
290
 
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
- ```
291
+ Display icons in the footer.
292
+ All icon variables should be your username enclosed in quotes (e.g. "username") in `_data/icons.yml`.
274
293
 
275
294
  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)).
295
+ 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
296
 
277
297
  ### Personalize your Blog Posts 📝
278
298
 
@@ -355,7 +375,7 @@ Use it in any markdown file. There are two fields in the _include_ you need to l
355
375
 
356
376
  #### Code highlight
357
377
 
358
- Like all CSS variables in the theme, you can edit the color of the code highlight in *_sass > base > _variables.scss*.
378
+ Like all CSS variables in the theme, you can edit the color of the code highlight in `_sass > base > _variables.scss`.
359
379
  The code highlighting works with [base16](https://github.com/chriskempson/base16-html-previews/tree/master/css) you can find existing example
360
380
  of your favourite highlight color scheme on this format.
361
381
 
@@ -371,7 +391,7 @@ Non-standard features are documented below.
371
391
  ### Layout: Default
372
392
 
373
393
  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.
394
+ Unless you are making a custom layout you won't need it.
375
395
 
376
396
  ### Layout: Home 🏡
377
397
 
@@ -394,7 +414,7 @@ layout: page
394
414
  title: "About"
395
415
  subtitle: "This is a subtitle"
396
416
  feature-img: "assets/img/sample.png"
397
- permalink: /about.html # Set a permalink your your page
417
+ permalink: /about/ # Set a permalink your your page
398
418
  hide: true # Prevent the page title to appear in the navbar
399
419
  icon: "fa-search" # Will Display only the fontawesome icon (here: fa-search) and not the title
400
420
  tags: [sample, markdown, html]
@@ -468,13 +488,12 @@ gallery: "assets/img/pexels"
468
488
  {% include default/gallery.html gallery_path=page.gallery %}
469
489
  ```
470
490
 
471
-
472
491
  ### Feature: Search 🔍
473
492
 
474
493
  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.
494
+ there is a `search.liquid` file that will create a list of all the site posts, pages and portfolios.
476
495
 
477
- Then there's a `search.js` displaying the formatted results entered in the `search.html` page.
496
+ Then there's a `search.js` displaying the formatted results in the "search page".
478
497
 
479
498
  The search page can be hidden with the `hide` option. You can remove the icon by removing `icon`:
480
499
 
@@ -505,7 +524,7 @@ tags: [sample, markdown, html]
505
524
 
506
525
  > Tags are case-sensitive `Tag_nAme` ≠ `tag_name`
507
526
 
508
- All the tags will be listed in `tags.html` with a link toward the pages or posts.
527
+ All the tags will be listed the tags page with a link toward the pages or posts.
509
528
  The Tag page can be hidden with the `hide` option. You can remove the icon by removing `icon` (like for the search page).
510
529
 
511
530
  ## Advanced
@@ -571,7 +590,7 @@ Nothing will happen if the file exists already.
571
590
 
572
591
  You can use Type-on-strap as a [gem](https://rubygems.org/gems/type-on-strap).
573
592
 
574
- Ruby Gem Method
593
+ Using the [Ruby Gem Method](https://sylhare.github.io/2021/03/25/Run-type-on-strap-jekyll-theme-locally.html).
575
594
  Add this line to your Jekyll site's Gemfile (or create one):
576
595
 
577
596
  ```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,13 +35,13 @@
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>
45
42
  {% endif %}
46
43
 
47
- <!-- Mermaid 8.9.2 -->
44
+ <!-- Mermaid 8.13.10 -->
48
45
  {% if site.mermaid %}
49
46
  <script defer src="{{ '/assets/js/vendor/mermaid.min.js' | relative_url }}" onload="mermaid.initialize({startOnLoad:true});"></script>
50
47
  {% endif %}
@@ -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>
@@ -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.8
3
+ Type on Strap jekyll theme v2.4.0
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>
@@ -0,0 +1,30 @@
1
+ ---
2
+ layout: default
3
+ ---
4
+
5
+ <div class="home">
6
+ <style scoped>
7
+ {% assign image = site.header_feature_image | relative_url | split: '.' %}
8
+ .call-out_img {
9
+ background-image: url('{{ image | join: '.' }}');
10
+ }
11
+ {% if site.header_feature_image_responsive %}
12
+ @media screen and (max-width: 768px) {
13
+ .call-out_img {
14
+ background-image: url('{{ image[0] | append: '-medium.' | append: image[1] | default: image}}');
15
+ }
16
+ }
17
+ @media screen and (max-width: 576px) {
18
+ .call-out_img {
19
+ background-image: url('{{ image[0] | append: '-small.' | append: image[1] }}');
20
+ }
21
+ }
22
+ {% endif %}
23
+ </style>
24
+ <div id="main" class="call-out call-out_img">
25
+ <h1> {{ site.header_text | default: "Change <code>header_text</code> in <code>_config.yml</code>"}} </h1>
26
+ </div>
27
+
28
+ {% include blog/blog.liquid %}
29
+
30
+ </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 %}
@@ -79,6 +79,10 @@ img[align=right] {
79
79
  margin-left: 3%;
80
80
  }
81
81
 
82
+ summary {
83
+ cursor: pointer;
84
+ }
85
+
82
86
  /* ---- Responsive ---- */
83
87
 
84
88
  @media screen and (max-width: $break) {
@@ -244,37 +248,25 @@ kbd {
244
248
  background: rgba(2, 2, 2, 0.85);
245
249
  color: lightgray;
246
250
  z-index: 1000;
247
- }
248
-
249
- #cookie-notice a {
250
- display: inline-block;
251
- cursor: pointer;
252
- margin-left: 0.6rem;
253
- }
254
-
255
- /* Vendor tweaks */
256
- // For correct line number width in Github Gists
257
- .gist table tbody tr td {
258
- box-sizing: content-box;
259
- }
260
251
 
261
- // KaTeX math display
262
- .math-display {
263
- display: inline-block;
264
- width: 100%;
252
+ & a {
253
+ display: inline-block;
254
+ cursor: pointer;
255
+ margin-left: 0.6rem;
256
+ }
265
257
  }
266
258
 
267
259
  // Mermaid
268
260
  .mermaid {
269
261
  background-color: rgba(255, 255, 255, 0.9);
270
262
  border-radius: 2%;
271
- }
272
263
 
273
- .mermaid > svg {
274
- margin: auto;
275
- display: block;
276
- height: auto;
277
- padding-bottom: 2em;
278
- padding-top: 2em;
279
- max-width: 100%;
264
+ & > svg {
265
+ margin: auto;
266
+ display: block;
267
+ height: auto;
268
+ padding-bottom: 2em;
269
+ padding-top: 2em;
270
+ max-width: 100%;
271
+ }
280
272
  }