type-on-strap 2.4.7 → 2.4.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +37 -28
- data/_data/language.yml +4 -1
- data/_includes/blog/post_footer.liquid +57 -0
- data/_includes/blog/post_info.liquid +1 -1
- data/_includes/default/footer.liquid +12 -6
- data/_includes/default/head.liquid +13 -16
- data/_includes/default/navbar.liquid +9 -7
- data/_includes/default/search_input.liquid +51 -0
- data/_layouts/archive.liquid +33 -0
- data/_layouts/categories.liquid +1 -1
- data/_layouts/default.html +7 -4
- data/_layouts/home.liquid +2 -4
- data/_layouts/page.liquid +24 -29
- data/_layouts/post.liquid +24 -74
- data/_sass/base/_global.scss +1 -1
- data/_sass/external/_font-awesome.scss +8 -16
- data/_sass/external/_katex.scss +5 -1146
- data/_sass/external/font-awesome/_animated.scss +142 -9
- data/_sass/external/font-awesome/_bordered-pulled.scss +13 -13
- data/_sass/external/font-awesome/_core.scss +28 -6
- data/_sass/external/font-awesome/_fixed-width.scss +2 -1
- data/_sass/external/font-awesome/_functions.scss +57 -0
- data/_sass/external/font-awesome/_icons.scss +7 -1459
- data/_sass/external/font-awesome/_list.scss +4 -4
- data/_sass/external/font-awesome/_mixins.scss +53 -34
- data/_sass/external/font-awesome/_rotated-flipped.scss +25 -18
- data/_sass/external/font-awesome/_screen-reader.scss +12 -3
- data/_sass/external/font-awesome/_shims.scss +640 -664
- data/_sass/external/font-awesome/_sizing.scss +16 -0
- data/_sass/external/font-awesome/_stacked.scss +5 -4
- data/_sass/external/font-awesome/_variables.scss +4923 -1409
- data/_sass/external/font-awesome/brands.scss +30 -0
- data/_sass/external/font-awesome/fontawesome.scss +21 -0
- data/_sass/external/font-awesome/regular.scss +26 -0
- data/_sass/external/font-awesome/solid.scss +26 -0
- data/_sass/external/font-awesome/v4-shims.scss +6 -1
- data/_sass/external/katex/katex.scss +1414 -0
- data/_sass/includes/_navbar.scss +6 -4
- data/_sass/includes/_share_buttons.scss +1 -1
- data/_sass/layouts/_categories.scss +5 -0
- data/_sass/layouts/_posts.scss +1 -1
- data/assets/data/search.liquid +6 -27
- data/assets/fonts/font-awesome/fa-brands-400.ttf +0 -0
- data/assets/fonts/font-awesome/fa-brands-400.woff2 +0 -0
- data/assets/fonts/font-awesome/fa-regular-400.ttf +0 -0
- data/assets/fonts/font-awesome/fa-regular-400.woff2 +0 -0
- data/assets/fonts/font-awesome/fa-solid-900.ttf +0 -0
- data/assets/fonts/font-awesome/fa-solid-900.woff2 +0 -0
- data/assets/fonts/font-awesome/fa-v4compatibility.ttf +0 -0
- data/assets/fonts/font-awesome/fa-v4compatibility.woff2 +0 -0
- data/assets/js/main.min.js +3 -3
- data/assets/js/partials/cookie_consent_init.js +5 -0
- data/assets/js/partials/dark-mode.js +22 -18
- data/assets/js/vendor/katex.auto-render.min.js +1 -0
- data/assets/js/vendor/katex.min.js +1 -1
- data/assets/js/vendor/mermaid.min.js +962 -791
- metadata +19 -17
- data/_sass/external/font-awesome/_brands.scss +0 -23
- data/_sass/external/font-awesome/_larger.scss +0 -23
- data/_sass/external/font-awesome/_regular.scss +0 -23
- data/_sass/external/font-awesome/_solid.scss +0 -24
- data/assets/fonts/font-awesome/fa-brands-400.eot +0 -0
- data/assets/fonts/font-awesome/fa-brands-400.svg +0 -3717
- data/assets/fonts/font-awesome/fa-brands-400.woff +0 -0
- data/assets/fonts/font-awesome/fa-regular-400.eot +0 -0
- data/assets/fonts/font-awesome/fa-regular-400.svg +0 -801
- data/assets/fonts/font-awesome/fa-regular-400.woff +0 -0
- data/assets/fonts/font-awesome/fa-solid-900.eot +0 -0
- data/assets/fonts/font-awesome/fa-solid-900.svg +0 -5028
- data/assets/fonts/font-awesome/fa-solid-900.woff +0 -0
- data/assets/js/vendor/auto-render.min.js +0 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 15dad5d590b48fae536490341e7833281b3771118b682275f86fd96128e0db5e
|
4
|
+
data.tar.gz: 3f6937d0f9c733be27b4e966ac9d6aba2222c6e0abcac690d3c93a3d171437d7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8f55e245d44102ba315df41b0353451afabc9458e00fb62eed47fce19350699626a27ba1db562b6f1dcf28aded39c7d8aff9d5a9a765918bd58061552cd08315
|
7
|
+
data.tar.gz: b1298b3bd7bdb9e8f3b7ec97c4f4ae24cd5c5d34b035693d1d08567a2be85e3cecc36a4563eb1ae14a59769fb2842835fdec2cf521d5c24631a0ca9c5adc6b57
|
data/README.md
CHANGED
@@ -167,6 +167,8 @@ You can find all the properties in `_data/language.yml`.
|
|
167
167
|
|
168
168
|
By default, it is in English, but you can easily 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.
|
171
|
+
|
170
172
|
### Google Analytics
|
171
173
|
|
172
174
|
To enable Google Analytics (GA4), add your [Measurement ID](https://support.google.com/analytics/answer/12270356?hl=en&sjid=1593376271608310401-NA)
|
@@ -258,15 +260,13 @@ mermaid: default # Enable mermaid-js for diagrams, use theme: base, forest, dark
|
|
258
260
|
```
|
259
261
|
|
260
262
|
Find all the help you need on the official [mermaid documentation](https://mermaid-js.github.io/mermaid/).
|
261
|
-
|
262
|
-
With the `class="mermaid"` inside the `<div>`:
|
263
|
+
Use `mermaid` as color highlighter language to render the diagram or with the `class="mermaid"` inside the `<div>`:
|
263
264
|
|
264
|
-
```
|
265
|
-
|
265
|
+
```markdown
|
266
|
+
```mermaid
|
266
267
|
sequenceDiagram
|
267
268
|
Alice->>John: Hello John, how are you?
|
268
269
|
John-->>Alice: Great!
|
269
|
-
</div>
|
270
270
|
```
|
271
271
|
|
272
272
|
### Social icons
|
@@ -286,8 +286,8 @@ Once the user clicks on "Approve" the cookies will be created for Google Analyti
|
|
286
286
|
|
287
287
|
#### Share in article
|
288
288
|
|
289
|
-
The share icons are the one at the bottom of the blog page if enabled
|
290
|
-
to share the article
|
289
|
+
The share icons are the one at the bottom of the blog page if enabled.
|
290
|
+
They will on click redirect you to the logo's platform to share the article.
|
291
291
|
|
292
292
|
#### Footer
|
293
293
|
|
@@ -307,34 +307,39 @@ Please refer to the [Jekyll docs for writing posts](https://jekyllrb.com/docs/po
|
|
307
307
|
|
308
308
|
#### Layout: Post
|
309
309
|
|
310
|
-
These are the basic features you can use with the `post` layout
|
310
|
+
These are the basic features you can use with the `post` layout, in the comment the `Opt` means that
|
311
|
+
it is optional.
|
311
312
|
|
312
313
|
```yml
|
313
314
|
|
314
315
|
---
|
315
316
|
layout: post
|
316
317
|
title: Hello World # Title of the page
|
317
|
-
hide_title: true # Hide the title when displaying the post, but shown in lists of posts
|
318
|
-
feature-img: "assets/img/sample.png" # Add a feature-image to the post
|
319
|
-
thumbnail: "assets/img/thumbnails/sample-th.png" # Add a thumbnail image on blog view
|
320
|
-
color: rgb(80,140,22) # Add the specified
|
321
|
-
|
322
|
-
tags: [sample, markdown, html]
|
318
|
+
hide_title: true # [Opt] Hide the title when displaying the post, but shown in lists of posts
|
319
|
+
feature-img: "assets/img/sample.png" # [Opt] Add a feature-image to the post
|
320
|
+
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
|
322
|
+
position: 1 # [Opt] Set position on the menu navigation bar
|
323
|
+
tags: [sample, markdown, html] # [Opt] Add tags to the page
|
323
324
|
---
|
324
325
|
```
|
325
326
|
|
326
327
|
With `thumbnail`, you can add a smaller image than the `feature-img`.
|
327
|
-
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.
|
328
|
+
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.
|
328
329
|
|
329
|
-
|
330
|
-
|
330
|
+
If you don't use a feature image, but `color`, the transparent background is set comes from `lineart.png`.
|
331
|
+
You can edit it in the config file (`_config.yml > color_image`). If you want another one, put it in `/assets/img` as well.
|
331
332
|
|
332
|
-
|
333
|
+
For position, if not set on all pages, it will be by alphabetical order without `position` then by `position` order.
|
334
|
+
If two pages have the same position number, the order is decided by alphabetical order on the page title.
|
335
|
+
|
336
|
+
There's also `bootstrap: true` which is not mandatory and only useful if you want to add HTML content in your page that
|
337
|
+
requires [bootstrap](http://getbootstrap.com/).
|
333
338
|
It will respect the page and theme layout, mind the padding on the sides.
|
334
339
|
|
335
340
|
#### Post excerpt
|
336
341
|
|
337
|
-
The [excerpt](https://jekyllrb.com/docs/posts/#post-excerpts) are the first lines of an article that is
|
342
|
+
The [excerpt](https://jekyllrb.com/docs/posts/#post-excerpts) are the first lines of an article that is displayed on the blog page.
|
338
343
|
The length of the excerpt has a default of around `250` characters or can be manually set in the post using:
|
339
344
|
|
340
345
|
in `conflig.yml`:
|
@@ -408,7 +413,7 @@ If your posts are not displaying ensure that you have added the line `paginate:
|
|
408
413
|
|
409
414
|
### Layout: Page 📄
|
410
415
|
|
411
|
-
The page layout
|
416
|
+
The page layout has a bit more features explained here.
|
412
417
|
|
413
418
|
```yml
|
414
419
|
|
@@ -424,7 +429,7 @@ tags: [sample, markdown, html]
|
|
424
429
|
---
|
425
430
|
```
|
426
431
|
|
427
|
-
The hide only hides your page from the navigation bar, it is however still generated and can be
|
432
|
+
The hide only hides your page from the navigation bar, it is, however, still generated and can be accessed through its link.
|
428
433
|
|
429
434
|
### Feature: Portfolio 🗂
|
430
435
|
|
@@ -444,9 +449,11 @@ title : Portfolio
|
|
444
449
|
|
445
450
|
#### Portfolio posts
|
446
451
|
|
447
|
-
You can format the portfolio posts in the `_portfolio` folder using the `post layout`.
|
452
|
+
You can format the portfolio posts in the `_portfolio` folder using the `post layout`.
|
453
|
+
Here is a little explanation on some of the possible features you can use.
|
448
454
|
|
449
|
-
If you decide to use a date, please be sure to use one that can be parsed such as `yyyy-mm-dd`.
|
455
|
+
If you decide to use a date, please be sure to use one that can be parsed such as `yyyy-mm-dd`.
|
456
|
+
You can see more format examples in the demo posts that are available for the theme:
|
450
457
|
|
451
458
|
```yml
|
452
459
|
|
@@ -475,7 +482,7 @@ This creates the collection for Jekyll, so it can find and display your portfoli
|
|
475
482
|
|
476
483
|
### Feature: Gallery 🖼
|
477
484
|
|
478
|
-
You can create a gallery using [Masonry JS](https://masonry.desandro.com/) which will placing the pictures
|
485
|
+
You can create a gallery using [Masonry JS](https://masonry.desandro.com/) which will placing the pictures at the optimal position
|
479
486
|
based on available vertical space.
|
480
487
|
You need to specify the `gallery_path` which will be used to find the pictures to render.
|
481
488
|
It will take all the pictures under that directory. Then use the `include` to add it in your page.
|
@@ -495,10 +502,12 @@ gallery: "assets/img/pexels"
|
|
495
502
|
|
496
503
|
The search feature is based on [Simple-Jekyll-search](https://github.com/christian-fei/Simple-Jekyll-Search)
|
497
504
|
there is a `search.liquid` file that will create a list of all the site posts, pages and portfolios.
|
505
|
+
Then there's a script displaying the formatted results in the _search page_.
|
498
506
|
|
499
|
-
|
500
|
-
|
501
|
-
|
507
|
+
To exclude contents from the search add the `exclude: true` option in the markdown header.
|
508
|
+
By default, all posts, pages, and collections are available in the search.
|
509
|
+
Hide the search page from the navigation bar with the `hide: true` option.
|
510
|
+
You can remove the icon by removing `icon`:
|
502
511
|
|
503
512
|
```yml
|
504
513
|
|
@@ -527,7 +536,7 @@ tags: [sample, markdown, html]
|
|
527
536
|
|
528
537
|
> Tags are case-sensitive `Tag_nAme` ≠ `tag_name`
|
529
538
|
|
530
|
-
All the tags will be listed the tags page with a link toward the pages or posts.
|
539
|
+
All the tags will be listed on the "tags" page with a link toward the pages or posts.
|
531
540
|
The Tag page can be hidden with the `hide` option. You can remove the icon by removing `icon` (like for the search page).
|
532
541
|
|
533
542
|
## Advanced
|
data/_data/language.yml
CHANGED
@@ -15,6 +15,9 @@ str_no_result_found: "No result found"
|
|
15
15
|
str_cookie_approve: "Approve"
|
16
16
|
str_cookie_disclaimer: "We would like to use third party cookies and scripts to improve the functionality of this website."
|
17
17
|
str_months: [January, February, March, April, May, June, July, August, September, October, November, December]
|
18
|
+
str_dark: 'Dark'
|
19
|
+
str_light: 'Light'
|
20
|
+
str_date_format: '%B %-d, %Y'
|
18
21
|
|
19
|
-
# Localization settings
|
22
|
+
# Localization settings
|
20
23
|
cusdis_lang: # zh-cn, es, tr, pt-BR
|
@@ -0,0 +1,57 @@
|
|
1
|
+
{% assign color = include.color %}
|
2
|
+
{% assign img = include.img %}
|
3
|
+
{% capture _post_footer %}
|
4
|
+
<!-- To change color of links in the page -->
|
5
|
+
<style>
|
6
|
+
header#main {
|
7
|
+
background-size: cover;
|
8
|
+
background-repeat: no-repeat;
|
9
|
+
background-position: center;
|
10
|
+
}
|
11
|
+
|
12
|
+
{% if color != nil %}
|
13
|
+
.post-content a { color: {{ color }} !important; }
|
14
|
+
.share-buttons a { color: {{ color }} !important; }
|
15
|
+
.tag-list a:not(:hover) { color: {{ color }} !important; }
|
16
|
+
div#post-nav a { color: {{ color }} !important; }
|
17
|
+
footer a { color: {{ color }} !important; }
|
18
|
+
.site-header nav a:hover { color: {{ color }} !important; }
|
19
|
+
a.button:hover {
|
20
|
+
background: {{ color }} !important;
|
21
|
+
border: 1px solid {{ color }} !important;
|
22
|
+
color: white;
|
23
|
+
text-decoration: none;
|
24
|
+
filter: none;
|
25
|
+
}
|
26
|
+
header#main {
|
27
|
+
background-color: {{ color }} !important;
|
28
|
+
background-image: url('{{ site.color_image | relative_url }}');
|
29
|
+
}
|
30
|
+
{% endif %}
|
31
|
+
|
32
|
+
{% if img != nil %}
|
33
|
+
header#main { background-image: url('{{ img | relative_url }}'); }
|
34
|
+
{% endif %}
|
35
|
+
</style>
|
36
|
+
|
37
|
+
<!-- Post navigation -->
|
38
|
+
{% if site.post_navigation or site.theme_settings.post_navigation %}
|
39
|
+
{% include blog/post_nav.liquid %}
|
40
|
+
{% endif %}
|
41
|
+
|
42
|
+
<!--Utterances-->
|
43
|
+
{% if site.comments.utterances.repo and site.comments.utterances.issue-term %}
|
44
|
+
{% include social/utterances.liquid %}
|
45
|
+
{% endif %}
|
46
|
+
|
47
|
+
<!-- Cusdis -->
|
48
|
+
{% if site.comments.cusdis_app_id or site.cusdis_app_id %}
|
49
|
+
{% include social/cusdis.liquid %}
|
50
|
+
{% endif %}
|
51
|
+
|
52
|
+
<!-- Disqus -->
|
53
|
+
{% if site.comments.disqus_shortname or site.theme_settings.disqus_shortname or site.disqus_shortname %}
|
54
|
+
{% include social/disqus.liquid %}
|
55
|
+
{% endif %}
|
56
|
+
{% endcapture %}
|
57
|
+
{{ _post_footer | split: " " | join: " " }}
|
@@ -1,5 +1,5 @@
|
|
1
1
|
{% assign author = site.data.authors[include.author] %}
|
2
|
-
{% assign date = include.date | default: "today" | date:
|
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
5
|
{%- if author.url -%}<a href="{{ author.url | relative_url }}" target="_blank" rel="noopener">{%- endif -%}
|
@@ -1,12 +1,18 @@
|
|
1
1
|
<footer class="site-footer">
|
2
2
|
<p class="text">
|
3
3
|
{{ site.footer_text | default: "Powered by <a href='https://jekyllrb.com/'>Jekyll</a> with <a href='https://github.com/sylhare/Type-on-Strap'>Type on Strap</a>" }}</p>
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
4
|
+
<div class="footer-icons">
|
5
|
+
<ul>
|
6
|
+
<!-- Social icons from Font Awesome, if enabled -->
|
7
|
+
{% include social/icons.liquid %}
|
8
|
+
</ul>
|
9
|
+
</div>
|
10
|
+
{% if site.mermaid %}
|
11
|
+
<script type="module">
|
12
|
+
mermaid.initialize({ startOnLoad: false, theme: "default" });
|
13
|
+
mermaid.run({ nodes: [...document.querySelectorAll('.language-mermaid'), ...document.querySelectorAll('.mermaid')] });
|
14
|
+
</script>
|
15
|
+
{% endif %}
|
10
16
|
</footer>
|
11
17
|
|
12
18
|
|
@@ -3,17 +3,17 @@
|
|
3
3
|
<meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=0.5, maximum-scale=5">
|
4
4
|
|
5
5
|
<!-- Theme Mode-->
|
6
|
-
{% if site.color_theme == 'auto' %}
|
7
6
|
<script>
|
8
|
-
const
|
9
|
-
|
7
|
+
const darkBtn = "{{ site.data.language.str_dark | default: "Dark" }}";
|
8
|
+
const lightBtn = "{{ site.data.language.str_light | default: "Light" }}";
|
9
|
+
const isAutoTheme = {% if site.color_theme == 'auto' %}true{% else %}false{% endif %};
|
10
|
+
const preferredTheme = window.matchMedia('(prefers-color-scheme: dark)').matches ? 'dark' : 'light';
|
11
|
+
if (isAutoTheme) {
|
12
|
+
document.documentElement.setAttribute('data-theme', sessionStorage.getItem('theme') ?? preferredTheme);
|
13
|
+
} else {
|
14
|
+
document.documentElement.setAttribute('data-theme', "{{ site.color_theme | default: 'light' }}");
|
15
|
+
}
|
10
16
|
</script>
|
11
|
-
{% else %}
|
12
|
-
<script>
|
13
|
-
const isAutoTheme = false;
|
14
|
-
document.documentElement.setAttribute('data-theme', "{{ site.color_theme | default: 'light' }}")
|
15
|
-
</script>
|
16
|
-
{% endif %}
|
17
17
|
|
18
18
|
<!-- Main JS (navbar.js, katex_init.js and masonry_init.js)-->
|
19
19
|
<script defer src="{{ '/assets/js/main.min.js' | relative_url }}"></script>
|
@@ -35,18 +35,15 @@
|
|
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.
|
38
|
+
<!-- KaTeX 0.16.9 -->
|
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
|
-
<script defer src="{{ '/assets/js/vendor/auto-render.min.js' | relative_url }}" onload="renderMathInElement(document.body);"></script>
|
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
|
44
|
+
<!-- Mermaid 10.8.0 -->
|
45
45
|
{% if site.mermaid %}
|
46
|
-
<script defer src="{{ '/assets/js/vendor/mermaid.min.js' | relative_url }}"
|
47
|
-
startOnLoad:true,
|
48
|
-
theme: '{{ site.mermaid }}',
|
49
|
-
});"></script>
|
46
|
+
<script defer src="{{ '/assets/js/vendor/mermaid.min.js' | relative_url }}"></script>
|
50
47
|
{% endif %}
|
51
48
|
|
52
49
|
<!-- Simple Jekyll Search 1.10.0 -->
|
@@ -21,18 +21,20 @@
|
|
21
21
|
<!-- Menu -->
|
22
22
|
<ul class="hide">
|
23
23
|
{% assign name_page = "" %}
|
24
|
-
|
25
|
-
{%
|
26
|
-
|
24
|
+
{% assign emptyArray = '' | split: '' %}
|
25
|
+
{% assign menus = site.data.menu | default: emptyArray %}
|
26
|
+
{% assign pages = site.pages | concat: menus | sort: 'position' %}
|
27
|
+
{% for page in pages %}
|
28
|
+
{% unless page.title == null or page.hide or name_page contains page.title %}
|
27
29
|
<li class="separator"> | </li>
|
28
30
|
<li>
|
29
31
|
<a class="clear" aria-label="{{ page.title }}" title="{{ page.title }}" href="{{ page.url | relative_url }}">
|
30
|
-
{% if page.icon %} <i class="fas {{ page.icon }}" aria-hidden="true"></i>
|
31
|
-
{%
|
32
|
+
{% if page.icon %} <i class="navbar-icon fas {{ page.icon }}" aria-hidden="true"></i>{% endif %}
|
33
|
+
<span class="navbar-label {% if page.icon %}navbar-label-with-icon{% endif%}">{{ page.title }}</span>
|
32
34
|
</a>
|
33
35
|
</li>
|
34
|
-
|
35
|
-
|
36
|
+
{% endunless %}
|
37
|
+
{% assign name_page = page.title | append: name_page %}
|
36
38
|
{% endfor %}
|
37
39
|
|
38
40
|
{% if site.color_theme == 'auto' %}
|
@@ -0,0 +1,51 @@
|
|
1
|
+
{% assign dateFormat = site.data.language.str_date_format | default: '%B %-d, %Y' %}
|
2
|
+
[
|
3
|
+
{% for post in site.posts %}
|
4
|
+
{
|
5
|
+
{% unless post.excluded %}
|
6
|
+
"title" : "{{ post.title | strip_newlines | escape }}",
|
7
|
+
"category" : "{{ post.category }}",
|
8
|
+
"tags" : "{{ post.tags | join: ', ' | prepend: " " }}",
|
9
|
+
"url" : "{{ post.url | relative_url }}",
|
10
|
+
"date" : "{{ post.date | date: dateFormat }}",
|
11
|
+
"excerpt" : {{ post.content | strip_html | strip_newlines | strip | escape | truncate: '250' | escape | jsonify }},
|
12
|
+
"content" : {{ post.content | strip_html | strip_newlines | strip | escape | jsonify }}
|
13
|
+
{% endunless %}
|
14
|
+
}{% unless forloop.last %},{% endunless %}
|
15
|
+
{% endfor %}
|
16
|
+
{% if site.pages.size > 0 %},{% endif %}
|
17
|
+
{% for page in site.pages %}
|
18
|
+
{
|
19
|
+
{% unless page.excluded or page.title == nil %}
|
20
|
+
"title" : "{{ page.title | strip_newlines | escape }}",
|
21
|
+
"category" : "{{ page.category }}",
|
22
|
+
"tags" : "{{ page.tags | join: ', ' | prepend: " " }}",
|
23
|
+
"url" : "{{ page.url | relative_url }}",
|
24
|
+
"date" : "{{ page.date | date: dateFormat | default: "N/A" }}",
|
25
|
+
"excerpt" : {{ page.content | strip_html | strip_newlines | strip | escape | truncate: '250' | escape | jsonify }},
|
26
|
+
"content" : {{ page.content | strip_html | strip_newlines | strip | escape | jsonify }}
|
27
|
+
{% endunless %}
|
28
|
+
}{% unless forloop.last %},{% endunless %}
|
29
|
+
{% endfor %}
|
30
|
+
{% if site.collections.size > 1 %},{% endif %}
|
31
|
+
{% for collection in site.collections %}
|
32
|
+
{% unless collection.label == 'posts' or site[collection.label].size == 0 %}
|
33
|
+
{% for page in site[collection.label] %}
|
34
|
+
{
|
35
|
+
{% if page.excluded or page.title != nil %}
|
36
|
+
"title" : "{{ page.title | strip_newlines | escape }}",
|
37
|
+
"category" : "{{ page.category }}",
|
38
|
+
"tags" : "{{ page.tags | join: ', ' | prepend: " " }}",
|
39
|
+
"url" : "{{ page.url | relative_url }}",
|
40
|
+
"date" : "{{ page.date | date: dateFormat | default: "N/A" }}",
|
41
|
+
"excerpt" : {{ page.content | strip_html | strip_newlines | strip | escape | truncate: '250' | jsonify }},
|
42
|
+
"content" : {{ page.content | strip_html | strip_newlines | strip | escape | jsonify }}
|
43
|
+
{% endif %}
|
44
|
+
}{% unless forloop.last %},{% endunless %}
|
45
|
+
{% endfor %}
|
46
|
+
{% else %}
|
47
|
+
{}
|
48
|
+
{% endunless %}
|
49
|
+
{% unless forloop.last %},{% endunless %}
|
50
|
+
{% endfor %}
|
51
|
+
]
|
@@ -0,0 +1,33 @@
|
|
1
|
+
---
|
2
|
+
layout: page
|
3
|
+
---
|
4
|
+
|
5
|
+
<div class="home">
|
6
|
+
<div id="archive">
|
7
|
+
{% assign postsByYear = site.posts | group_by_exp:"post", "post.date | date: '%Y'" %}
|
8
|
+
<ul class="archive-clouds">
|
9
|
+
{% for year in postsByYear %}
|
10
|
+
<a href="#archive-{{ year.name | cgi_escape }}" class="archive-anchor">
|
11
|
+
<li>
|
12
|
+
{{ year.name | cgi_escape }} ({{year.items.size}})
|
13
|
+
</li>
|
14
|
+
</a>
|
15
|
+
{% endfor %}
|
16
|
+
</ul>
|
17
|
+
{% for year in postsByYear %}
|
18
|
+
<div class="archive-group">
|
19
|
+
<h4 id="archive-{{year.name}}" class="title">{{ year.name }} ({{year.items.size}})</h4>
|
20
|
+
<div class="items">
|
21
|
+
{% for post in year.items %}
|
22
|
+
<a href="{{ post.url | relative_url }}" class="archive-post-link">
|
23
|
+
<div class="item">
|
24
|
+
<p class="meta">{{ post.date | date: site.data.language.str_date_format | default: '%B %-d, %Y' }}</p>
|
25
|
+
<p class="title">{{ post.title }}</p>
|
26
|
+
</div>
|
27
|
+
</a>
|
28
|
+
{% endfor %}
|
29
|
+
</div>
|
30
|
+
</div>
|
31
|
+
{% endfor %}
|
32
|
+
</div>
|
33
|
+
</div>
|
data/_layouts/categories.liquid
CHANGED
@@ -25,7 +25,7 @@ layout: page
|
|
25
25
|
{% for post in site.categories[group] %}
|
26
26
|
<a href="{{ post.url | relative_url }}" class="category-post-link">
|
27
27
|
<div class="item">
|
28
|
-
<p class="meta">{{ post.date | date:
|
28
|
+
<p class="meta">{{ post.date | date: site.data.language.str_date_format | default: '%B %-d, %Y' }}</p>
|
29
29
|
<p class="title">{{ post.title }}</p>
|
30
30
|
</div>
|
31
31
|
</a>
|
data/_layouts/default.html
CHANGED
@@ -1,16 +1,19 @@
|
|
1
1
|
<!DOCTYPE html>
|
2
2
|
<!--
|
3
|
-
Type on Strap jekyll theme v2.4.
|
3
|
+
Type on Strap jekyll theme v2.4.9
|
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
|
-->
|
7
7
|
<html lang="en">
|
8
|
-
{% include default/head.liquid %}
|
8
|
+
{% capture _head %}{% include default/head.liquid %}{% endcapture %}
|
9
|
+
{{ _head | split: " " | join: " "}}
|
9
10
|
<body>
|
10
|
-
{% include default/navbar.liquid %}
|
11
|
+
{% capture _navbar %}{% include default/navbar.liquid %}{% endcapture %}
|
12
|
+
{{ _navbar | split: " " | join: " "}}
|
11
13
|
<div class="content">
|
12
14
|
{{ content }}
|
13
15
|
</div>
|
14
|
-
{% include default/footer.liquid %}
|
16
|
+
{% capture _footer %}{% include default/footer.liquid %}{% endcapture %}
|
17
|
+
{{ _footer | split: " " | join: " "}}
|
15
18
|
</body>
|
16
19
|
</html>
|
data/_layouts/home.liquid
CHANGED
@@ -1,7 +1,6 @@
|
|
1
1
|
---
|
2
2
|
layout: default
|
3
3
|
---
|
4
|
-
|
5
4
|
<div class="home">
|
6
5
|
<style scoped>
|
7
6
|
{% assign image = site.header_feature_image | relative_url | split: '.' %}
|
@@ -24,7 +23,6 @@ layout: default
|
|
24
23
|
<div id="main" class="call-out call-out_img">
|
25
24
|
<h1> {{ site.header_text | default: "Change <code>header_text</code> in <code>_config.yml</code>"}} </h1>
|
26
25
|
</div>
|
27
|
-
|
28
|
-
{
|
29
|
-
|
26
|
+
{% capture _blog %}{% include blog/blog.liquid %}{% endcapture %}
|
27
|
+
{{ _blog | split: " " | join: " "}}
|
30
28
|
</div>
|
data/_layouts/page.liquid
CHANGED
@@ -1,35 +1,30 @@
|
|
1
1
|
---
|
2
2
|
layout: default
|
3
3
|
---
|
4
|
-
|
5
4
|
<article {% if page.feature-img %}class="feature-image"{% endif %}>
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
5
|
+
<header id="main" style="background-image: url('{{ page.feature-img | relative_url }}')">
|
6
|
+
<div class="title-padder">
|
7
|
+
{% if page.hide_title %}
|
8
|
+
<div class="feature-image-padding"></div>
|
9
|
+
{% else %}
|
10
|
+
<h1 id="{{ page.title | default: "" | cgi_escape }}" class="title"> {{ page.title }}</h1>
|
11
|
+
{% if page.subtitle %}
|
12
|
+
<h2 class="subtitle">{{ page.subtitle }}</h2>
|
13
|
+
{% endif %}
|
14
|
+
{% endif %}
|
15
|
+
</div>
|
16
|
+
</header>
|
17
|
+
<section class="post-content">
|
18
|
+
{% if page.bootstrap %}
|
19
|
+
<div class="bootstrap-iso">
|
20
|
+
{% endif %}
|
21
|
+
{{ content }}
|
22
|
+
{% if page.bootstrap %}
|
23
|
+
</div>
|
15
24
|
{% endif %}
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
{% if page.bootstrap %}
|
22
|
-
<div class="bootstrap-iso">
|
23
|
-
{% endif %}
|
24
|
-
{{ content }}
|
25
|
-
{% if page.bootstrap %}
|
26
|
-
</div>
|
27
|
-
{% endif %}
|
28
|
-
</section>
|
29
|
-
|
30
|
-
|
31
|
-
<!-- Tag list for portfolio -->
|
32
|
-
{% capture tag_list %}{{ page.tags | join: "|"}}{% endcapture %}
|
33
|
-
{% include default/tags_list.liquid tags=tag_list %}
|
34
|
-
|
25
|
+
</section>
|
26
|
+
<!-- Tag list for portfolio -->
|
27
|
+
{% capture tag_list %}{{ page.tags | join: "|" }}{% endcapture %}
|
28
|
+
{% capture _tags %}{% include default/tags_list.liquid tags=tag_list %}{% endcapture %}
|
29
|
+
{{ _tags | split: " " | join: " " }}
|
35
30
|
</article>
|