jekyll-theme-simpleton 0.5.0 → 0.6.0

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: 22bba17131f8438fcc7f3bf03c88c0a96a729c9bc2e2ba7140498989f4f3a22d
4
- data.tar.gz: 1ae833a21d06742cef9aaea3d7722b15e45912460417f6e7adb7aa17f057eb5c
3
+ metadata.gz: 9fc4a4c50ae6c2acb5ff77588e93b3797d633e25c6951103366cfc36d2e1ef47
4
+ data.tar.gz: 9437a3a8736e0da86f1e8e23c73ee535b84a5688e3ccda099d753df186fd8773
5
5
  SHA512:
6
- metadata.gz: d93ae4755d6650cf3a9a241f579713f8c74b2404837b1324aa09eb68c85905e0a467fa94b576728b72b20bdb2cde6c9f191727fb2f0827b18dfe52e6fae3fec3
7
- data.tar.gz: ea6de4dc366438bf2710737a5162c75c85d57c63ffb65e1e5f735f9f16430d620937715997cb2c0f1d7142413a09633b2f989f6e2ae9feafc040a4d038c1007f
6
+ metadata.gz: 76d35157b70a39efa1b9bf7967772811a2f022824c5313ff118532530aac863b3860d60d45d08638142098583bed192e1b9ab07e00c4e5ffce3a6dfe63c1012e
7
+ data.tar.gz: 83ebeeab28bd679444f5ccddcf999ced8dc2cca720c99278601fe1539f690ced559fdeb4e5d37f4c0b011fd08a72395bda2644beb20c2b9a18084026b5eaa600
data/_config.yml CHANGED
@@ -1,5 +1,6 @@
1
1
  # Global Configuration
2
2
  title: Jekyll Theme Simpleton
3
+ author: anwait
3
4
 
4
5
  plugins:
5
6
  - jekyll-seo-tag
@@ -13,6 +14,27 @@ defaults:
13
14
  type: "posts"
14
15
  values:
15
16
  layout: "post"
17
+ -
18
+ scope:
19
+ path: ""
20
+ type: "pages"
21
+ values:
22
+ layout: "page"
23
+
24
+ show_excerpts: true
25
+
26
+ ## Exclude
27
+ ### Exclude directories and/or files from the conversion. These exclusions are
28
+ ### relative to the site's source directory and cannot be outside the source
29
+ ### directory.
30
+ exclude:
31
+ - Rakefile
32
+ - "*.gemspec"
33
+ - package.json
34
+ - README.md
35
+ - LICENSE.md
36
+ - yarn.lock
37
+ - pkg/
16
38
 
17
39
 
18
40
  # Build Command Options
@@ -26,3 +48,9 @@ profile: true
26
48
  ### Cause a build to fail if there is a YAML syntax error in a page's front
27
49
  ### matter.
28
50
  strict_front_matter: true
51
+
52
+
53
+ sass:
54
+ style: compressed
55
+ load_paths:
56
+ - node_modules
@@ -0,0 +1,7 @@
1
+ {%- assign tag = include.tag | default: "p" -%}
2
+
3
+ {%- assign date_format = include.date_format | default: "%Y" -%}
4
+
5
+ <{{ tag }} id="copyright">
6
+ Copyright &#169; {{ site.time | date: date_format }} {{ site.author }}
7
+ </{{ tag }}>
@@ -1,3 +1,5 @@
1
1
  <footer id="footer">
2
- <!-- TOOD: currently not used -->
2
+
3
+ {%- include copyright.html -%}
4
+
3
5
  </footer> <!-- #footer -->
@@ -1,13 +1,13 @@
1
1
  <header id="header">
2
2
  <h1 id="site-title">
3
- {{ site.title }}
3
+ {{- site.title -}}
4
4
  </h1> <!-- #site-title -->
5
5
 
6
- {% if site.subtitle %}
7
- <p id="site-subtitle">
8
- {{ site.subtitle }}
9
- </p> <!-- #site-subtitle -->
10
- {% endif %}
6
+ {%- if site.subtitle -%}
7
+ <p id="site-subtitle">
8
+ {{- site.subtitle -}}
9
+ </p> <!-- #site-subtitle -->
10
+ {%- endif -%}
11
11
 
12
- {% include menu.html %}
12
+ {%- include menu.html -%}
13
13
  </header> <!-- #header -->
data/_includes/menu.html CHANGED
@@ -1,17 +1,23 @@
1
- {% assign sorted_pages = site.html_pages | sort: "menu_weight", "last" %}
1
+ {%- assign sorted_pages = site.html_pages | sort: "menu_weight", "last" -%}
2
2
 
