type-on-strap 2.4.7 → 2.4.8

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.
Files changed (66) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +32 -23
  3. data/_data/language.yml +3 -1
  4. data/_includes/blog/post_footer.liquid +57 -0
  5. data/_includes/default/head.liquid +12 -12
  6. data/_includes/default/navbar.liquid +9 -7
  7. data/_includes/default/search_input.liquid +50 -0
  8. data/_layouts/default.html +7 -4
  9. data/_layouts/home.liquid +2 -4
  10. data/_layouts/page.liquid +24 -29
  11. data/_layouts/post.liquid +24 -74
  12. data/_sass/external/_font-awesome.scss +8 -16
  13. data/_sass/external/_katex.scss +5 -1146
  14. data/_sass/external/font-awesome/_animated.scss +142 -9
  15. data/_sass/external/font-awesome/_bordered-pulled.scss +13 -13
  16. data/_sass/external/font-awesome/_core.scss +28 -6
  17. data/_sass/external/font-awesome/_fixed-width.scss +2 -1
  18. data/_sass/external/font-awesome/_functions.scss +57 -0
  19. data/_sass/external/font-awesome/_icons.scss +7 -1459
  20. data/_sass/external/font-awesome/_list.scss +4 -4
  21. data/_sass/external/font-awesome/_mixins.scss +53 -34
  22. data/_sass/external/font-awesome/_rotated-flipped.scss +25 -18
  23. data/_sass/external/font-awesome/_screen-reader.scss +12 -3
  24. data/_sass/external/font-awesome/_shims.scss +640 -664
  25. data/_sass/external/font-awesome/_sizing.scss +16 -0
  26. data/_sass/external/font-awesome/_stacked.scss +5 -4
  27. data/_sass/external/font-awesome/_variables.scss +4923 -1409
  28. data/_sass/external/font-awesome/brands.scss +30 -0
  29. data/_sass/external/font-awesome/fontawesome.scss +21 -0
  30. data/_sass/external/font-awesome/regular.scss +26 -0
  31. data/_sass/external/font-awesome/solid.scss +26 -0
  32. data/_sass/external/font-awesome/v4-shims.scss +6 -1
  33. data/_sass/external/katex/katex.scss +1414 -0
  34. data/_sass/includes/_navbar.scss +6 -4
  35. data/_sass/includes/_share_buttons.scss +1 -1
  36. data/_sass/layouts/_posts.scss +1 -1
  37. data/assets/data/search.liquid +6 -27
  38. data/assets/fonts/font-awesome/fa-brands-400.ttf +0 -0
  39. data/assets/fonts/font-awesome/fa-brands-400.woff2 +0 -0
  40. data/assets/fonts/font-awesome/fa-regular-400.ttf +0 -0
  41. data/assets/fonts/font-awesome/fa-regular-400.woff2 +0 -0
  42. data/assets/fonts/font-awesome/fa-solid-900.ttf +0 -0
  43. data/assets/fonts/font-awesome/fa-solid-900.woff2 +0 -0
  44. data/assets/fonts/font-awesome/fa-v4compatibility.ttf +0 -0
  45. data/assets/fonts/font-awesome/fa-v4compatibility.woff2 +0 -0
  46. data/assets/js/main.min.js +3 -3
  47. data/assets/js/partials/cookie_consent_init.js +5 -0
  48. data/assets/js/partials/dark-mode.js +22 -18
  49. data/assets/js/vendor/katex.auto-render.min.js +1 -0
  50. data/assets/js/vendor/katex.min.js +1 -1
  51. data/assets/js/vendor/mermaid.min.js +830 -772
  52. metadata +14 -16
  53. data/_sass/external/font-awesome/_brands.scss +0 -23
  54. data/_sass/external/font-awesome/_larger.scss +0 -23
  55. data/_sass/external/font-awesome/_regular.scss +0 -23
  56. data/_sass/external/font-awesome/_solid.scss +0 -24
  57. data/assets/fonts/font-awesome/fa-brands-400.eot +0 -0
  58. data/assets/fonts/font-awesome/fa-brands-400.svg +0 -3717
  59. data/assets/fonts/font-awesome/fa-brands-400.woff +0 -0
  60. data/assets/fonts/font-awesome/fa-regular-400.eot +0 -0
  61. data/assets/fonts/font-awesome/fa-regular-400.svg +0 -801
  62. data/assets/fonts/font-awesome/fa-regular-400.woff +0 -0
  63. data/assets/fonts/font-awesome/fa-solid-900.eot +0 -0
  64. data/assets/fonts/font-awesome/fa-solid-900.svg +0 -5028
  65. data/assets/fonts/font-awesome/fa-solid-900.woff +0 -0
  66. 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: 2057d2682bf6c8aa2883be048665715575c0b577f9ef5e88a2999da1c05dd4ee
