type-on-strap 2.4.10 → 2.4.12

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5f7c34c5bda2cf111c6a516ce892acf9b38b8ea736ead2c399afd491ada2c5b0
4
- data.tar.gz: 730e35d536afe00d315c0d836dc76c1b8602a2f60f389fcbb7c786ca1ea8124a
3
+ metadata.gz: '075180d85d8b3f726379b120cda867ef006c58038108a1eb5d5e8d6bd964552f'
4
+ data.tar.gz: cbebd901837f8c486e86e0e1375d1c70e9f2c106fbf12502bfae7b40209c1ae6
5
5
  SHA512:
6
- metadata.gz: 06db757e5c2fd9b0363fa1f1c9ab0d071dae6237f17143f107dff4c22ab61a06e3f8d93d1a8c654186fda792da4cbee696392666286b2f81bd72e86de7643979
7
- data.tar.gz: 6d1c66f0423baf8093f898dfc301ccf4d72432bf196bb4222ed6e179b6d925de735276400d704343aa0c4099ac2ce87b024979db3869ee0427d37896be0cbc63
6
+ metadata.gz: 0ab3635eb48b4b914f8a01213f8097151d03efe64fd97508b756e316652ecdde7ad26513e9881890f106ab30a764925e924b6a5d93bd2e08e3a58cb31bab129b
7
+ data.tar.gz: f4b7a95179014c900312f9b2deb46a3201cf207742204893c68833f549fbd9cf1c31ece6fc56d3e163a6faa5a1eb577b0fd26cd90afc4d521c6b08fd534d5bad
data/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  The MIT License (MIT)
2
2
 