3
3
  <nav id="menu">
4
4
  <ul class="menu-list">
5
- {% for p in sorted_pages %}
6
- {% unless p.hidden %}
7
- <li
8
- class="menu-item {% if p.url == page.url %}menu-selected{% endif %}"
9
- >
10
- <a class="menu-link" href="{{ p.url }}">
11
- {{ p.title }}
12
- </a> <!-- .menu-link -->
13
- </li> <!-- .menu-item -->
14
- {% endunless %}
15
- {% endfor %}
5
+
6
+ {%- for p in sorted_pages -%}
7
+
8
+ {%- unless p.hidden -%}
9
+
10
+ <li class="menu-item {% if p.url == page.url %}menu-selected{% endif %}">
11
+ <a class="menu-link" href="{{ p.url }}">
12
+
13
+ {{- p.title -}}
14
+
15
+ </a> <!-- .menu-link -->
16
+ </li> <!-- .menu-item -->
17
+
18
+ {%- endunless -%}
19
+
20
+ {%- endfor -%}
21
+
16
22
  </ul> <!-- .menu-list -->
17
- </nav> <!-- #menu -->
23
+ </nav> <!-- #menu -->
@@ -0,0 +1,55 @@
1
+ {%- if site.paginate -%}
2
+
3
+ {%- assign posts = paginator.posts -%}
4
+
5
+ {%- else -%}
6
+
7
+ {%- assign posts = site.posts -%}
8
+
9
+ {%- endif -%}
10
+
11
+ {%- if posts.size > 0 -%}
12
+
13
+ {%- assign date_format = site.date_format -%}
14
+
15
+ <section id="post-listing">
16
+ <header id="post-listing-header">
17
+ <h2 id="post-listing-heading">
18
+
19
+ {{- posts.list_title | default: "Posts" -}}
20
+
21
+ </h2> <!-- #post-listing-heading -->
22
+ </header> <!-- #post-listing-header -->
23
+ <ul class="post-list">
24
+
25
+ {%- for post in posts -%}
26
+
27
+ <li class="post-item">
28
+ <span class="post-meta">
29
+
30
+ {{- post.date | date: date_format -}}
31
+
32
+ </span>
33
+ <a class="post-link" href="{{ post.url | relative_url }}">
34
+ {{ post.title | escape }}
35
+ </a>
36
+
37
+ {%- if site.show_excerpts -%}
38
+
39
+ <div class="post-excerpt">
40
+
41
+ {{- post.excerpt -}}
42
+
43
+ </div>
44
+
45
+ {%- endif -%}
46
+
47
+
48
+ </li> <!-- .post-item -->
49
+
50
+ {%- endfor -%}
51
+
52
+ </ul> <!-- .post-list -->
53
+ </section> <!-- #post-listing -->
54
+
55
+ {%- endif -%}
@@ -0,0 +1,33 @@
1
+ {%- if page.series -%}
2
+
3
+ {%- assign series_posts = site.posts | where: "series", page.series | reverse -%}
4
+
5
+ <ol id="series">
6
+
7
+ {%- for post in series_posts -%}
8
+
9
+ <li>
10
+ <a href="{{ post.url | relative_url }}">
11
+
12
+ {%- if post.url == page.url -%}
13
+
14
+ <em>
15
+
16
+ {%- endif -%}
17
+
18
+ {{- post.title -}}
19
+
20
+ {%- if post.url == page.url -%}
21
+
22
+ </em>
23
+
24
+ {%- endif -%}
25
+
26
+ </a>
27
+ </li>
28
+
29
+ {%- endfor -%}
30
+
31
+ </ol> <!-- #series -->
32
+
33
+ {%- endif -%}
@@ -1,13 +1,20 @@
1
1
  <!DOCTYPE html>
2
2
  <html lang="{{ page.lang | default: site.lang | default: 'en' }}">
3
- {% include head.html %}
4
- <body>
5
- <div id="layout">
6
- {% include header.html %}
7
- <main id="main">
8
- {{ content }}
9
- </main> <!-- #main -->
10
- {% include footer.html %}
11
- </div> <!-- #layout -->
12
- </body>
3
+
4
+ {%- include head.html -%}
5
+
6
+ <body>
7
+ <div id="layout">
8
+
9
+ {%- include header.html -%}
10
+
11
+ <main id="main">
12
+ {{- content -}}
13
+ </main> <!-- #main -->
14
+
15
+ {%- include footer.html -%}
16
+
17
+ </div> <!-- #layout -->
18
+ </body>
19
+
13
20
  </html>