4
- data.tar.gz: ef6d4db972b7d1c12e0353afe99b9a0b019ac257fe7826e1672b417b8af14786
3
+ metadata.gz: dba3ab6a8c633aac793ffc8297817c5e43c8d3178d60379b2fd93158a61e063f
4
+ data.tar.gz: 3a63ffd7c2a16ca9d784b14703c60405f68a4bdf19a2a8589b58a60864015954
5
5
  SHA512:
6
- metadata.gz: 87368acc73d55075d24a1c5a5807ea5951410d7fe2b245df05d28bb755641dcf04d5a18d6506187482400ea5d9cbde6025b45992871026cb1832cc1345f984ff
7
- data.tar.gz: 4af9107da561f1b4e2965e649b1f14a1653286ca491d9a46a4dab0aba954d15388f1040ae430687bb30e019b7aa4bbdb49e817eb4bfeb91741998fbeea60a448
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 on those platform.
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 color as feature image, and change link colors in post
321
- bootstrap: true # Add bootstrap to the page
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
- The background used when `color` is set comes from `lineart.png` from [xukimseven](https://github.com/xukimseven)
330
- you can edit it in the config file (`_config.yml > color_image`). If you want another one, put it in `/assets/img` as well.
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
- The **bootstrap** is not mandatory and is only useful if you want to add bootstrapped content in your page.
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 display on the blog page.
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 have a bit more features explained here.
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 access through its link.
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`. Here are little explaination on some of the possible feature you can use and what they will do.
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`. You can see more format example on the demo posts that are available for the theme:
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 in optimal position
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
- Then there's a `search.js` displaying the formatted results in the "search page".
500
-
501
- The search page can be hidden with the `hide` option. You can remove the icon by removing `icon`:
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 isAutoTheme = true;
9
- document.documentElement.setAttribute('data-theme', sessionStorage.getItem('theme'))
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.15.2 -->
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 9.1.1 -->
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
- {% for page in site.pages %}
26
- {% unless page.title == null or page.hide or name_page contains page.title %}
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
- {% else %} {{ page.title }} {% endif%}
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
- {% endunless %}
35
- {% assign name_page = page.title | append: name_page %}
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
+ ]
@@ -1,16 +1,19 @@
1
1
  <!DOCTYPE html>
2
2
  <!--
3
- Type on Strap jekyll theme v2.4.7
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
- {% include blog/blog.liquid %}
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
- <header id="main" style="background-image: url('{{ page.feature-img | relative_url }}')">
8
- <div class="title-padder">
9
- {% if page.hide_title %}
10
- <div class="feature-image-padding"></div>
11
- {% else %}
12
- <h1 id="{{ page.title | default: "" | cgi_escape }}" class="title"> {{ page.title }}</h1>
13
- {% if page.subtitle %}
14
- <h2 class="subtitle">{{ page.subtitle }}</h2>
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
- {% endif %}
17
- </div>
18
- </header>
19
-
20
- <section class="post-content">
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
- <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 %}
18
- <div class="bootstrap-iso">
19
- {% endif %}
20
- {{ content }}
21
- {% if page.bootstrap %}
22
- </div>
23
- {% endif %}
24
- </section>
25
-
26
- <!-- Social media shares -->
27
- {% include social/share_buttons.liquid %}
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
- <!-- Post navigation -->
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 Free 5.15.2 by @fontawesome - https://fontawesome.com
3
- * License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
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
- @import 'font-awesome/variables';
7
- @import 'font-awesome/mixins';
8
- @import 'font-awesome/core';
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';