jekyll-theme-yat 1.5.4 → 1.5.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/_includes/extensions/comments/disqus.html +1 -2
- data/_includes/functions.html +4 -3
- data/_includes/functions/get_datetimes.html +2 -2
- data/_includes/functions/get_reading_time.html +4 -4
- data/_includes/functions/get_value.html +10 -10
- data/_includes/functions/log.html +4 -4
- data/_includes/views/header.html +4 -4
- data/_sass/yat/_layout.scss +3 -3
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e23cabb5b85f960c0149610259b2b257e7ce06077a54e8834c4f70e689988e07
|
4
|
+
data.tar.gz: 5f41d7b6faad0be804c262daedce63a020794acd16aa106a9ea1690aa4185db1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5fea0fdae1d42740ce4d633cdc399bceeba79620257ed282d9ddd5d24b6e3c7c927a28baab5707e5f76f0a6a5d91a98cf5513929901aa5171a8c8d032c26d4f6
|
7
|
+
data.tar.gz: 0dd397bdaf68249b75f6c206e48b1fd4a12e1ebbe47f674ca1cc9bf9b0c68cf28f632ba340315a124ee07c04b495fb85583764dcfad57bcb6a2558438635a38c
|
@@ -8,8 +8,7 @@
|
|
8
8
|
(function() {
|
9
9
|
var d = document, s = d.createElement('script');
|
10
10
|
|
11
|
-
|
12
|
-
s.src = 'https://jeffreytse.disqus.com/embed.js';
|
11
|
+
s.src = 'https://{{ site.disqus.shortname }}.disqus.com/embed.js';
|
13
12
|
|
14
13
|
s.setAttribute('data-timestamp', +new Date());
|
15
14
|
(d.head || d.body).appendChild(s);
|
data/_includes/functions.html
CHANGED
@@ -1,5 +1,6 @@
|
|
1
|
-
{%-
|
2
|
-
|
1
|
+
{%- assign params = include -%}
|
2
|
+
{%- if params.func -%}
|
3
|
+
{%- assign func = params.func -%}
|
3
4
|
{%- endif -%}
|
4
5
|
|
5
6
|
{%- assign include_path = func -%}
|
@@ -12,7 +13,7 @@
|
|
12
13
|
{%- include functions/log.html level=include.level msg=include.msg -%}
|
13
14
|
{%- else -%}
|
14
15
|
{%- assign include_path = 'functions/' | append: include_path -%}
|
15
|
-
{%- include {{ include_path }} -%}
|
16
|
+
{%- include {{ include_path }} params=params-%}
|
16
17
|
{%- endif -%}
|
17
18
|
|
18
19
|
{%- if func != 'log' -%}
|
@@ -1,9 +1,9 @@
|
|
1
|
-
{% if include.article %}
|
2
|
-
{% assign article = include.article %}
|
1
|
+
{% if include.params.article %}
|
2
|
+
{% assign article = include.params.article %}
|
3
3
|
{% endif %}
|
4
4
|
|
5
|
-
{% if include.speed %}
|
6
|
-
{% assign speed = include.speed %}
|
5
|
+
{% if include.params.speed %}
|
6
|
+
{% assign speed = include.params.speed %}
|
7
7
|
{% else %}
|
8
8
|
{% assign speed = 160 %}
|
9
9
|
{% endif %}
|
@@ -1,19 +1,19 @@
|
|
1
|
-
{%- if include.name -%}
|
2
|
-
{%- assign name = include.name -%}
|
1
|
+
{%- if include.params.name -%}
|
2
|
+
{%- assign name = include.params.name -%}
|
3
3
|
{%- endif -%}
|
4
4
|
|
5
|
-
{%-
|
6
|
-
|
7
|
-
{%- if page[name] -%}
|
5
|
+
{%- if page[name] != nil -%}
|
8
6
|
{%- assign return = page[name] -%}
|
9
|
-
{%- elsif site[name] -%}
|
7
|
+
{%- elsif site[name] != nil -%}
|
10
8
|
{%- assign return = site[name] -%}
|
11
|
-
{%- elsif site.data[name] -%}
|
9
|
+
{%- elsif site.data[name] != nil -%}
|
12
10
|
{%- assign return = site.data[name] -%}
|
13
|
-
{%- elsif site.defaults[page.layout][name] -%}
|
11
|
+
{%- elsif site.defaults[page.layout][name] != nil -%}
|
14
12
|
{%- assign return = site.defaults[page.layout][name] -%}
|
15
|
-
{%- elsif site.data.defaults[page.layout][name] -%}
|
13
|
+
{%- elsif site.data.defaults[page.layout][name] != nil -%}
|
16
14
|
{%- assign return = site.data.defaults[page.layout][name] -%}
|
17
|
-
{%- elsif layout[name] -%}
|
15
|
+
{%- elsif layout[name] != nil -%}
|
18
16
|
{%- assign return = layout[name] -%}
|
17
|
+
{%- else -%}
|
18
|
+
{%- assign return = include.params.default -%}
|
19
19
|
{%- endif -%}
|
@@ -1,9 +1,9 @@
|
|
1
|
-
{% if include.level %}
|
2
|
-
{% assign level = include.level %}
|
1
|
+
{% if include.params.level %}
|
2
|
+
{% assign level = include.params.level %}
|
3
3
|
{% endif %}
|
4
4
|
|
5
|
-
{% if include.msg %}
|
6
|
-
{% assign msg = include.msg %}
|
5
|
+
{% if include.params.msg %}
|
6
|
+
{% assign msg = include.params.msg %}
|
7
7
|
{% endif %}
|
8
8
|
|
9
9
|
{% if site.debug == true %}
|
data/_includes/views/header.html
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
|
2
2
|
{%- include functions.html func='log' level='debug' msg='Get banner value' -%}
|
3
|
-
{
|
3
|
+
{%- assign name = 'banner' -%}
|
4
4
|
{%- include functions.html func='get_value' -%}
|
5
5
|
{% assign banner = return %}
|
6
6
|
|
7
7
|
{%- include functions.html func='log' level='debug' msg='Get header_transparent value' -%}
|
8
|
-
{
|
9
|
-
{%- include functions.html func='get_value' -%}
|
10
|
-
{
|
8
|
+
{%- assign name = 'header_transparent' -%}
|
9
|
+
{%- include functions.html func='get_value' default=true -%}
|
10
|
+
{%- assign header_transparent = return -%}
|
11
11
|
|
12
12
|
{%- if banner and header_transparent -%}
|
13
13
|
{%- assign header_transparent_class = "site-header-transparent" -%}
|
data/_sass/yat/_layout.scss
CHANGED
@@ -392,9 +392,9 @@ html {
|
|
392
392
|
|
393
393
|
.post-content {
|
394
394
|
margin-bottom: $spacing-unit;
|
395
|
-
overflow-wrap:
|
396
|
-
word-wrap:
|
397
|
-
word-break:
|
395
|
+
overflow-wrap: normal;
|
396
|
+
word-wrap: normal;
|
397
|
+
word-break: normal;
|
398
398
|
|
399
399
|
h2 {
|
400
400
|
@include relative-font-size(2);
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jekyll-theme-yat
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.5.
|
4
|
+
version: 1.5.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- jeffreytse
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-09-
|
11
|
+
date: 2020-09-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|