3
- Copyright (c) 2016-2024 Sylhare
3
+ Copyright (c) 2016-2025 Sylhare
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Type on Strap 🎨
2
2
 
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)
3
+ [![Build](https://github.com/sylhare/Type-on-Strap/actions/workflows/docker-build.yml/badge.svg)](https://github.com/sylhare/Type-on-Strap/actions/workflows/docker-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
 
@@ -14,7 +14,7 @@ Based on Rohan Chandra [type-theme](https://github.com/rohanchandra/type-theme)
14
14
  * Multi comments 💬 options
15
15
  * Tags compatibility 🏷
16
16
  * Handle _Bootstrap_'ed pages: [Get Bootstrap](http://getbootstrap.com/)
17
- * 🔎 Search feature: [Simple-Jekyll-Search](https://github.com/christian-fei/Simple-Jekyll-Search)
17
+ * 🔎 Search feature: [Simple-Jekyll-Search](https://github.com/sylhare/Simple-Jekyll-Search)
18
18
  * Math Rendering : [KateX](https://github.com/Khan/KaTeX)
19
19
  * Diagram Rendering: [Mermaid-js](https://github.com/mermaid-js/mermaid)
20
20
  * 🖋 Nice fonts: [Font Awesome](https://fontawesome.com/), [Source Sans Pro](https://fonts.google.com/specimen/Source+Sans+Pro), [Pacifico](https://fonts.google.com/specimen/Pacifico?selection.family=Pacifico)
@@ -27,13 +27,7 @@ Based on Rohan Chandra [type-theme](https://github.com/rohanchandra/type-theme)
27
27
 
28
28
  ## Usage
29
29
 
30
- ### As a ruby gem 💎
31
-
32
- Check out this tutorial: [Use as Ruby Gem](#use-as-ruby-gem-)
33
-
34
- [![Open in Gitpod](https://gitpod.io/button/open-in-gitpod.svg)](https://gitpod.io/#/https://github.com/sylhare/Type-On-Strap)
35
-
36
- ### As a github page 📋
30
+ ### As a GitHub page 📋
37
31
 
38
32
  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`
39
33
  2. Install [Jekyll](https://jekyllrb.com/docs/installation/): `gem install jekyll`, check [#1](https://github.com/Sylhare/Type-on-Strap/issues/1) if you have a problem.
@@ -42,6 +36,12 @@ Check out this tutorial: [Use as Ruby Gem](#use-as-ruby-gem-)
42
36
  - GitHub Page: [update `_config.yml`](#site-configuration)
43
37
  5. Run the Jekyll server: `bundle exec jekyll serve`
44
38
 
39
+ ### As a ruby gem 💎
40
+
41
+ Check out this tutorial: [Use as Ruby Gem](#use-as-ruby-gem-)
42
+
43
+ [![Open in Gitpod](https://gitpod.io/button/open-in-gitpod.svg)](https://gitpod.io/#/https://github.com/sylhare/Type-On-Strap)
44
+
45
45
  ## Structure
46
46
 
47
47
  Here are the main files of the template
@@ -165,9 +165,10 @@ with suffix `-small` (620x320) and `-medium` (1240x640) to display on smaller sc
165
165
  Localization string is a way to quickly change the template language for text like *Next Post* or *Follow on*, ...
166
166
  You can find all the properties in `_data/language.yml`.
167
167
 
168
- By default, it is in English, but you can easily add your own language.
168
+ By default, it is in English, but you can add your own language.
169
169
 
170
- Here you also can set the date format, e.g., set `str_date_format: '%B %-d, %Y'` for "January, 13, 2024", `str_date_format: '%Y-%m-%d'` for 2024-01-13, or `str_date_format: '%d.%m.%Y'` for 13.01.2024.
170
+ Here you also can set the date format, e.g., set `str_date_format: '%B %-d, %Y'` for "January, 13, 2024",
171
+ `str_date_format: '%Y-%m-%d'` for 2024-01-13, or `str_date_format: '%d.%m.%Y'` for 13.01.2024.
171
172
 
172
173
  ### Google Analytics
173
174
 
@@ -295,7 +296,8 @@ Display icons in the footer.
295
296
  All icon variables should be your username enclosed in quotes (e.g. "username") in `_data/icons.yml`.
296
297
 
297
298
  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)).
298
- 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.
299
+ To enable the share icons at the bottom of each article,
300
+ set to true the one you'd like under `share` in the `_data/social.yml` file.
299
301
 
300
302
  ### Personalize your Blog Posts 📝
301
303
 
@@ -318,7 +320,7 @@ title: Hello World # Title of the page
318
320
  hide_title: true # [Opt] Hide the title when displaying the post, but shown in lists of posts
319
321
  feature-img: "assets/img/sample.png" # [Opt] Add a feature-image to the post
320
322
  thumbnail: "assets/img/thumbnails/sample-th.png" # [Opt] Add a thumbnail image on blog view
321
- color: rgb(80,140,22) # [Opt] Add the specified colour as feature image, and change link colors in post
323
+ color: rgb(80,140,22) # [Opt] Add the specified color as feature image and links in post
322
324
  position: 1 # [Opt] Set position on the menu navigation bar
323
325
  tags: [sample, markdown, html] # [Opt] Add tags to the page
324
326
  ---
@@ -339,7 +341,7 @@ It will respect the page and theme layout, mind the padding on the sides.
339
341
 
340
342
  #### Post excerpt
341
343
 
342
- The [excerpt](https://jekyllrb.com/docs/posts/#post-excerpts) are the first lines of an article that is displayed on the blog page.
344
+ The [excerpt](https://jekyllrb.com/docs/posts/#post-excerpts) is the head of the article rendered in the blog page.
343
345
  The length of the excerpt has a default of around `250` characters or can be manually set in the post using:
344
346
 
345
347
  in `conflig.yml`:
@@ -369,8 +371,12 @@ The html is stripped out of the excerpt, so it only displays text.
369
371
 
370
372
  To easily add align images side by side in your article using the `aligner.html` include:
371
373
 
372
- ```ruby
373
- {% include aligner.html images="path/to/img1.png,path/to/img2.png,path/to/img3.png" column=3 %}
374
+ ```liquid
375
+ {% include aligner.html
376
+ images="path/to/img1.png,path/to/img2.png,path/to/img3.png"
377
+ column=3
378
+ caption="some description"
379
+ %}
374
380
  ```
375
381
 
376
382
  Use it in any markdown file. There are two fields in the _include_ you need to look into:
@@ -380,6 +386,7 @@ Use it in any markdown file. There are two fields in the _include_ you need to l
380
386
  - default is 2 columns
381
387
  - `column=3` set 3 columns
382
388
  - `column="auto"` makes as many columns as images
389
+ - _caption_: (OPTIONAL) Add a caption to the images
383
390
 
384
391
  #### Code highlight
385
392
 
@@ -500,7 +507,7 @@ gallery: "assets/img/pexels"
500
507
 
501
508
  ### Feature: Search 🔍
502
509
 
503
- The search feature is based on [Simple-Jekyll-search](https://github.com/christian-fei/Simple-Jekyll-Search)
510
+ The search feature is based on [Simple-Jekyll-search](https://github.com/sylhare/Simple-Jekyll-Search)
504
511
  there is a `search.liquid` file that will create a list of all the site posts, pages and portfolios.
505
512
  Then there's a script displaying the formatted results in the _search page_.
506
513
 
@@ -545,7 +552,7 @@ The Tag page can be hidden with the `hide` option. You can remove the icon by re
545
552
 
546
553
  Jekyll works with [liquid](https://shopify.github.io/liquid/) tags usually represented by:
547
554
 
548
- ```
555
+ ```liquid
549
556
  {{ liquid.tag | filter }}
550
557
  ```
551
558
 
@@ -605,7 +612,7 @@ You can use Type-on-strap as a [gem](https://rubygems.org/gems/type-on-strap).
605
612
  Using the [Ruby Gem Method](https://sylhare.github.io/2021/03/25/Run-type-on-strap-jekyll-theme-locally.html).
606
613
  Add this line to your Jekyll site's Gemfile (or create one):
607
614
 
608
- ```ruby
615
+ ```shell
609
616
  gem "type-on-strap"
610
617
  ```
611
618
 
@@ -617,7 +624,7 @@ theme: type-on-strap
617
624
 
618
625
  Then run Bundler to install the theme gem and dependencies:
619
626
 
620
- ```bash
627
+ ```shell
621
628
  bundle install
622
629
  ```
623
630
 
@@ -6,14 +6,19 @@
6
6
  {% assign column = 100.0 | divided_by: include.column %}
7
7
  {% endif %}
8
8
 
9
- <div class="row">
9
+
10
+ <figure class="row">
10
11
  {% for image in images %}
11
- <div {% if column %} style="flex: {{ column }}%" {% else %} class="column" {% endif %} >
12
- <img {% if images.size == 1 %}class="single"{% endif %}
12
+ <div class="column">
13
+ <img {% if images.size== 1 %}class="single" {% endif %}
13
14
  src="{{ image | prepend: 'assets/img/' | relative_url }}"
14
15
  alt="{{ image | prepend: '/' | split: '/' | last }}">
15
16
  </div>
16
17
  {% endfor %}
17
- </div>
18
+ {% if include.caption %}
19
+ {% endif %}
20
+ <figcaption class="caption-style">{{ include.caption }}</figcaption>
21
+ </figure>
22
+
18
23
 
19
24
  {% assign column = false %}
@@ -35,13 +35,13 @@
35
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>
36
36
  {% endif %}
37
37
 
38
- <!-- KaTeX 0.16.9 -->
38
+ <!-- KaTeX 0.16.11 -->
39
39
  {% if site.katex or site.theme_settings.katex %}
40
40
  <script defer src="{{ '/assets/js/vendor/katex.min.js' | relative_url }}"></script>
41
41
  <script defer src="{{ '/assets/js/vendor/katex.auto-render.min.js' | relative_url }}" onload="renderMathInElement(document.body);"></script>
42
42
  {% endif %}
43
43
 
44
- <!-- Mermaid 10.8.0 -->
44
+ <!-- Mermaid 11.4.1 -->
45
45
  {% if site.mermaid %}
46
46
  <script defer src="{{ '/assets/js/vendor/mermaid.min.js' | relative_url }}"></script>
47
47
  {% endif %}
@@ -1,6 +1,6 @@
1
1
  <!DOCTYPE html>
2
2
  <!--
3
- Type on Strap jekyll theme v2.4.10
3
+ Type on Strap jekyll theme v2.4.12
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
  -->
@@ -17,7 +17,7 @@ layout: page
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,
20
- fuzzy: false,
20
+ strategy: 'wildcard',
21
21
  exclude: []
22
22
  })
23
23
  </script>
@@ -281,5 +281,4 @@ details {
281
281
  padding-top: 2em;
282
282
  max-width: 100%;
283
283
  }
284
- }
285
-
284
+ }
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Type-on-strap Font Awesome kit v6.5.1
2
+ * Type-on-strap Font Awesome kit v6.7.1
3
3
  * Find the version and license of the included Font Awesome here: _sass/external/font-awesome/fontawesome.scss
4
4
  */
5
5
  $fa-inverse: var(--background);
@@ -1,16 +1,20 @@
1
1
  /*!
2
- * KaTeX v0.16.9
3
- * Plus added customizations for the theme and font path
2
+ * KaTeX v0.16.11
3
+ * Plus added customizations for the theme
4
4
  */
5
- $katex-font-path: "../../assets/fonts/katex" !default;
5
+
6
+ @import "katex/katex";
7
+
6
8
  .katex-display {
7
9
  @media screen and (max-width: $sm-break) {
8
10
  overflow-x: auto;
9
11
  }
10
- padding-bottom: 3px;
11
- padding-top: 1px;
12
- width: auto;
13
- height: auto;
12
+ & {
13
+ padding-bottom: 3px;
14
+ padding-top: 1px;
15
+ width: auto;
16
+ height: auto;
17
+ }
14
18
  }
15
19
 
16
20
  .math-display {
@@ -18,4 +22,4 @@ $katex-font-path: "../../assets/fonts/katex" !default;
18
22
  width: 100%;
19
23
  }
20
24
 
21
- @import "katex/katex";
25
+
@@ -150,4 +150,3 @@
150
150
  0% { transform: rotate(0deg); }
151
151
  100% { transform: rotate(360deg); }
152
152
  }
153
-
@@ -9,12 +9,12 @@
9
9
  padding: var(--#{$fa-css-prefix}-border-padding, #{$fa-border-padding});
10
10
  }
11
11
 
12
- .#{$fa-css-prefix}-pull-left {
12
+ .#{$fa-css-prefix}-pull-left {
13
13
  float: left;
14
14
  margin-right: var(--#{$fa-css-prefix}-pull-margin, #{$fa-pull-margin});
15
15
  }
16
16
 
17
- .#{$fa-css-prefix}-pull-right {
17
+ .#{$fa-css-prefix}-pull-right {
18
18
  float: right;
19
19
  margin-left: var(--#{$fa-css-prefix}-pull-margin, #{$fa-pull-margin});
20
20
  }
@@ -6,15 +6,13 @@
6
6
  font-weight: var(--#{$fa-css-prefix}-style, #{$fa-style});
7
7
  }
8
8
 
9
- .#{$fa-css-prefix},
10
- .#{$fa-css-prefix}-classic,
11
- .#{$fa-css-prefix}-sharp,
12
9
  .fas,
13
- .#{$fa-css-prefix}-solid,
14
10
  .far,
15
- .#{$fa-css-prefix}-regular,
16
11
  .fab,
17
- .#{$fa-css-prefix}-brands {
12
+ .#{$fa-css-prefix}-solid,
13
+ .#{$fa-css-prefix}-regular,
14
+ .#{$fa-css-prefix}-brands,
15
+ .#{$fa-css-prefix} {
18
16
  -moz-osx-font-smoothing: grayscale;
19
17
  -webkit-font-smoothing: antialiased;
20
18
  display: var(--#{$fa-css-prefix}-display, #{$fa-display});
@@ -24,20 +22,28 @@
24
22
  text-rendering: auto;
25
23
  }
26
24
 
27
- .fas,
25
+ .fas::before,
26
+ .far::before,
27
+ .fab::before,
28
+ .#{$fa-css-prefix}-solid::before,
29
+ .#{$fa-css-prefix}-regular::before,
30
+ .#{$fa-css-prefix}-brands::before,
31
+ .fa::before {
32
+ content: var(#{$fa-icon-property});
33
+ }
34
+
28
35
  .#{$fa-css-prefix}-classic,
36
+ .fas,
29
37
  .#{$fa-css-prefix}-solid,
30
38
  .far,
31
39
  .#{$fa-css-prefix}-regular {
32
40
  font-family: 'Font Awesome 6 Free';
33
41
  }
34
-
35
- .fab,
36
- .#{$fa-css-prefix}-brands {
42
+ .#{$fa-css-prefix}-brands,
43
+ .fab {
37
44
  font-family: 'Font Awesome 6 Brands';
38
45
  }
39
46
 
40
-
41
47
  %fa-icon {
42
48
  @include fa-icon;
43
49
  }
@@ -5,6 +5,9 @@
5
5
  readers do not read off random characters that represent icons */
6
6
 
7
7
  @each $name, $icon in $fa-icons {
8
- .#{$fa-css-prefix}-#{$name}::before { content: unquote("\"#{ $icon }\""); }
8
+ .#{$fa-css-prefix}-#{$name} {
9
+ #{$fa-icon-property}: unquote("\"#{ $icon }\"");
10
+ #{$fa-duotone-icon-property}: unquote("\"#{$icon}#{$icon}\"");
11
+ }
9
12
  }
10
13
 
@@ -10,7 +10,7 @@
10
10
  }
11
11
 
12
12
  .#{$fa-css-prefix}-li {
13
- left: calc(var(--#{$fa-css-prefix}-li-width, #{$fa-li-width}) * -1);
13
+ left: calc(-1 * var(--#{$fa-css-prefix}-li-width, #{$fa-li-width}));
14
14
  position: absolute;
15
15
  text-align: center;
16
16
  width: var(--#{$fa-css-prefix}-li-width, #{$fa-li-width});
@@ -42,34 +42,24 @@
42
42
  }
43
43
 
44
44
  // sets a specific icon family to use alongside style + icon mixins
45
+ @mixin fa-family-classic() {
46
+ @extend .fa-classic;
47
+ }
45
48
 
46
49
  // convenience mixins for declaring pseudo-elements by CSS variable,
47
- // including all style-specific font properties, and both the ::before
48
- // and ::after elements in the duotone case.
50
+ // including all style-specific font properties
49
51
  @mixin fa-icon-solid($fa-var) {
50
- @extend %fa-icon;
51
52
  @extend .fa-solid;
52
53
 
53
- &::before {
54
- content: unquote("\"#{ $fa-var }\"");
55
- }
54
+ & { #{$fa-icon-property}: unquote("\"#{ $fa-var }\""); #{$fa-duotone-icon-property}: unquote("\"#{ $fa-var }#{ $fa-var }\""); }
56
55
  }
57
-
58
56
  @mixin fa-icon-regular($fa-var) {
59
- @extend %fa-icon;
60
57
  @extend .fa-regular;
61
58
 
62
- &::before {
63
- content: unquote("\"#{ $fa-var }\"");
64
- }
59
+ & { #{$fa-icon-property}: unquote("\"#{ $fa-var }\""); #{$fa-duotone-icon-property}: unquote("\"#{ $fa-var }#{ $fa-var }\""); }
65
60
  }
66
-
67
61
  @mixin fa-icon-brands($fa-var) {
68
- @extend %fa-icon;
69
62
  @extend .fa-brands;
70
63
 
71
- &::before {
72
- content: unquote("\"#{ $fa-var }\"");
73
- }
64
+ & { #{$fa-icon-property}: unquote("\"#{ $fa-var }\""); #{$fa-duotone-icon-property}: unquote("\"#{ $fa-var }#{ $fa-var }\""); }
74
65
  }
75
-
@@ -22,10 +22,10 @@
22
22
  }
23
23
 
24
24
  .#{$fa-css-prefix}-flip-both,
25
- .#{$fa-css-prefix}-flip-horizontal.#{$fa-css-prefix}-flip-vertical {
25
+ .#{$fa-css-prefix}-flip-horizontal.#{$fa-css-prefix}-flip-vertical {
26
26
  transform: scale(-1, -1);
27
27
  }
28
28
 
29
29
  .#{$fa-css-prefix}-rotate-by {
30
- transform: rotate(var(--#{$fa-css-prefix}-rotate-angle, none));
30
+ transform: rotate(var(--#{$fa-css-prefix}-rotate-angle, 0));
31
31
  }