type-on-strap 2.4.7 → 2.4.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +32 -23
- data/_data/language.yml +3 -1
- data/_includes/blog/post_footer.liquid +57 -0
- data/_includes/default/head.liquid +12 -12
- data/_includes/default/navbar.liquid +9 -7
- data/_includes/default/search_input.liquid +50 -0
- 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/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/_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 +830 -772
- metadata +14 -16
- 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: dba3ab6a8c633aac793ffc8297817c5e43c8d3178d60379b2fd93158a61e063f
|
4
|
+
data.tar.gz: 3a63ffd7c2a16ca9d784b14703c60405f68a4bdf19a2a8589b58a60864015954
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 159db5d9f28dcc7ce897b4a7cf4e36116f7a6d61e772096f7fd86fc5296b25757991c076106c2076cae10bf0684e753ac4508a420d23c0cd5c980f9c6b5c63ad
|
7
|
+
data.tar.gz: 077ebef49c8f68ed554d23075ff34ab66002fe6aa9fc28982805dde020feab142e922b6fbc05018395c4c49418b27099c968f92b85fd8fc44c3113f395b546f7
|
data/README.md
CHANGED
@@ -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.
|
329
|
+
|
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.
|
328
332
|
|
329
|
-
|
330
|
-
|
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.
|
331
335
|
|
332
|
-
|
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,8 @@ 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'
|
18
20
|
|
19
|
-
# Localization settings
|
21
|
+
# Localization settings
|
20
22
|
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: " " }}
|
@@ -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,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.
|
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.6.1 -->
|
45
45
|
{% if site.mermaid %}
|
46
46
|
<script defer src="{{ '/assets/js/vendor/mermaid.min.js' | relative_url }}" onload="mermaid.initialize({
|
47
47
|
startOnLoad:true,
|
@@ -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,50 @@
|
|
1
|
+
[
|
2
|
+
{% for post in site.posts %}
|
3
|
+
{
|
4
|
+
{% unless post.excluded %}
|
5
|
+
"title" : "{{ post.title | strip_newlines | escape }}",
|
6
|
+
"category" : "{{ post.category }}",
|
7
|
+
"tags" : "{{ post.tags | join: ', ' | prepend: " " }}",
|
8
|
+
"url" : "{{ post.url | relative_url }}",
|
9
|
+
"date" : "{{ post.date | date: "%B %-d, %Y" }}",
|
10
|
+
"excerpt" : {{ post.content | strip_html | strip_newlines | strip | escape | truncate: '250' | escape | jsonify }},
|
11
|
+
"content" : {{ post.content | strip_html | strip_newlines | strip | escape | jsonify }}
|
12
|
+
{% endunless %}
|
13
|
+
}{% unless forloop.last %},{% endunless %}
|
14
|
+
{% endfor %}
|
15
|
+
{% if site.pages.size > 0 %},{% endif %}
|
16
|
+
{% for page in site.pages %}
|
17
|
+
{
|
18
|
+
{% unless page.excluded or page.title == nil %}
|
19
|
+
"title" : "{{ page.title | strip_newlines | escape }}",
|
20
|
+
"category" : "{{ page.category }}",
|
21
|
+
"tags" : "{{ page.tags | join: ', ' | prepend: " " }}",
|
22
|
+
"url" : "{{ page.url | relative_url }}",
|
23
|
+
"date" : "{{ page.date | date: "%B %-d, %Y" | default: "N/A" }}",
|
24
|
+
"excerpt" : {{ page.content | strip_html | strip_newlines | strip | escape | truncate: '250' | escape | jsonify }},
|
25
|
+
"content" : {{ page.content | strip_html | strip_newlines | strip | escape | jsonify }}
|
26
|
+
{% endunless %}
|
27
|
+
}{% unless forloop.last %},{% endunless %}
|
28
|
+
{% endfor %}
|
29
|
+
{% if site.collections.size > 1 %},{% endif %}
|
30
|
+
{% for collection in site.collections %}
|
31
|
+
{% unless collection.label == 'posts' or site[collection.label].size == 0 %}
|
32
|
+
{% for page in site[collection.label] %}
|
33
|
+
{
|
34
|
+
{% if page.excluded or page.title != nil %}
|
35
|
+
"title" : "{{ page.title | strip_newlines | escape }}",
|
36
|
+
"category" : "{{ page.category }}",
|
37
|
+
"tags" : "{{ page.tags | join: ', ' | prepend: " " }}",
|
38
|
+
"url" : "{{ page.url | relative_url }}",
|
39
|
+
"date" : "{{ page.date | date: "%B %-d, %Y" | default: "N/A" }}",
|
40
|
+
"excerpt" : {{ page.content | strip_html | strip_newlines | strip | escape | truncate: '250' | jsonify }},
|
41
|
+
"content" : {{ page.content | strip_html | strip_newlines | strip | escape | jsonify }}
|
42
|
+
{% endif %}
|
43
|
+
}{% unless forloop.last %},{% endunless %}
|
44
|
+
{% endfor %}
|
45
|
+
{% else %}
|
46
|
+
{}
|
47
|
+
{% endunless %}
|
48
|
+
{% unless forloop.last %},{% endunless %}
|
49
|
+
{% endfor %}
|
50
|
+
]
|
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.8
|
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>
|
data/_layouts/post.liquid
CHANGED
@@ -2,80 +2,30 @@
|
|
2
2
|
layout: default
|
3
3
|
---
|
4
4
|
<article {% if page.feature-img or page.color %}class="feature-image" {% endif %}>
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
{% endif %}
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
<!-- Tag list -->
|
30
|
-
{% capture tag_list %}{{ page.tags | join: "|"}}{% endcapture %}
|
31
|
-
{% include default/tags_list.liquid tags=tag_list %}
|
5
|
+
<header id="main" style="">
|
6
|
+
<div class="title-padder">
|
7
|
+
{% if page.hide_title %}
|
8
|
+
<div class="feature-image-padding"></div>
|
9
|
+
{% else %}
|
10
|
+
<h1 id="{{ page.title | cgi_escape }}" class="title">{{ page.title }}</h1>
|
11
|
+
{% include blog/post_info.liquid author=page.author date=page.date %}
|
12
|
+
{% endif %}
|
13
|
+
</div>
|
14
|
+
</header>
|
15
|
+
|
16
|
+
<section class="post-content">
|
17
|
+
{% if page.bootstrap %}<div class="bootstrap-iso">{% endif %}
|
18
|
+
{{ content }}
|
19
|
+
{% if page.bootstrap %}</div>{% endif %}
|
20
|
+
</section>
|
21
|
+
|
22
|
+
<!-- Social media shares -->
|
23
|
+
{% include social/share_buttons.liquid %}
|
24
|
+
|
25
|
+
<!-- Tag list -->
|
26
|
+
{% capture tag_list %}{{ page.tags | join: "|" }}{% endcapture %}
|
27
|
+
{% include default/tags_list.liquid tags=tag_list %}
|
32
28
|
|
33
29
|
</article>
|
34
30
|
|
35
|
-
|
36
|
-
{% if site.post_navigation or site.theme_settings.post_navigation %}
|
37
|
-
{% include blog/post_nav.liquid %}
|
38
|
-
{% endif %}
|
39
|
-
|
40
|
-
<!--Utterances-->
|
41
|
-
{% if site.comments.utterances.repo and site.comments.utterances.issue-term %} {% include social/utterances.liquid %} {% endif %}
|
42
|
-
|
43
|
-
<!-- Cusdis -->
|
44
|
-
{% if site.comments.cusdis_app_id or site.cusdis_app_id %}{% include social/cusdis.liquid %}{% endif %}
|
45
|
-
|
46
|
-
<!-- Disqus -->
|
47
|
-
{% if site.comments.disqus_shortname or site.theme_settings.disqus_shortname or site.disqus_shortname %}
|
48
|
-
{% include social/disqus.liquid %}{% endif %}
|
49
|
-
|
50
|
-
<!-- To change color of links in the page -->
|
51
|
-
<style>
|
52
|
-
header#main {
|
53
|
-
background-size: cover;
|
54
|
-
background-repeat: no-repeat;
|
55
|
-
background-position: center;
|
56
|
-
}
|
57
|
-
|
58
|
-
{% if page.color %}
|
59
|
-
.post-content a { color: {{ page.color }} !important; }
|
60
|
-
.share-buttons a { color: {{ page.color }} !important; }
|
61
|
-
.tag-list a:not(:hover) { color: {{ page.color }} !important; }
|
62
|
-
div#post-nav a { color: {{ page.color }} !important; }
|
63
|
-
footer a { color: {{ page.color }} !important; }
|
64
|
-
.site-header nav a:hover { color: {{ page.color }} !important; }
|
65
|
-
a.button:hover {
|
66
|
-
background: {{ page.color }} !important;
|
67
|
-
border: 1px solid {{ page.color }} !important;
|
68
|
-
color: white;
|
69
|
-
text-decoration: none;
|
70
|
-
filter: none;
|
71
|
-
}
|
72
|
-
header#main {
|
73
|
-
background-color: {{ page.color }} !important;
|
74
|
-
background-image: url('{{ site.color_image | relative_url }}');
|
75
|
-
}
|
76
|
-
{% endif %}
|
77
|
-
|
78
|
-
{% if page.feature-img %}
|
79
|
-
header#main { background-image: url('{{ page.feature-img | relative_url }}'); }
|
80
|
-
{% endif %}
|
81
|
-
</style>
|
31
|
+
{% include blog/post_footer.liquid color=page.color img=page.feature-img %}
|
@@ -1,20 +1,12 @@
|
|
1
1
|
/*!
|
2
|
-
* Font Awesome
|
3
|
-
*
|
2
|
+
* Type-on-strap Font Awesome kit v6.5.1
|
3
|
+
* Find the version and license of the included Font Awesome here: _sass/external/font-awesome/fontawesome.scss
|
4
4
|
*/
|
5
5
|
$fa-inverse: var(--background);
|
6
|
-
|
7
|
-
|
8
|
-
@import 'font-awesome/
|
9
|
-
@import 'font-awesome/larger';
|
10
|
-
@import 'font-awesome/fixed-width';
|
11
|
-
@import 'font-awesome/list';
|
12
|
-
@import 'font-awesome/bordered-pulled';
|
13
|
-
@import 'font-awesome/animated';
|
14
|
-
@import 'font-awesome/rotated-flipped';
|
15
|
-
@import 'font-awesome/stacked';
|
16
|
-
@import 'font-awesome/icons';
|
17
|
-
@import 'font-awesome/screen-reader';
|
18
|
-
@import 'font-awesome/solid';
|
19
|
-
@import 'font-awesome/regular';
|
6
|
+
$fa-font-path: "../fonts/font-awesome" !default;
|
7
|
+
|
8
|
+
@import 'font-awesome/fontawesome';
|
20
9
|
@import 'font-awesome/brands';
|
10
|
+
@import 'font-awesome/regular';
|
11
|
+
@import 'font-awesome/solid';
|
12
|
+
@import 'font-awesome/v4-shims';
|