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 +4 -4
- data/README.md +41 -33
- data/_includes/default/head.liquid +8 -5
- 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 +2 -1
- data/_sass/external/_katex.scss +1 -1
- data/_sass/external/katex/katex.scss +6 -4
- data/assets/js/vendor/katex.min.js +1 -1
- data/assets/js/vendor/mermaid.min.js +1381 -998
- 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: f5a9d47621e0b454f1c0658622a29f749519ddd6dd265cdcbf1ead4f210fa9e2
|
|
4
|
+
data.tar.gz: 065cb8d35e79a304c0530008c4494c8ce1d1e64ed88d9422a5eeec03737145ea
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: bf956f01a7160cc092808515301fa639b07a48a000a987f74536ac6d792972f14e494898f4a7ea8527b3ea342f33ceb4575a8ceac252e03429e9a1e6de9dc50b
|
|
7
|
+
data.tar.gz: b55fd5b2f2b114913c38c1b6b4113647c621c88d5522b09aea4e45f9316cca6f822665e086b146b374579d39e3cd025e08e7ef3dd18de2218e000e95a0b21b93
|
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,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.
|
|
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.
|
|
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.
|
|
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 -->
|
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
data/_sass/external/_katex.scss
CHANGED
|
@@ -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.
|
|
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:
|
|
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
|
-
|
|
392
|
-
|
|
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 {
|