sutty-jekyll-theme 0.1.3 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
data/_layouts/page.html CHANGED
@@ -2,15 +2,15 @@
2
2
  layout: default
3
3
  ---
4
4
 
5
- {% comment %}
6
- TODO: Pages are the same as posts.
7
- {% endcomment %}
5
+ {% assign licence = site.posts | find: "layout", "license" %}
6
+ {% assign date_format = site.i18n.date.format | default: "%b %-d, %Y" %}
7
+
8
8
  <article class="h-entry" itemscope itemtype="http://schema.org/Article">
9
9
  <header>
10
- <h1 class="p-name" itemprop="name headline">{{ page.title | escape }}</h1>
10
+ <h1 class="p-name" itemprop="name headline">{{ page.title | default: '' | escape }}</h1>
11
11
 
12
12
  {%- if page.description -%}
13
- <p class="lead p-summary" itemprop="description">{{ page.description | escape }}</p>
13
+ <p class="lead p-summary" itemprop="description">{{ page.description | default: '' | escape }}</p>
14
14
  {%- endif -%}
15
15
 
16
16
  {%- if page.image.path -%}
@@ -25,14 +25,13 @@ layout: default
25
25
 
26
26
  <p>
27
27
  <time class="dt-published" datetime="{{ page.date | date_to_xmlschema }}" itemprop="datePublished">
28
- {%- assign date_format = site.i18n.date | default: "%b %-d, %Y" -%}
29
- {{ page.date | date: date_format }}
28
+ {{ page.date | date_local: date_format }}
30
29
  </time>
31
30
  {%- for author in page.author -%}
32
31
 
33
32
  <span itemprop="author" itemscope itemtype="http://schema.org/Person">
34
33
  <span class="p-author h-card" itemprop="name">
35
- {{ author | escape }}
34
+ {{ author | default: '' | escape }}
36
35
  </span>
37
36
  </span>
38
37
  {%- endfor -%}
@@ -45,18 +44,18 @@ layout: default
45
44
 
46
45
  <footer>
47
46
  <a class="u-url" itemprop="url" href="{{ page.url }}" hidden>
48
- {{ site.url }}/{{ page.url }}
47
+ {{ site.url }}{{ page.url }}
49
48
  </a>
50
49
 
51
50
  {%- if page.uuid -%}
52
51
  <span hidden itemprop="identifier">{{ page.uuid }}</span>
53
52
  {%- endif -%}
54
53
 
55
- {%- if page.license.url -%}
54
+ {%- if license -%}
56
55
  <p itemprop="license" itemtype="http://schema.org/CreativeWork">
57
- <a rel="license" itemprop="url" href="{{ page.license.url }}">
56
+ <a rel="license" itemprop="url" href="{{ license.url }}">
58
57
  <span itemprop="articleBody">
59
- {{ page.license.description }}
58
+ {{ license.description }}
60
59
  </span>
61
60
  </a>
62
61
  </p>
data/_layouts/post.html CHANGED
@@ -2,12 +2,15 @@
2
2
  layout: default
3
3
  ---
4
4
 
5
+ {% assign licence = site.posts | find: "layout", "license" %}
6
+ {% assign date_format = site.i18n.date.format | default: "%b %-d, %Y" %}
7
+
5
8
  <article class="h-entry" itemscope itemtype="http://schema.org/Article">
6
9
  <header>
7
- <h1 class="p-name" itemprop="name headline">{{ page.title | escape }}</h1>
10
+ <h1 class="p-name" itemprop="name headline">{{ page.title | default: '' | escape }}</h1>
8
11
 
9
12
  {%- if page.description -%}
10
- <p class="lead p-summary" itemprop="description">{{ page.description | escape }}</p>
13
+ <p class="lead p-summary" itemprop="description">{{ page.description | default: '' | escape }}</p>
11
14
  {%- endif -%}
12
15
 
13
16
  {%- if page.image.path -%}
@@ -22,14 +25,13 @@ layout: default
22
25
 
23
26
  <p>
24
27
  <time class="dt-published" datetime="{{ page.date | date_to_xmlschema }}" itemprop="datePublished">
25
- {%- assign date_format = site.i18n.date | default: "%b %-d, %Y" -%}
26
- {{ page.date | date: date_format }}
28
+ {{ page.date | date_local: date_format }}
27
29
  </time>
28
30
  {%- for author in page.author -%}
29
31
 
30
32
  <span itemprop="author" itemscope itemtype="http://schema.org/Person">
31
33
  <span class="p-author h-card" itemprop="name">