data/_layouts/home.html CHANGED
@@ -2,38 +2,8 @@
2
2
  layout: default
3
3
  ---
4
4
 
5
- <section id="hero">
6
- {{ content }}
7
- </section> <!-- #hero -->
5
+ <div id="hero">
6
+ {{- content -}}
7
+ </div> <!-- #hero -->
8
8
 
9
- {% if site.paginate %}
10
- {% assign posts = paginator.posts %}
11
- {% else %}
12
- {% assign posts = site.posts %}
13
- {% endif %}
14
-
15
- {% if posts.size > 0 %}
16
- {% assign date_format = site.date_format %}
17
- <section id="post-listing">
18
- <header id="post-listing-header">
19
- <h2 id="post-listing-heading">
20
- {{ posts.list_title | default: "Posts" }}
21
- </h2> <!-- #post-listing-heading -->
22
- </header> <!-- #post-listing-header -->
23
- <ul class="post-list">
24
- {% for post in posts %}
25
- <li class="post-item">
26
- <span class="post-meta">{{ post.date | date: date_format }}</span>
27
- <h3>
28
- <a class="post-link" href="{{ post.url | relative_url }}">
29
- {{ post.title | escape }}
30
- </a>
31
- </h3>
32
- {%- if site.show_excerpts -%}
33
- {{ post.excerpt }}
34
- {% endif %}
35
- </li> <!-- .post-item -->
36
- {% endfor %}
37
- </ul> <!-- .post-list -->
38
- </section> <!-- #post-listing -->
39
- {%- endif -%}
9
+ {%- include post-listing.html -%}
data/_layouts/page.html CHANGED
@@ -4,32 +4,49 @@ layout: default
4
4
 
5
5
  <section id="content">
6
6
  <header id="page-header">
7
- {% if page.title %}
8
- <h2 id="page-title">
9
- {{ page.title }}
10
- </h2> <!-- #page-title -->
11
- {% endif %}
12
-
13
- {% if page.subtitle %}
14
- <p id="page-subtitle">
15
- {{ page.subtitle }}
16
- </p> <!-- #page-subtitle -->
17
- {% endif %}
18
-
19
- {% if page.author %}
20
- <p id="page-author">
21
- {{ page.author }}
22
- </p> <!-- #page-author -->
23
- {% endif %}
24
-
25
- {% if page.date %}
26
- <p id="page-date">
27
- {{ page.date }}
28
- </p> <!-- #page-date -->
29
- {% endif %}
7
+
8
+ {%- if page.title -%}
9
+
10
+ <h2 id="page-title">
11
+
12
+ {{- page.title -}}
13
+
14
+ </h2> <!-- #page-title -->
15
+
16
+ {%- endif -%}
17
+
18
+ {%- if page.subtitle -%}
19
+
20
+ <p id="page-subtitle">
21
+
22
+ {{- page.subtitle -}}
23
+
24
+ </p> <!-- #page-subtitle -->
25
+
26
+ {%- endif -%}
27
+
28
+ {%- if page.author -%}
29
+
30
+ <p id="page-author">
31
+
32
+ {{- page.author -}}
33
+
34
+ </p> <!-- #page-author -->
35
+
36
+ {%- endif -%}
37
+
38
+ {%- if page.date -%}
39
+
40
+ <p id="page-date">
41
+
42
+ {{- page.date -}}
43
+
44
+ </p> <!-- #page-date -->
45
+
46
+ {%- endif -%}
47
+
30
48
  </header>
31
49
 
32
- <article>
33
- {{ content }}
34
- </article>
50
+ {{- content -}}
51
+
35
52
  </section> <!-- #content -->
data/_layouts/post.html CHANGED
@@ -2,36 +2,55 @@
2
2
  layout: default
3
3
  ---
4
4
 
5
- {% assign date_format = site.date_format %}
5
+ {%- assign date_format = site.date_format -%}
6
6
 
7
7
  <section id="content">
8
8
  <header id="page-header">
