type-on-strap 2.4.12 → 2.4.13
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 +57 -28
- data/_data/language.yml +1 -0
- data/_includes/blog/post_footer.liquid +14 -3
- data/_includes/blog/post_info.liquid +20 -9
- data/_includes/default/head.liquid +2 -2
- data/_includes/social/cusdis.liquid +3 -3
- data/_includes/social/disqus.liquid +2 -2
- data/_includes/social/giscus.liquid +17 -0
- data/_includes/social/utterances.liquid +4 -4
- data/_layouts/default.html +1 -1
- data/_layouts/post.liquid +1 -1
- data/_sass/external/_katex.scss +1 -1
- data/_sass/external/katex/katex.scss +1153 -1336
- data/_sass/layouts/_posts.scss +29 -5
- data/assets/js/vendor/imagesloaded.pkgd.min.js +6 -6
- data/assets/js/vendor/katex.auto-render.min.js +1 -1
- data/assets/js/vendor/katex.min.js +1 -1
- data/assets/js/vendor/mermaid.min.js +896 -399
- metadata +3 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 2420c122c17be2f45cf263d4e7339bd1bb193f985446014de4d8aab3f23bd8be
|
|
4
|
+
data.tar.gz: 26de41669add59557ccfed11db3a3b0ef67ff18d348132c3f703d06fd31f6ff3
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: f3b2c6aca18ecf499017e741cf309ec687f971b1a93668d6ecd9caebe038fcd1707d240d2d351c12466982480c05bfaf75830862c78451a9b5760902f5d4fc5f
|
|
7
|
+
data.tar.gz: c26e9a0672a93316ec4b305fe567ba9769ad40a15eb78eb2cc3899817676aabd7dc88a97584fe1cd2e034498dcf61106d2ba51420678c65983784e9492e61c8b
|
data/README.md
CHANGED
|
@@ -68,6 +68,7 @@ Here are the main files of the template
|
|
|
68
68
|
├── _config.yml # sample configuration
|
|
69
69
|
├── _data
|
|
70
70
|
| ├── authors.yml # Update the post authors configurations
|
|
71
|
+
| ├── comments.yml # Comments configuration (Disqus, Cusdis, Utterances, Giscus)
|
|
71
72
|
| ├── language.yml # Localization configuration
|
|
72
73
|
| ├── biblio.yml # To create a reference bibliography
|
|
73
74
|
| ├── social.yml # Social configurations to share posts (RSS, shares, ...)
|
|
@@ -77,7 +78,7 @@ Here are the main files of the template
|
|
|
77
78
|
|
|
78
79
|
## Configure Type on Strap 🛠
|
|
79
80
|
|
|
80
|
-
Open `_config.yml` in a text editor to change most of the blog's settings.
|
|
81
|
+
Open [`_config.yml`](_config.yml) in a text editor to change most of the blog's settings.
|
|
81
82
|
|
|
82
83
|
If a variable in this document is marked as "optional", disable the feature by removing all text from the variable.
|
|
83
84
|
|
|
@@ -85,7 +86,7 @@ If a variable in this document is marked as "optional", disable the feature by r
|
|
|
85
86
|
|
|
86
87
|
#### Base url
|
|
87
88
|
|
|
88
|
-
Configure Jekyll as your own blog or with a "baseurl" in `_config.yml
|
|
89
|
+
Configure Jekyll as your own blog or with a "baseurl" in [`_config.yml`](_config.yml):
|
|
89
90
|
|
|
90
91
|
Jekyll website *without* a "baseurl" (such as a **GitHub Pages website** with your username as the repository name):
|
|
91
92
|
|
|
@@ -103,7 +104,7 @@ url: "https://username.github.io"
|
|
|
103
104
|
|
|
104
105
|
#### Jekyll blog configuration
|
|
105
106
|
|
|
106
|
-
And here is the basic information you will need in your `_config.yml` for it to work properly:
|
|
107
|
+
And here is the basic information you will need in your [`_config.yml`](_config.yml) for it to work properly:
|
|
107
108
|
|
|
108
109
|
```yaml
|
|
109
110
|
# BLOG CONFIGURATION
|
|
@@ -120,7 +121,7 @@ To configure the blog part and default plugins. Those plugins are validated by G
|
|
|
120
121
|
_Meta variables_ hold basic information about your Jekyll site, which will be used throughout the site
|
|
121
122
|
and as _meta properties_ that are used for search engines, browsers, and the site's RSS feed.
|
|
122
123
|
|
|
123
|
-
Change these variables in `_config.yml
|
|
124
|
+
Change these variables in [`_config.yml`](_config.yml):
|
|
124
125
|
|
|
125
126
|
```yml
|
|
126
127
|
title: My Jekyll Blog # Name of website
|
|
@@ -131,14 +132,14 @@ color_theme: auto # color theme auto, dark or light
|
|
|
131
132
|
```
|
|
132
133
|
|
|
133
134
|
You can also customize the seo tags default option following the jekyll-seo-tag plugin [documentation](http://jekyll.github.io/jekyll-seo-tag/advanced-usage/).
|
|
134
|
-
The color theme can be set to dark or light (customize it in _variables.
|
|
135
|
+
The color theme can be set to dark or light (customize it in [`_variables.scss`](_sass/base/_variables.scss)).
|
|
135
136
|
Using _auto_ you'll have a tiny icon in the navbar allowing the use to manually switch from dark to light theme.
|
|
136
137
|
|
|
137
138
|
### Theme customization 🎨
|
|
138
139
|
|
|
139
140
|
#### Footer and Header text
|
|
140
141
|
|
|
141
|
-
Customize your site header/footer with these variables in `_config.yml
|
|
142
|
+
Customize your site header/footer with these variables in [`_config.yml`](_config.yml):
|
|
142
143
|
|
|
143
144
|
```yml
|
|
144
145
|
header_text: Welcome to my Jekyll blog
|
|
@@ -163,7 +164,7 @@ with suffix `-small` (620x320) and `-medium` (1240x640) to display on smaller sc
|
|
|
163
164
|
#### Localisation string
|
|
164
165
|
|
|
165
166
|
Localization string is a way to quickly change the template language for text like *Next Post* or *Follow on*, ...
|
|
166
|
-
You can find all the properties in `_data/language.yml
|
|
167
|
+
You can find all the properties in [`_data/language.yml`](_data/language.yml).
|
|
167
168
|
|
|
168
169
|
By default, it is in English, but you can add your own language.
|
|
169
170
|
|
|
@@ -173,7 +174,7 @@ Here you also can set the date format, e.g., set `str_date_format: '%B %-d, %Y'`
|
|
|
173
174
|
### Google Analytics
|
|
174
175
|
|
|
175
176
|
To enable Google Analytics (GA4), add your [Measurement ID](https://support.google.com/analytics/answer/12270356?hl=en&sjid=1593376271608310401-NA)
|
|
176
|
-
to `_config.yml` like so:
|
|
177
|
+
to [`_config.yml`](_config.yml) like so:
|
|
177
178
|
|
|
178
179
|
```yml
|
|
179
180
|
google_analytics: G-XXXXXXXXXX
|
|
@@ -183,12 +184,15 @@ It will use the [Google Tag Manager](https://support.google.com/analytics/answer
|
|
|
183
184
|
|
|
184
185
|
### Comments 💬
|
|
185
186
|
|
|
187
|
+
Type-on-Strap supports multiple comment systems.
|
|
188
|
+
Use [`_data/comments.yml`](_data/comments.yml) for all comment configurations
|
|
189
|
+
|
|
186
190
|
#### Disqus
|
|
187
191
|
|
|
188
192
|
If you have a [Disqus](https://disqus.com/) account, you can show a comments section below each post.
|
|
189
193
|
|
|
190
194
|
To enable Disqus comments, add your [Disqus shortname](https://help.disqus.com/customer/portal/articles/466208)
|
|
191
|
-
to your project's `
|
|
195
|
+
to your project's [`_data/comments.yml`](_data/comments.yml) file:
|
|
192
196
|
|
|
193
197
|
```yml
|
|
194
198
|
comments:
|
|
@@ -200,7 +204,7 @@ comments:
|
|
|
200
204
|
[Cusdis](https://cusdis.com/) is an open-source alternative to Disqus.
|
|
201
205
|
You can read more about it in the [documentation](https://cusdis.com/doc#/)
|
|
202
206
|
|
|
203
|
-
To enable it, set your Cusdis name in `
|
|
207
|
+
To enable it, set your Cusdis name in [`_data/comments.yml`](_data/comments.yml):
|
|
204
208
|
|
|
205
209
|
```yaml
|
|
206
210
|
comments:
|
|
@@ -213,7 +217,7 @@ comments:
|
|
|
213
217
|
It stores the comments as GitHub issues on a repository for each page.
|
|
214
218
|
|
|
215
219
|
Install the utterance [app](https://github.com/apps/utterances) to your repo.
|
|
216
|
-
After installing, add your info in the `
|
|
220
|
+
After installing, add your info in the [`_data/comments.yml`](_data/comments.yml):
|
|
217
221
|
|
|
218
222
|
```yaml
|
|
219
223
|
comments:
|
|
@@ -224,16 +228,41 @@ comments:
|
|
|
224
228
|
label: # OPTIONAL: Adds an issue label in the issue
|
|
225
229
|
```
|
|
226
230
|
|
|
231
|
+
#### Giscus
|
|
232
|
+
|
|
233
|
+
[Giscus](https://giscus.app/) is another open source alternative linked to one's GitHub account.
|
|
234
|
+
It stores the comments as GitHub discussions on a repository for each page.
|
|
235
|
+
|
|
236
|
+
Install the giscus [app](https://github.com/apps/giscus) to your repo.
|
|
237
|
+
After installing, add your info in the [`_data/comments.yml`](_data/comments.yml):
|
|
238
|
+
|
|
239
|
+
```yaml
|
|
240
|
+
comments:
|
|
241
|
+
giscus: # Enable by filling below information. For more info, go to https://giscus.app
|
|
242
|
+
repo: # Your public comments repository (e.g. owner/repo)
|
|
243
|
+
repo-id: # Your repo id, go to https://giscus.app to check it
|
|
244
|
+
category: # Category to search discussions. When removed, discussions will be searched in all categories
|
|
245
|
+
category-id: # Your category id, go to https://giscus.app to check it
|
|
246
|
+
mapping: # Discussion mapping
|
|
247
|
+
term: # OPTIONAL: some mappings require specific term, go to https://giscus.app to check it
|
|
248
|
+
strict: 1 # OPTIONAL: Avoid mismatches on similar titles
|
|
249
|
+
reactions-enabled: 0 # OPTIONAL: Disable reactions
|
|
250
|
+
emit-metadata: 1 # OPTIONAL: Emit discussion metadata
|
|
251
|
+
input-position: top # OPTIONAL: Place the comment box above the comments
|
|
252
|
+
theme: # OPTIONAL: Take the `color_theme` by default, or set a custom one like dark_dimmed
|
|
253
|
+
lang: # OPTIONAL: Choose the language. "en" is used by default
|
|
254
|
+
```
|
|
255
|
+
|
|
227
256
|
### Math typesetting with KateX
|
|
228
257
|
|
|
229
|
-
When KateX is set in `_config.yml
|
|
258
|
+
When KateX is set in [`_config.yml`](_config.yml):
|
|
230
259
|
|
|
231
260
|
```yml
|
|
232
261
|
katex: true # to enable it
|
|
233
262
|
```
|
|
234
263
|
|
|
235
264
|
You can then wrap math expressions with `$$` signs in your posts and make sure you have set the `katex` variable
|
|
236
|
-
in `_config.yml` to `true` for math typesetting.
|
|
265
|
+
in [`_config.yml`](_config.yml) to `true` for math typesetting.
|
|
237
266
|
|
|
238
267
|
For inline math typesetting, type your math expression on the *same line* as your content. For example:
|
|
239
268
|
|
|
@@ -253,7 +282,7 @@ You can find a cheat sheet of the compatible LaTex symbols [online](https://arto
|
|
|
253
282
|
|
|
254
283
|
### Diagrams with Mermaid
|
|
255
284
|
|
|
256
|
-
Enable the [mermaid-js](https://github.com/mermaid-js/mermaid) diagram rendering by setting mermaid to true in the `_config.yml
|
|
285
|
+
Enable the [mermaid-js](https://github.com/mermaid-js/mermaid) diagram rendering by setting mermaid to true in the [`_config.yml`](_config.yml).
|
|
257
286
|
This will load and init the [mermaid.min.js](https://mermaid-js.github.io/mermaid/getting-started/n00b-gettingStarted.html#4-calling-mermaid-from-a-relative-link).
|
|
258
287
|
|
|
259
288
|
```yml
|
|
@@ -272,11 +301,11 @@ sequenceDiagram
|
|
|
272
301
|
|
|
273
302
|
### Social icons
|
|
274
303
|
|
|
275
|
-
In `_data/social.yml` you can customize the social icons that will be displayed in the post to share your post.
|
|
304
|
+
In [`_data/social.yml`](_data/social.yml) you can customize the social icons that will be displayed in the post to share your post.
|
|
276
305
|
You can also enable RSS.
|
|
277
306
|
The site icons come from [Font Awesome](https://fontawesome.com/).
|
|
278
307
|
|
|
279
|
-
In `_data/icons.yml` you can set the footer icon that will appear at the bottom of the page.
|
|
308
|
+
In [`_data/icons.yml`](_data/icons.yml) you can set the footer icon that will appear at the bottom of the page.
|
|
280
309
|
They will redirect the user on your profile on to other platforms like Twitter, GitHub and so many more!
|
|
281
310
|
|
|
282
311
|
### Cookie consent
|
|
@@ -293,11 +322,11 @@ They will on click redirect you to the logo's platform to share the article.
|
|
|
293
322
|
#### Footer
|
|
294
323
|
|
|
295
324
|
Display icons in the footer.
|
|
296
|
-
All icon variables should be your username enclosed in quotes (e.g. "username") in `_data/icons.yml
|
|
325
|
+
All icon variables should be your username enclosed in quotes (e.g. "username") in [`_data/icons.yml`](_data/icons.yml).
|
|
297
326
|
|
|
298
327
|
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)).
|
|
299
328
|
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.
|
|
329
|
+
set to true the one you'd like under `share` in the [`_data/social.yml`](_data/social.yml) file.
|
|
301
330
|
|
|
302
331
|
### Personalize your Blog Posts 📝
|
|
303
332
|
|
|
@@ -329,7 +358,7 @@ tags: [sample, markdown, html] # [Opt] Add tags to the page
|
|
|
329
358
|
With `thumbnail`, you can add a smaller image than the `feature-img`.
|
|
330
359
|
If you don't have a thumbnail, you can still use the same image as the feature one. Or use the gulp task to create it.
|
|
331
360
|
|
|
332
|
-
If you don't use a feature image, but `color`, the transparent background is set comes from `lineart.png
|
|
361
|
+
If you don't use a feature image, but `color`, the transparent background is set comes from [`lineart.png`](assets/img/lineart.png).
|
|
333
362
|
You can edit it in the config file (`_config.yml > color_image`). If you want another one, put it in `/assets/img` as well.
|
|
334
363
|
|
|
335
364
|
For position, if not set on all pages, it will be by alphabetical order without `position` then by `position` order.
|
|
@@ -399,7 +428,7 @@ of your favourite highlight color scheme on this format.
|
|
|
399
428
|
All feature pages besides the "home" one are stored in the `page` folder,
|
|
400
429
|
they will appear in the navigation bar unless you set `Hide: true` in the front matter.
|
|
401
430
|
|
|
402
|
-
Here are the documentation for the other feature pages that can be added through `_config.yml
|
|
431
|
+
Here are the documentation for the other feature pages that can be added through [`_config.yml`](_config.yml).
|
|
403
432
|
|
|
404
433
|
Non-standard features are documented below.
|
|
405
434
|
|
|
@@ -410,13 +439,13 @@ Unless you are making a custom layout you won't need it.
|
|
|
410
439
|
|
|
411
440
|
### Layout: Home 🏡
|
|
412
441
|
|
|
413
|
-
This page is used as the home page of the template (in the `index.html`). It displays the list of articles in `_posts`.
|
|
442
|
+
This page is used as the home page of the template (in the [`index.html`](index.html)). It displays the list of articles in `_posts`.
|
|
414
443
|
You can use this layout in another page (adding a title to it will make it appear in the navigation bar).
|
|
415
444
|
|
|
416
445
|
The recommended width and height for the home picture is width:`2484px;` and height:`1280px`
|
|
417
446
|
which are the dimensions of the actual picture for it to be rolling down as you scroll the page.
|
|
418
447
|
|
|
419
|
-
If your posts are not displaying ensure that you have added the line `paginate: 5` to `_config.yml
|
|
448
|
+
If your posts are not displaying ensure that you have added the line `paginate: 5` to [`_config.yml`](_config.yml).
|
|
420
449
|
|
|
421
450
|
### Layout: Page 📄
|
|
422
451
|
|
|
@@ -442,7 +471,7 @@ The hide only hides your page from the navigation bar, it is, however, still gen
|
|
|
442
471
|
|
|
443
472
|
Portfolio is a feature page that will take all the markdown/html files in the `_portfolio` folder to create a 3-columns image portfolio matrix.
|
|
444
473
|
|
|
445
|
-
To use the portfolio, simply create a `portfolio.md` with this information inside:
|
|
474
|
+
To use the portfolio, simply create a [`portfolio.md`](pages/portfolio.md) with this information inside:
|
|
446
475
|
|
|
447
476
|
```yml
|
|
448
477
|
|
|
@@ -475,7 +504,7 @@ date: 2019-07-25 # Not mandatory, however needs to be in date format t
|
|
|
475
504
|
|
|
476
505
|
#### Portfolio in gem
|
|
477
506
|
|
|
478
|
-
Make sure your `_config.yml` contains the following if you are using the theme as a gem:
|
|
507
|
+
Make sure your [`_config.yml`](_config.yml) contains the following if you are using the theme as a gem:
|
|
479
508
|
|
|
480
509
|
```yml
|
|
481
510
|
# PORTFOLIO
|
|
@@ -508,7 +537,7 @@ gallery: "assets/img/pexels"
|
|
|
508
537
|
### Feature: Search 🔍
|
|
509
538
|
|
|
510
539
|
The search feature is based on [Simple-Jekyll-search](https://github.com/sylhare/Simple-Jekyll-Search)
|
|
511
|
-
there is a `search.liquid` file that will create a list of all the site posts, pages and portfolios.
|
|
540
|
+
there is a [`search.liquid`](_layouts/search.liquid) file that will create a list of all the site posts, pages and portfolios.
|
|
512
541
|
Then there's a script displaying the formatted results in the _search page_.
|
|
513
542
|
|
|
514
543
|
To exclude contents from the search add the `exclude: true` option in the markdown header.
|
|
@@ -616,7 +645,7 @@ Add this line to your Jekyll site's Gemfile (or create one):
|
|
|
616
645
|
gem "type-on-strap"
|
|
617
646
|
```
|
|
618
647
|
|
|
619
|
-
Add this line to your Jekyll site's `_config.yml` file:
|
|
648
|
+
Add this line to your Jekyll site's [`_config.yml`](_config.yml) file:
|
|
620
649
|
|
|
621
650
|
```yml
|
|
622
651
|
theme: type-on-strap
|
|
@@ -629,14 +658,14 @@ bundle install
|
|
|
629
658
|
```
|
|
630
659
|
|
|
631
660
|
Then you can start adding content like:
|
|
632
|
-
- Add a `index.html` file
|
|
661
|
+
- Add a [`index.html`](index.html) file
|
|
633
662
|
- Add the feature page you want. (ex: as it is already in `pages`)
|
|
634
663
|
- Add posts in `_posts` and `_portfolio` to be displayed
|
|
635
664
|
|
|
636
665
|
### Remote Theme
|
|
637
666
|
|
|
638
667
|
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).
|
|
639
|
-
For that remove all `theme:` attributes from `_config.yml` and add instead:
|
|
668
|
+
For that remove all `theme:` attributes from [`_config.yml`](_config.yml) and add instead:
|
|
640
669
|
|
|
641
670
|
```yml
|
|
642
671
|
remote_theme: sylhare/Type-on-Strap
|
data/_data/language.yml
CHANGED
|
@@ -18,6 +18,7 @@ str_months: [January, February, March, April, May, June, July, August, September
|
|
|
18
18
|
str_dark: 'Dark'
|
|
19
19
|
str_light: 'Light'
|
|
20
20
|
str_date_format: '%B %-d, %Y'
|
|
21
|
+
str_last_modified: 'Last modified on'
|
|
21
22
|
|
|
22
23
|
# Localization settings
|
|
23
24
|
cusdis_lang: # zh-cn, es, tr, pt-BR
|
|
@@ -39,18 +39,29 @@
|
|
|
39
39
|
{% include blog/post_nav.liquid %}
|
|
40
40
|
{% endif %}
|
|
41
41
|
|
|
42
|
+
<!-- Giscus -->
|
|
43
|
+
{% if site.data.comments.giscus.repo and site.data.comments.giscus.repo-id and site.data.comments.giscus.category-id and site.data.comments.giscus.mapping %}
|
|
44
|
+
{% include social/giscus.liquid %}
|
|
45
|
+
{% endif %}
|
|
46
|
+
|
|
42
47
|
<!--Utterances-->
|
|
43
|
-
{% if site.comments.utterances.repo and site.comments.utterances.issue-term %}
|
|
48
|
+
{% if site.data.comments.utterances.repo and site.data.comments.utterances.issue-term %}
|
|
49
|
+
{% include social/utterances.liquid %}
|
|
50
|
+
{% elsif site.comments.utterances.repo and site.comments.utterances.issue-term %}
|
|
44
51
|
{% include social/utterances.liquid %}
|
|
45
52
|
{% endif %}
|
|
46
53
|
|
|
47
54
|
<!-- Cusdis -->
|
|
48
|
-
{% if site.comments.
|
|
55
|
+
{% if site.data.comments.cusdis.app_id %}
|
|
56
|
+
{% include social/cusdis.liquid %}
|
|
57
|
+
{% elsif site.comments.cusdis_app_id or site.cusdis_app_id %}
|
|
49
58
|
{% include social/cusdis.liquid %}
|
|
50
59
|
{% endif %}
|
|
51
60
|
|
|
52
61
|
<!-- Disqus -->
|
|
53
|
-
{% if site.comments.
|
|
62
|
+
{% if site.data.comments.disqus.shortname %}
|
|
63
|
+
{% include social/disqus.liquid %}
|
|
64
|
+
{% elsif site.comments.disqus_shortname or site.theme_settings.disqus_shortname or site.disqus_shortname %}
|
|
54
65
|
{% include social/disqus.liquid %}
|
|
55
66
|
{% endif %}
|
|
56
67
|
{% endcapture %}
|
|
@@ -2,14 +2,25 @@
|
|
|
2
2
|
{% assign date = include.date | default: "today" | date: site.data.language.str_date_format | default: '%B %-d, %Y' %}
|
|
3
3
|
|
|
4
4
|
<div class="post-info">
|
|
5
|
-
|
|
6
|
-
{% if author
|
|
7
|
-
<
|
|
5
|
+
<div class="post-meta">
|
|
6
|
+
{% if author %}
|
|
7
|
+
<div class="author-info">
|
|
8
|
+
{%- if author.url -%}<a href="{{ author.url | relative_url }}" target="_blank" rel="noopener">{%- endif -%}
|
|
9
|
+
{% if author.avatar %}
|
|
10
|
+
<img alt="Author's avatar" src="{{ author.avatar | relative_url }}" loading="lazy">
|
|
11
|
+
{% endif %}
|
|
12
|
+
<p class="meta">
|
|
13
|
+
{% if author.name %}{{ author.name }}{% endif %}
|
|
14
|
+
</p>
|
|
15
|
+
{%- if author.url -%}</a>{%- endif -%}
|
|
16
|
+
</div>
|
|
17
|
+
<span class="meta-separator">-</span>
|
|
8
18
|
{% endif %}
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
19
|
+
{% assign date_month = date | date: "%m" | minus: 1 %}
|
|
20
|
+
<p class="meta">{{ site.data.language.str_months[date_month] | default: date | date: "%B" }} {{ date | date: "%d, %Y" }}</p>
|
|
21
|
+
</div>
|
|
22
|
+
{% if include.last_modified %}
|
|
23
|
+
{% assign last_modified_month = include.last_modified | date: "%m" | minus: 1 %}
|
|
24
|
+
<p class="last-modified">{{ site.data.language.str_last_modified | default: "Last modified on" }} {{ site.data.language.str_months[last_modified_month] | default: include.last_modified | date: "%B" }} {{ include.last_modified | date: "%d, %Y" }}</p>
|
|
25
|
+
{% endif %}
|
|
15
26
|
</div>
|
|
@@ -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.
|
|
38
|
+
<!-- KaTeX 0.16.25 -->
|
|
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 11.
|
|
44
|
+
<!-- Mermaid 11.12.0 -->
|
|
45
45
|
{% if site.mermaid %}
|
|
46
46
|
<script defer src="{{ '/assets/js/vendor/mermaid.min.js' | relative_url }}"></script>
|
|
47
47
|
{% endif %}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
<div class="comments" id="cusdis_thread"
|
|
2
2
|
data-host="https://cusdis.com"
|
|
3
|
-
data-app-id="{% if site.comments.cusdis_app_id %}{{ site.comments.cusdis_app_id }}{% else %}{{ site.cusdis_app_id }}{% endif %}"
|
|
3
|
+
data-app-id="{% if site.data.comments.cusdis.app_id %}{{ site.data.comments.cusdis.app_id }}{% elsif site.comments.cusdis_app_id %}{{ site.comments.cusdis_app_id }}{% else %}{{ site.cusdis_app_id }}{% endif %}"
|
|
4
4
|
data-page-id="{{ page.relative_path }}"
|
|
5
5
|
data-page-url="{{ page.url | absolute_url }}"
|
|
6
6
|
data-page-title="{{ page.title }}"
|
|
7
7
|
data-theme="{{ site.color_theme }}"
|
|
8
8
|
></div>
|
|
9
9
|
|
|
10
|
-
{% if site.data.language.cusdis_lang %}
|
|
11
|
-
<script defer src="https://cusdis.com/js/widget/lang/{{ site.data.language.cusdis_lang }}.js"></script>
|
|
10
|
+
{% if site.data.comments.cusdis.lang or site.data.language.cusdis_lang %}
|
|
11
|
+
<script defer src="https://cusdis.com/js/widget/lang/{% if site.data.comments.cusdis.lang %}{{ site.data.comments.cusdis.lang }}{% else %}{{ site.data.language.cusdis_lang }}{% endif %}.js"></script>
|
|
12
12
|
{% endif %}
|
|
13
13
|
<script defer src="https://cusdis.com/js/cusdis.es.js"></script>
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
<div class="comments">
|
|
2
2
|
<div id="disqus_thread"></div>
|
|
3
3
|
<script type="text/javascript">
|
|
4
|
-
var disqus_shortname = '{{ site.comments.disqus_shortname }}' || '{{ site.disqus_shortname }}';
|
|
4
|
+
var disqus_shortname = '{{ site.data.comments.disqus.shortname }}' || '{{ site.comments.disqus_shortname }}' || '{{ site.disqus_shortname }}';
|
|
5
5
|
(function() {
|
|
6
6
|
var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
|
|
7
7
|
dsq.src = '//' + disqus_shortname + '.disqus.com/embed.js';
|
|
8
8
|
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
|
|
9
9
|
})();
|
|
10
10
|
</script>
|
|
11
|
-
<noscript>{{ site.data.language.str_javascript_required_disqus | default: Please enable JavaScript to view comments." }}</noscript>
|
|
11
|
+
<noscript>{{ site.data.language.str_javascript_required_disqus | default: "Please enable JavaScript to view comments." }}</noscript>
|
|
12
12
|
</div>
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
<script src="https://giscus.app/client.js"
|
|
2
|
+
data-repo="{{ site.data.comments.giscus.repo }}"
|
|
3
|
+
data-repo-id="{{ site.data.comments.giscus.repo-id }}"
|
|
4
|
+
{% if site.data.comments.giscus.category %}data-category="{{ site.data.comments.giscus.category }}"{% endif %}
|
|
5
|
+
data-category-id="{{ site.data.comments.giscus.category-id }}"
|
|
6
|
+
data-mapping="{{ site.data.comments.giscus.mapping }}"
|
|
7
|
+
{% if site.data.comments.giscus.term %}data-term="{{ site.data.comments.giscus.term }}"{% endif %}
|
|
8
|
+
data-strict="{% if site.data.comments.giscus.strict %}{{ site.data.comments.giscus.strict }}{% else %}0{% endif %}"
|
|
9
|
+
data-reactions-enabled="{% if site.data.comments.giscus.reactions-enabled %}{{ site.data.comments.giscus.reactions-enabled }}{% else %}1{% endif %}"
|
|
10
|
+
data-emit-metadata="{% if site.data.comments.giscus.emit-metadata %}{{ site.data.comments.giscus.emit-metadata }}{% else %}0{% endif %}"
|
|
11
|
+
data-input-position="{% if site.data.comments.giscus.input-position %}{{ site.data.comments.giscus.input-position }}{% else %}bottom{% endif %}"
|
|
12
|
+
data-theme="{% if site.data.comments.giscus.theme %}{{ site.data.comments.giscus.theme }}{% elsif site.color_theme == 'dark' %}dark{% else %}light{% endif %}"
|
|
13
|
+
data-lang="{% if site.data.comments.giscus.lang %}{{ site.data.comments.giscus.lang }}{% else %}en{% endif %}"
|
|
14
|
+
{% if site.data.comments.giscus.loading %}data-loading="{{ site.data.comments.giscus.loading }}"{% endif %}
|
|
15
|
+
crossorigin="anonymous"
|
|
16
|
+
async>
|
|
17
|
+
</script>
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
<script src="https://utteranc.es/client.js"
|
|
2
|
-
repo='{{ site.comments.utterances.repo }}'
|
|
3
|
-
issue-term="{{ site.comments.utterances.issue-term}}"
|
|
4
|
-
theme="{% if site.comments.utterances.theme %}{{ site.comments.utterances.theme }}{% elsif site.color_theme == 'dark' %}github-dark{% else %}github-light{% endif %}"
|
|
5
|
-
{% if site.comments.utterances.label %}label="{{ site.comments.utterances.label }}"{% endif %}
|
|
2
|
+
repo='{% if site.data.comments.utterances.repo %}{{ site.data.comments.utterances.repo }}{% else %}{{ site.comments.utterances.repo }}{% endif %}'
|
|
3
|
+
issue-term="{% if site.data.comments.utterances.issue-term %}{{ site.data.comments.utterances.issue-term }}{% else %}{{ site.comments.utterances.issue-term }}{% endif %}"
|
|
4
|
+
theme="{% if site.data.comments.utterances.theme %}{{ site.data.comments.utterances.theme }}{% elsif site.comments.utterances.theme %}{{ site.comments.utterances.theme }}{% elsif site.color_theme == 'dark' %}github-dark{% else %}github-light{% endif %}"
|
|
5
|
+
{% if site.data.comments.utterances.label or site.comments.utterances.label %}label="{% if site.data.comments.utterances.label %}{{ site.data.comments.utterances.label }}{% else %}{{ site.comments.utterances.label }}{% endif %}"{% endif %}
|
|
6
6
|
crossorigin="anonymous"
|
|
7
7
|
async>
|
|
8
8
|
</script>
|
data/_layouts/default.html
CHANGED
data/_layouts/post.liquid
CHANGED
|
@@ -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.liquid author=page.author date=page.date %}
|
|
11
|
+
{% include blog/post_info.liquid author=page.author date=page.date last_modified=page.last_modified %}
|
|
12
12
|
{% endif %}
|
|
13
13
|
</div>
|
|
14
14
|
</header>
|
data/_sass/external/_katex.scss
CHANGED