32
- {{ author | escape }}
34
+ {{ author | default: '' | escape }}
33
35
  </span>
34
36
  </span>
35
37
  {%- endfor -%}
@@ -42,18 +44,18 @@ layout: default
42
44
 
43
45
  <footer>
44
46
  <a class="u-url" itemprop="url" href="{{ page.url }}" hidden>
45
- {{ site.url }}/{{ page.url }}
47
+ {{ site.url }}{{ page.url }}
46
48
  </a>
47
49
 
48
50
  {%- if page.uuid -%}
49
51
  <span hidden itemprop="identifier">{{ page.uuid }}</span>
50
52
  {%- endif -%}
51
53
 
52
- {%- if page.license.url -%}
54
+ {%- if license -%}
53
55
  <p itemprop="license" itemtype="http://schema.org/CreativeWork">
54
- <a rel="license" itemprop="url" href="{{ page.license.url }}">
56
+ <a rel="license" itemprop="url" href="{{ license.url }}">
55
57
  <span itemprop="articleBody">
56
- {{ page.license.description }}
58
+ {{ license.description }}
57
59
  </span>
58
60
  </a>
59
61
  </p>
data/_sass/variables.scss CHANGED
@@ -1,12 +1,3 @@
1
1
  $print-page-size: a4;
2
-
3
2
  $enable-print-styles: true;
4
3
  $enable-responsive-font-sizes: true;
5
-
6
- $font-family-sans-serif: Saira, sans-serif;
7
-
8
- $cyan: #13fefe;
9
- $magenta: #f206f9;
10
-
11
- $primary: $magenta;
12
- $secondary: $cyan;
@@ -1,22 +1,18 @@
1
1
  ---
2
2
  ---
3
3
 
4
+ {%- assign theme = site.posts | find: "layout", "theme" -%}
5
+
6
+ {% if theme %}
7
+ {{ theme | yaml_to_scss: site.data.layouts.theme }}
8
+ {% endif %}
9
+
4
10
  @import "variables";
11
+ @import "bootstrap/scss/bootstrap";
5
12
  @import "saira";
6
13
  @import "selection";
7
- @import "bootstrap/scss/bootstrap-reboot";
8
- @import "bootstrap/scss/bootstrap-grid";
9
- @import "bootstrap/scss/images";
10
- @import "bootstrap/scss/nav";
11
- @import "bootstrap/scss/navbar";
12
- @import "bootstrap/scss/type";
13
- @import "bootstrap/scss/forms";
14
- @import "bootstrap/scss/buttons";
15
14
  @import "buttons";
16
15
  @import "crypto";
17
- @import "bootstrap/scss/utilities/display";
18
- @import "bootstrap/scss/utilities/screenreaders";
19
- @import "bootstrap/scss/print";
20
16
  @import "print";
21
17
  @import "images";
22
18
  @import "custom";
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sutty-jekyll-theme
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - f
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-03-08 00:00:00.000000000 Z
11
+ date: 2023-03-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '4.0'
19
+ version: 4.2.0
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '4.0'
26
+ version: 4.2.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: jekyll-relative-urls
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -94,6 +94,20 @@ dependencies:
94
94
  - - "~>"
95
95
  - !ruby/object:Gem::Version
96
96
  version: '0'
97
+ - !ruby/object:Gem::Dependency
98
+ name: sutty-liquid
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - ">="
102
+ - !ruby/object:Gem::Version
103
+ version: '0'
104
+ type: :runtime
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - ">="
109
+ - !ruby/object:Gem::Version
110
+ version: '0'
97
111
  - !ruby/object:Gem::Dependency
98
112
  name: bundler
99
113
  requirement: !ruby/object:Gem::Requirement
@@ -135,12 +149,20 @@ files:
135
149
  - CHANGELOG.md
136
150
  - LICENSE.txt
137
151
  - README.md
152
+ - _data/en.yml
153
+ - _data/es.yml
154
+ - _data/layouts/about.yml
155
+ - _data/layouts/code_of_conduct.yml
156
+ - _data/layouts/license.yml
138
157
  - _data/layouts/page.yml
139
158
  - _data/layouts/post.yml
159
+ - _data/layouts/theme.yml
140
160
  - _includes/logo.svg
141
161
  - _includes/navbar.html
162
+ - _layouts/code_of_conduct.html
142
163
  - _layouts/default.html
143
164
  - _layouts/home.html
165
+ - _layouts/license.html
144
166
  - _layouts/page.html
145
167
  - _layouts/post.html
146
168
  - _sass/buttons.scss