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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2884b2ab53b29fb48aa6bf0574b925c936fec06f4de9d20383360e50a37cb56e
4
- data.tar.gz: c9fbc6547272f4ba8c1c4621d395b64809632f18bee235eca6a4ff2f239214e1
3
+ metadata.gz: e23cabb5b85f960c0149610259b2b257e7ce06077a54e8834c4f70e689988e07
4
+ data.tar.gz: 5f41d7b6faad0be804c262daedce63a020794acd16aa106a9ea1690aa4185db1
5
5
  SHA512:
6
- metadata.gz: 5047f96da41a9ec89f78728f6bb9ccf4a36292568d27018345694aa772b732e6bd73f2497039dee478a8b52f9da875f494b6413c89c05bca12f58903b9dbaa70
7
- data.tar.gz: 63c4497d597df2564ca33a0dbb590f15aa7f5662972a49e0546fb167378277271f14e6cf53ddae49bc7405b90ca6cd6915ab3d8e1add45c7266d6ba7fac353a8
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
- // s.src = 'https://{{ site.disqus.shortname }}.disqus.com/embed.js';
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);
@@ -1,5 +1,6 @@
1
- {%- if include.func -%}
2
- {%- assign func = include.func -%}
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,5 +1,5 @@
1
- {% if include.filter %}
2
- {% assign filter = include.filter %}
1
+ {% if include.params.filter %}
2
+ {% assign filter = include.params.filter %}
3
3
  {% endif %}
4
4
 
5
5
  {% assign split_mark = '<|>' %}
@@ -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
- {%- assign return = include.return -%}
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 %}
@@ -1,13 +1,13 @@
1
1
 
2
2
  {%- include functions.html func='log' level='debug' msg='Get banner value' -%}
3
- {% assign name = 'banner' %}
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
- {% assign name = 'header_transparent' %}
9
- {%- include functions.html func='get_value' -%}
10
- {% assign header_transparent = return | default: true %}
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" -%}
@@ -392,9 +392,9 @@ html {
392
392
 
393
393
  .post-content {
394
394
  margin-bottom: $spacing-unit;
395
- overflow-wrap: break-word;
396
- word-wrap: break-word;
397
- word-break: break-word;
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
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-22 00:00:00.000000000 Z
11
+ date: 2020-09-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler