type-on-strap 2.5.1 → 2.5.3
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 +4 -4
- data/README.md +41 -33
- data/_includes/default/head.liquid +11 -6
- data/_layouts/default.html +1 -1
- data/_layouts/page.liquid +2 -0
- data/_layouts/post.liquid +2 -0
- data/_layouts/search.liquid +1 -0
- data/_sass/base/_global.scss +13 -7
- data/_sass/external/_katex.scss +1 -1
- data/_sass/external/katex/katex.scss +164 -167
- data/_sass/type-on-strap.scss +5 -3
- data/assets/js/main.min.js +1 -1
- data/assets/js/vendor/katex.min.js +1 -1
- data/assets/js/vendor/mermaid.min.js +1542 -977
- data/assets/js/vendor/simple-jekyll-search.min.js +2 -2
- metadata +8 -5
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: d09118deaa4d37945f5a25d42470b7a5c173913ecf993a46bb79a0765c22bb50
|
|
4
|
+
data.tar.gz: def4cc8b44282b75e69f1c754737a3bf1fe2f721173f4101d74e814246b9b11c
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 8371af5ba0d201fa83ac53bcd9b88560bc541be7172b8f1c086b57cab1d82456dd4e8887763afeb1634014ce5a9899829c0adb414f928f7b92841ef1036eb0db
|
|
7
|
+
data.tar.gz: fb46c6f5fff195497c9792eb015d825cf8d5cf62da33b08d33391ecef518248c4ec9ee35dc3a2a86ab4a14b75c5f558f023dd9c3514d940fc281bb412fed8692
|
data/README.md
CHANGED
|
@@ -3,34 +3,41 @@
|
|
|
3
3
|
[](https://github.com/sylhare/Type-on-Strap/actions/workflows/docker-build.yml)
|
|
4
4
|
[](https://badge.fury.io/rb/type-on-strap)
|
|
5
5
|
[](https://hub.docker.com/r/sylhare/type-on-strap)
|
|
6
|
+
[](https://rubygems.org/gems/type-on-strap)
|
|
6
7
|
|
|
7
|
-
[](https://sylhare.github.io/Type-on-Strap/)
|
|
8
9
|
|
|
9
|
-
A
|
|
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
|
|
14
|
-
*
|
|
15
|
-
*
|
|
16
|
-
*
|
|
17
|
-
*
|
|
18
|
-
*
|
|
19
|
-
*
|
|
20
|
-
*
|
|
21
|
-
*
|
|
22
|
-
*
|
|
23
|
-
|
|
24
|
-
|
|
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-
|
|
33
|
-
2. Install [
|
|
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-
|
|
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 `
|
|
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
|
|
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
|
|
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
|
+
[](https://github.com/sylhare/Type-on-Strap/graphs/contributors)
|
|
@@ -18,6 +18,13 @@
|
|
|
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
|
+
<!-- Layer order: theme reset < bootstrap < unlayered theme, so Bootstrap components render while the theme (colours/dark mode) still wins -->
|
|
23
|
+
<style>@layer reset, bootstrap;</style>
|
|
24
|
+
<!-- Bootstrap 4.6.2 CSS from the CDN, slotted into the bootstrap layer -->
|
|
25
|
+
<style>@import url("https://cdn.jsdelivr.net/npm/bootstrap@4.6.2/dist/css/bootstrap.min.css") layer(bootstrap);</style>
|
|
26
|
+
{% endif %}
|
|
27
|
+
|
|
21
28
|
<!-- CSS -->
|
|
22
29
|
<link rel="stylesheet" href="{{ '/assets/css/main.css' | relative_url }}">
|
|
23
30
|
|
|
@@ -30,28 +37,26 @@
|
|
|
30
37
|
{% endif %}
|
|
31
38
|
|
|
32
39
|
{% 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
40
|
<!-- jQuery 3.5.1 CDN -->
|
|
36
41
|
<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
42
|
<!-- Popper.js 1.16.1 CDN -->
|
|
38
43
|
<script defer src="https://cdn.jsdelivr.net/npm/popper.js@1.16.1/dist/umd/popper.min.js" integrity="sha384-9/reFTGAW83EW2RDu2S0VKaIzap3H66lZH81PoYlFhbGU+6BZp6G7niu735Sk7lN" crossorigin="anonymous"></script>
|
|
39
44
|
<!-- Bootstrap 4.6.2 JS CDN -->
|
|
40
|
-
<script defer src="https://cdn.jsdelivr.net/npm/bootstrap@4.6.2/dist/js/bootstrap.min.js" integrity="sha384-+sLIOodYLS7CIrQpBjl+C7nPvqq+
|
|
45
|
+
<script defer src="https://cdn.jsdelivr.net/npm/bootstrap@4.6.2/dist/js/bootstrap.min.js" integrity="sha384-+sLIOodYLS7CIrQpBjl+C7nPvqq+FbNUBDunl/OZv93DB7Ln/533i8e/mZXLi/P+" crossorigin="anonymous"></script>
|
|
41
46
|
{% endif %}
|
|
42
47
|
|
|
43
|
-
<!-- KaTeX 0.
|
|
48
|
+
<!-- KaTeX 0.18.1 -->
|
|
44
49
|
{% if site.katex or site.theme_settings.katex %}
|
|
45
50
|
<script defer src="{{ '/assets/js/vendor/katex.min.js' | relative_url }}"></script>
|
|
46
51
|
<script defer src="{{ '/assets/js/vendor/katex.auto-render.min.js' | relative_url }}" onload="renderMathInElement(document.body);"></script>
|
|
47
52
|
{% endif %}
|
|
48
53
|
|
|
49
|
-
<!-- Mermaid 11.
|
|
54
|
+
<!-- Mermaid 11.16.0 -->
|
|
50
55
|
{% if site.mermaid %}
|
|
51
56
|
<script defer src="{{ '/assets/js/vendor/mermaid.min.js' | relative_url }}"></script>
|
|
52
57
|
{% endif %}
|
|
53
58
|
|
|
54
|
-
<!-- Simple-Jekyll-Search 2.1.
|
|
59
|
+
<!-- Simple-Jekyll-Search 2.1.4 -->
|
|
55
60
|
<script src="{{ '/assets/js/vendor/simple-jekyll-search.min.js' | relative_url }}" type="text/javascript"></script>
|
|
56
61
|
|
|
57
62
|
<!-- Google Analytics / Cookie Consent -->
|
data/_layouts/default.html
CHANGED
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
data/_layouts/search.liquid
CHANGED
data/_sass/base/_global.scss
CHANGED
|
@@ -1,14 +1,20 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
// The global reset lives in @layer reset (paired with normalize in type-on-strap.scss) so
|
|
2
|
+
// that on `bootstrap: true` pages Bootstrap components aren't flattened by `* { padding: 0 }`.
|
|
3
|
+
// Everything else stays unlayered, so the theme's styling still wins over Bootstrap.
|
|
4
|
+
@layer reset {
|
|
5
|
+
* {
|
|
6
|
+
margin: 0;
|
|
7
|
+
padding: 0;
|
|
8
|
+
box-sizing: border-box;
|
|
9
|
+
}
|
|
5
10
|
}
|
|
6
11
|
|
|
7
12
|
figure {
|
|
8
13
|
margin: 0;
|
|
9
14
|
}
|
|
10
15
|
|
|
11
|
-
html
|
|
16
|
+
html,
|
|
17
|
+
body {
|
|
12
18
|
background: var(--background);
|
|
13
19
|
}
|
|
14
20
|
|
|
@@ -215,7 +221,7 @@ hr {
|
|
|
215
221
|
margin: 1em 0;
|
|
216
222
|
}
|
|
217
223
|
|
|
218
|
-
a {
|
|
224
|
+
a:where(:not(.btn)) {
|
|
219
225
|
color: var(--link);
|
|
220
226
|
text-decoration: none;
|
|
221
227
|
}
|
|
@@ -277,4 +283,4 @@ details {
|
|
|
277
283
|
padding-top: 2em;
|
|
278
284
|
max-width: 100%;
|
|
279
285
|
}
|
|
280
|
-
}
|
|
286
|
+
}
|
data/_sass/external/_katex.scss
CHANGED