type-on-strap 2.5.1 → 2.5.2

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: ccb4fee6ac8c69a532174663a2a2c0dcfad5725c42a4f31ecf1d109e8319a170
4
- data.tar.gz: ca86903243c9c9b1d660b03962853a7db7b156dbd5f76b5af17e2535734f2a7d
3
+ metadata.gz: f5a9d47621e0b454f1c0658622a29f749519ddd6dd265cdcbf1ead4f210fa9e2
4
+ data.tar.gz: 065cb8d35e79a304c0530008c4494c8ce1d1e64ed88d9422a5eeec03737145ea
5
5
  SHA512:
6
- metadata.gz: 4de654f0b9e47747ada241f063797864252a72705eb543e252da6c0270e1fcc178328170192095372504095eb05d0f5a1f0132eb55d563049087d27f454a6b6c
7
- data.tar.gz: ff886caa5eb1c059b8a9df3e175349f6b701059f09fe8cfa071e688aedb0d8552b98de4229df9417c38292ac6973dabf1984b6515106cbca0ac96af2e378a386
6
+ metadata.gz: bf956f01a7160cc092808515301fa639b07a48a000a987f74536ac6d792972f14e494898f4a7ea8527b3ea342f33ceb4575a8ceac252e03429e9a1e6de9dc50b
7
+ data.tar.gz: b55fd5b2f2b114913c38c1b6b4113647c621c88d5522b09aea4e45f9316cca6f822665e086b146b374579d39e3cd025e08e7ef3dd18de2218e000e95a0b21b93
data/README.md CHANGED
@@ -3,34 +3,41 @@
3
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
+ [![Gem Downloads](https://img.shields.io/gem/dt/type-on-strap?logo=rubygems)](https://rubygems.org/gems/type-on-strap)
6
7
 
7
- [![Default Type on Strap blog](https://github.com/Sylhare/Type-on-Strap/blob/master/assets/img/screenshot.png?raw=true)](https://sylhare.github.io/Type-on-Strap/)
8
+ [![Default Type on Strap blog](https://github.com/sylhare/Type-on-Strap/blob/master/assets/img/screenshot.png?raw=true)](https://sylhare.github.io/Type-on-Strap/)
8
9
 
9
- A free and open-source [Jekyll](https://jekyllrb.com) theme.
10
- Based on Rohan Chandra [type-theme](https://github.com/rohanchandra/type-theme) packed with extra features and easily customizable:
10
+ A feature-rich [Jekyll](https://jekyllrb.com) theme for writers, developers, and creatives — with portfolio, gallery, dark mode, search, KaTeX, and Mermaid out of the box.
11
11
 
12
12
  * Responsive design on all devices (🖥, 💻, 📱, ...)
13
- * Portfolio 🗂, Gallery 🖼 pages for your projects
14
- * Multi comments 💬 options
15
- * Tags compatibility 🏷
16
- * Handle _Bootstrap_'ed pages: [Get Bootstrap](http://getbootstrap.com/)
17
- * 🔎 Search feature: [Simple-Jekyll-Search](https://github.com/sylhare/Simple-Jekyll-Search)
18
- * Math Rendering : [KateX](https://github.com/Khan/KaTeX)
19
- * Diagram Rendering: [Mermaid-js](https://github.com/mermaid-js/mermaid)
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)
21
- * Seo Tags: [Jekyll-seo-tag](https://github.com/jekyll/jekyll-seo-tag)
22
- * 🛠 Syntax Highlighting: Easily customisable [Base16](https://github.com/chriskempson/base16)
23
- * 💡 Light and dark theme supported
24
- * Find free of rights images on [pexels](https://www.pexels.com/)
25
-
26
- > [Demo Site](https://sylhare.github.io/Type-on-Strap/)
13
+ * Portfolio 🗂 and Gallery 🖼 pages for your projects
14
+ * Auto light and dark theme 💡 with manual toggle
15
+ * Full-text 🔎 search: [Simple-Jekyll-Search](https://github.com/sylhare/Simple-Jekyll-Search)
16
+ * Write equations natively with [KaTeX](https://github.com/Khan/KaTeX)
17
+ * Render diagrams natively with [Mermaid](https://github.com/mermaid-js/mermaid)
18
+ * Multi comments 💬 systems: Disqus, Giscus, Utterances, Cusdis
19
+ * Compatible with [Bootstrap](http://getbootstrap.com/) for responsive, customizable layouts
20
+ * SEO-ready with [jekyll-seo-tag](https://github.com/jekyll/jekyll-seo-tag)
21
+ * Syntax highlighting with easily customizable [Base16](https://github.com/chriskempson/base16) themes
22
+ * Tags 🏷, categories, archive, and pagination built in
23
+
24
+ > [Demo Site](https://sylhare.github.io/Type-on-Strap/)
27
25
 
28
26
  ## Usage
29
27
 
28
+ ### As a remote theme 🌐
29
+
30
+ The easiest way to use Type-on-Strap is as a remote theme with GitHub Pages.
31
+ Add this to your [`_config.yml`](_config.yml):
32
+
33
+ ```yml
34
+ remote_theme: sylhare/Type-on-Strap
35
+ ```
36
+
30
37
  ### As a GitHub page 📋
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`
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.
39
+ 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`
40
+ 2. Install [Ruby](https://www.ruby-lang.org/en/documentation/installation/) and [Bundler](https://bundler.io/), check [#1](https://github.com/sylhare/Type-on-Strap/issues/1) if you have a problem.
34
41
  3. Install the theme's dependencies: `bundle install`
35
42
  4. Customize the theme
36
43
  - GitHub Page: [update `_config.yml`](#site-configuration)
@@ -59,6 +66,8 @@ Here are the main files of the template
59
66
  ├── pages
60
67
  | ├── 404.md # To be displayed when url is wrong
61
68
  | ├── about.md # About example page
69
+ | ├── archive.md # Archive page for all posts
70
+ | ├── categories.md # Categories page for all posts
62
71
  | ├── gallery.md # Gallery page for your photos
63
72
  | ├── portfolio.md # Portfolio page for your projects
64
73
  | ├── search.md # Search page
@@ -67,10 +76,12 @@ Here are the main files of the template
67
76
  ├── _data
68
77
  | ├── authors.yml # Update the post authors configurations
69
78
  | ├── comments.yml # Comments configuration (Disqus, Cusdis, Utterances, Giscus)
79
+ | ├── icons.yml # Footer icons (Twitter, Github, Stackoverflow, ...)
80
+ | ├── icons_builder.yml # Icon set builder configuration
70
81
  | ├── language.yml # Localization configuration
82
+ | ├── menu.yml # Navigation menu configuration
71
83
  | ├── biblio.yml # To create a reference bibliography
72
84
  | ├── social.yml # Social configurations to share posts (RSS, shares, ...)
73
- | └── icons.yml # Footer icons (Twitter, Github, Stackoverflow, ...)
74
85
  └── index.html # sample home page (blog page paginated)
75
86
  ```
76
87
 
@@ -322,7 +333,7 @@ They will on click redirect you to the logo's platform to share the article.
322
333
  Display icons in the footer.
323
334
  All icon variables should be your username enclosed in quotes (e.g. "username") in [`_data/icons.yml`](_data/icons.yml).
324
335
 
325
- 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)).
336
+ You can update the RSS settings in `_data/social` to change the default feed path (generated by [jekyll-feed](https://github.com/jekyll/jekyll-feed)).
326
337
  To enable the share icons at the bottom of each article,
327
338
  set to true the one you'd like under `share` in the [`_data/social.yml`](_data/social.yml) file.
328
339
 
@@ -423,7 +434,7 @@ of your favourite highlight color scheme on this format.
423
434
 
424
435
  ## Feature pages and layouts
425
436
 
426
- All feature pages besides the "home" one are stored in the `page` folder,
437
+ All feature pages besides the "home" one are stored in the `pages` folder,
427
438
  they will appear in the navigation bar unless you set `Hide: true` in the front matter.
428
439
 
429
440
  Here are the documentation for the other feature pages that can be added through [`_config.yml`](_config.yml).
@@ -478,7 +489,7 @@ layout: page
478
489
  title : Portfolio
479
490
  ---
480
491
 
481
- {% include default/portfolio.html %}
492
+ {% include portfolio.html %}
482
493
  ```
483
494
 
484
495
  #### Portfolio posts
@@ -529,7 +540,7 @@ title: Gallery
529
540
  gallery: "assets/img/pexels"
530
541
  ---
531
542
 
532
- {% include default/gallery.html gallery_path=page.gallery %}
543
+ {% include gallery.html gallery_path=page.gallery_path %}
533
544
  ```
534
545
 
535
546
  ### Feature: Search 🔍
@@ -629,18 +640,15 @@ Then you can start adding content like:
629
640
  - Add the feature page you want. (ex: as it is already in `pages`)
630
641
  - Add posts in `_posts` and `_portfolio` to be displayed
631
642
 
632
- ### Remote Theme
633
-
634
- Now you can use any theme gem with GitHub pages with [29/11/2017 GitHub Pages Broadcast](https://github.com/blog/2464-use-any-theme-with-github-pages).
635
- For that remove all `theme:` attributes from [`_config.yml`](_config.yml) and add instead:
636
-
637
- ```yml
638
- remote_theme: sylhare/Type-on-Strap
639
- ```
640
-
641
643
  ## License
642
644
 
643
645
  This theme is licensed under the [MIT License (MIT)](/LICENSE)
644
646
 
645
647
  - Pictures from [Pexels](https://www.pexels.com/) are under Creative Commons Zero (CC0) license
646
648
  - Fonts are licensed under the [SIL Open Font License (OFL)](https://scripts.sil.org/cms/scripts/page.php?site_id=nrsi&id=OFL)
649
+
650
+ ## Credits
651
+
652
+ Based on Rohan Chandra's [type-theme](https://github.com/rohanchandra/type-theme), extended with many additional features.
653
+
654
+ [![Contributors](https://contrib.rocks/image?repo=sylhare/Type-on-Strap)](https://github.com/sylhare/Type-on-Strap/graphs/contributors)
@@ -18,6 +18,11 @@
18
18
  <!-- Main JS (navbar.js, katex_init.js)-->
19
19
  <script defer src="{{ '/assets/js/main.min.js' | relative_url }}"></script>
20
20
 
21
+ {% if page.bootstrap %}
22
+ <!-- Bootstrap 4.6.2 CSS CDN - loaded in a @layer so theme styles always take precedence -->
23
+ <style>@import url("https://cdn.jsdelivr.net/npm/bootstrap@4.6.2/dist/css/bootstrap.min.css") layer(bootstrap);</style>
24
+ {% endif %}
25
+
21
26
  <!-- CSS -->
22
27
  <link rel="stylesheet" href="{{ '/assets/css/main.css' | relative_url }}">
23
28
 
@@ -30,8 +35,6 @@
30
35
  {% endif %}
31
36
 
32
37
  {% if page.bootstrap %}
33
- <!-- Bootstrap 4.6.2 CSS CDN -->
34
- <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@4.6.2/dist/css/bootstrap.min.css" integrity="sha384-xOolHFLEh07PJGoPkLv1IbcEPTNtaed2xpHsD9ESMhqIYd0nLMwNLD69Npy4HI+N" crossorigin="anonymous">
35
38
  <!-- jQuery 3.5.1 CDN -->
36
39
  <script defer src="https://cdn.jsdelivr.net/npm/jquery@3.5.1/dist/jquery.slim.min.js" integrity="sha384-DfXdz2htPH0lsSSs5nCTpuj/zy4C+OGpamoFVy38MVBnE+IbbVYUew+OrCXaRkfj" crossorigin="anonymous"></script>
37
40
  <!-- Popper.js 1.16.1 CDN -->
@@ -40,18 +43,18 @@
40
43
  <script defer src="https://cdn.jsdelivr.net/npm/bootstrap@4.6.2/dist/js/bootstrap.min.js" integrity="sha384-+sLIOodYLS7CIrQpBjl+C7nPvqq+FbZUBVs2mbGk8cFoTfurqEOk6sD3+6VUuY3" crossorigin="anonymous"></script>
41
44
  {% endif %}
42
45
 
43
- <!-- KaTeX 0.16.38 -->
46
+ <!-- KaTeX 0.17.0 -->
44
47
  {% if site.katex or site.theme_settings.katex %}
45
48
  <script defer src="{{ '/assets/js/vendor/katex.min.js' | relative_url }}"></script>
46
49
  <script defer src="{{ '/assets/js/vendor/katex.auto-render.min.js' | relative_url }}" onload="renderMathInElement(document.body);"></script>
47
50
  {% endif %}
48
51
 
49
- <!-- Mermaid 11.13.0 -->
52
+ <!-- Mermaid 11.15.0 -->
50
53
  {% if site.mermaid %}
51
54
  <script defer src="{{ '/assets/js/vendor/mermaid.min.js' | relative_url }}"></script>
52
55
  {% endif %}
53
56
 
54
- <!-- Simple-Jekyll-Search 2.1.3 -->
57
+ <!-- Simple-Jekyll-Search 2.1.4 -->
55
58
  <script src="{{ '/assets/js/vendor/simple-jekyll-search.min.js' | relative_url }}" type="text/javascript"></script>
56
59
 
57
60
  <!-- Google Analytics / Cookie Consent -->
@@ -1,6 +1,6 @@
1
1
  <!DOCTYPE html>
2
2
  <!--
3
- Type on Strap jekyll theme v2.5.1
3
+ Type on Strap jekyll theme v2.5.2
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
  -->
data/_layouts/page.liquid CHANGED
@@ -15,7 +15,9 @@ layout: default
15
15
  </div>
16
16
  </header>
17
17
  <section class="post-content">
18
+ {% if page.bootstrap %}<div class="bootstrap-iso">{% endif %}
18
19
  {{ content }}
20
+ {% if page.bootstrap %}</div>{% endif %}
19
21
  </section>
20
22
  <!-- Category and Tag list -->
21
23
  <div class="tag-category-container">
data/_layouts/post.liquid CHANGED
@@ -14,7 +14,9 @@ layout: default
14
14
  </header>
15
15
 
16
16
  <section class="post-content">
17
+ {% if page.bootstrap %}<div class="bootstrap-iso">{% endif %}
17
18
  {{ content }}
19
+ {% if page.bootstrap %}</div>{% endif %}
18
20
  </section>
19
21
 
20
22
  <!-- Social media shares -->
@@ -20,6 +20,7 @@ layout: page
20
20
  strategy: {
21
21
  type: 'hybrid',
22
22
  },
23
+ sortMiddleware: window.RelevanceSort,
23
24
  exclude: [],
24
25
  templateMiddleware: window.createHighlightTemplateMiddleware({
25
26
  className: 'search-highlight',
@@ -8,7 +8,8 @@ figure {
8
8
  margin: 0;
9
9
  }
10
10
 
11
- html {
11
+ html,
12
+ body {
12
13
  background: var(--background);
13
14
  }
14
15
 
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * KaTeX v0.16.38
2
+ * KaTeX v0.17.0
3
3
  * Plus added customizations for the theme
4
4
  */
5
5
 
@@ -144,6 +144,7 @@ $katex-font-path: "../../assets/fonts/katex" !default;
144
144
  .katex {
145
145
  font: normal 1.21em KaTeX_Main, Times New Roman, serif;
146
146
  line-height: 1.2;
147
+ position: relative;
147
148
  text-indent: 0;
148
149
  text-rendering: auto;
149
150
  }
@@ -154,13 +155,14 @@ $katex-font-path: "../../assets/fonts/katex" !default;
154
155
  border-color: currentColor;
155
156
  }
156
157
  .katex .katex-version::after {
157
- content: "0.16.38";
158
+ content: "0.17.0";
158
159
  }
159
160
  .katex .katex-mathml {
160
161
  /* Accessibility hack to only show to screen readers
161
162
  Found at: http://a11yproject.com/posts/how-to-hide-content/ */
162
163
  position: absolute;
163
- clip: rect(1px, 1px, 1px, 1px);
164
+ -webkit-clip-path: inset(50%);
165
+ clip-path: inset(50%);
164
166
  padding: 0;
165
167
  border: 0;
166
168
  height: 1px;
@@ -388,8 +390,8 @@ $katex-font-path: "../../assets/fonts/katex" !default;
388
390
  .katex .sqrt > .root {
389
391
  /* These values are taken from the definition of `\r@@t`,
390
392
  `\mkern 5mu` and `\mkern -10mu`. */
391
- margin-left: 0.2777777778em;
392
- margin-right: -0.5555555556em;
393
+ margin-left: 0.2777777778em;
394
+ margin-right: -0.5555555556em;
393
395
  }
394
396
  .katex .sizing.reset-size1.size1,
395
397
  .katex .fontsize-ensurer.reset-size1.size1 {