9
- {% if page.title %}
10
- <h2 id="page-title">
11
- {{ page.title }}
12
- </h2> <!-- #page-title -->
13
- {% endif %}
14
-
15
- {% if page.subtitle %}
16
- <p id="page-subtitle">
17
- {{ page.subtitle }}
18
- </p> <!-- #page-subtitle -->
19
- {% endif %}
20
-
21
- {% if page.author %}
22
- <p id="page-author">
23
- {{ page.author }}
24
- </p> <!-- #page-author -->
25
- {% endif %}
26
-
27
- {% if page.date %}
28
- <p id="page-date">
29
- {{ page.date | date: date_format }}
30
- </p> <!-- #page-date -->
31
- {% endif %}
9
+
10
+ {%- if page.title -%}
11
+
12
+ <h2 id="page-title">
13
+
14
+ {{- page.title -}}
15
+
16
+ </h2> <!-- #page-title -->
17
+
18
+ {%- endif -%}
19
+
20
+ {%- if page.subtitle -%}
21
+
22
+ <p id="page-subtitle">
23
+
24
+ {{- page.subtitle -}}
25
+
26
+ </p> <!-- #page-subtitle -->
27
+
28
+ {%- endif -%}
29
+
30
+ {%- if page.author -%}
31
+
32
+ <p id="page-author">
33
+
34
+ {{- page.author -}}
35
+
36
+ </p> <!-- #page-author -->
37
+
38
+ {%- endif -%}
39
+
40
+ {%- if page.date -%}
41
+
42
+ <p id="page-date">
43
+
44
+ {{- page.date | date: date_format -}}
45
+
46
+ </p> <!-- #page-date -->
47
+
48
+ {%- endif -%}
49
+
50
+ {%- include series.html -%}
51
+
32
52
  </header> <!-- #page-header -->
33
53
 
34
- <article class="content">
35
- {{ content }}
36
- </article>
54
+ {{- content -}}
55
+
37
56
  </section>
@@ -14,3 +14,8 @@ $text-grey-color: #111111;
14
14
  $menu-background-color: $ubuntu-orange-color !default;
15
15
  $menu-text-color: $white-color !default;
16
16
  $menu-separator-color: $warm-grey-color !default;
17
+
18
+
19
+ // Default Colors
20
+ $primary-text-color: $black-color !default;
21
+ $secondary-text-color: $warm-grey-color !default;
@@ -0,0 +1,3 @@
1
+ .list-style-none {
2
+ list-style: none;;
3
+ }
@@ -1,5 +1,6 @@
1
1
  @import "base/all";
2
2
 
3
+ @import "components/list-style-none";
3
4
  @import "layout/justified-p";
4
5
 
5
6
  #layout {
@@ -13,4 +14,10 @@
13
14
  right: auto;
14
15
  }
15
16
  }
17
+
18
+ .post-excerpt {
19
+ p {
20
+ margin: 0;
21
+ }
22
+ }
16
23
  }
@@ -1,4 +1,4 @@
1
1
  ---
2
2
  ---
3
3
 
4
- @import "partials/base";
4
+ @import "themes/simpleton";
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-theme-simpleton
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Anatoli Wagner
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-03-20 00:00:00.000000000 Z
11
+ date: 2021-06-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll
@@ -38,6 +38,20 @@ dependencies:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
40
  version: '2.0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: webrick
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '1.0'
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '1.0'
41
55
  - !ruby/object:Gem::Dependency
42
56
  name: rake
43
57
  requirement: !ruby/object:Gem::Requirement
@@ -62,10 +76,13 @@ files:
62
76
  - LICENSE.md
63
77
  - README.md
64
78
  - _config.yml
79
+ - _includes/copyright.html
65
80
  - _includes/footer.html
66
81
  - _includes/head.html
67
82
  - _includes/header.html
68
83
  - _includes/menu.html
84
+ - _includes/post-listing.html
85
+ - _includes/series.html
69
86
  - _layouts/default.html
70
87
  - _layouts/home.html
71
88
  - _layouts/page.html
@@ -83,6 +100,7 @@ files:
83
100
  - _sass/base/_normalize.scss
84
101
  - _sass/base/_typography.scss
85
102
  - _sass/components/_hero.scss
103
+ - _sass/components/_list-style-none.scss
86
104
  - _sass/components/_nav.scss
87
105
  - _sass/components/_text-align.scss
88
106
  - _sass/layout/_gallery.scss
@@ -108,16 +126,16 @@ require_paths:
108
126
  - lib
109
127
  required_ruby_version: !ruby/object:Gem::Requirement
110
128
  requirements:
111
- - - ">="
129
+ - - "~>"
112
130
  - !ruby/object:Gem::Version
113
- version: '0'
131
+ version: 3.pre.0
114
132
  required_rubygems_version: !ruby/object:Gem::Requirement
115
133
  requirements:
116
134
  - - ">="
117
135
  - !ruby/object:Gem::Version
118
136
  version: '0'
119
137
  requirements: []
120
- rubygems_version: 3.2.13
138
+ rubygems_version: 3.2.18
121
139
  signing_key:
122
140
  specification_version: 4
123
141
  summary: A very simple jekyll theme with almost no css.