klst-theme 0.1.7 → 0.1.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c9bf54a0b026ddc4b20d51dc52b86416af422245d63bf8047a96b6c6f715ac2d
4
- data.tar.gz: cdf9d37c80c71f1761c17084c3f27afdf62119d27d13d96ab0e68212f6e87e5c
3
+ metadata.gz: c0847049009ba71da2b4117c5f37be7b7f567ae941ab7f093defca9cba9b022d
4
+ data.tar.gz: 69fa1114bd0155cb64a5b8197ae061fdf4b41473caa0f6144c48658710b47803
5
5
  SHA512:
6
- metadata.gz: 168e6fa698eabaa66ff584487cd8231233fd8258b86de2c7fb78e4c5e7c7afdd1f73b6b74b44634548ac2fa3f0d1f998b633867debf22f76a6dc0eec8ea862bd
7
- data.tar.gz: b587c6101555ecf7b0ac1a838aa193fe251843e7469a515e633e275fea6c8591146e73ac09e95f4d0ae18019d58aa2be5df1f8c22eeeacd59bdde85d39ee57d2
6
+ metadata.gz: b23e96016b33704d1361ed04145ddb6f1100fd75bdeaf883c4585db4b3d2e3b1278e4ee892994c8935212d2cc26673769fa93d3aabc503accefa3a3f380eeb7e
7
+ data.tar.gz: 3218ccd752bdb10a33828586099b898888e73193d2774ad8e26b01a9a39e69e59ad0d37d825a2cf6bf62e01e25ffe0ca39d79a58f5e9b7fdd801379610352ccf
data/_config.yml CHANGED
@@ -8,6 +8,28 @@ markdown: kramdown
8
8
  url: ""
9
9
  logo: "/assets/svg/logo.svg"
10
10
 
11
+ #used for url determination in archives
12
+ postsprefix: "posts"
13
+ #prefix posts, cannot use the variable as declared above inside config
14
+ collections:
15
+ posts:
16
+ output: true
17
+ permalink: "/posts/:year/:month/:day/:title:output_ext"
18
+
19
+ #default frontmatters
20
+ defaults:
21
+ -
22
+ scope:
23
+ path: ""
24
+ values:
25
+ layout: "page"
26
+ -
27
+ scope:
28
+ path: "_posts"
29
+ values:
30
+ layout: "post"
31
+ author: "Unbekannt"
32
+
11
33
  plugins:
12
34
  - jekyll-paginate
13
35
  - jekyll-archives
@@ -21,18 +43,12 @@ jekyll-archives:
21
43
  year: "archive-year"
22
44
  month: "archive-month"
23
45
  permalinks:
24
- year: '/:year/'
25
- month: '/:year/:month/'
26
- day: '/:year/:month/:day/'
27
- tag: '/tag/:name/'
28
- category: '/category/:name/'
46
+ year: 'posts/:year/'
47
+ month: 'posts/:year/:month/'
48
+ day: 'posts/:year/:month/:day/'
49
+ tag: 'posts/tag/:name/'
50
+ category: 'posts/category/:name/'
29
51
 
30
52
  #future: true
31
53
 
32
- defaults:
33
- - scope:
34
- path: ""
35
- values:
36
- layout: "page"
37
-
38
54
  exclude: ['compile.sh', 'LICENSE', 'README.md']
@@ -0,0 +1,32 @@
1
+ <div class="container">
2
+ <div class="row">
3
+ <div class="column">
4
+ {% include nav.html %}
5
+ </div>
6
+ </div>
7
+ <div class="row">
8
+ <div class="column -lg-3">
9
+ <aside class="--padding-4">
10
+ {%include sidebar.html %}
11
+ </aside>
12
+ </div>
13
+ <div class="column -lg-9 -fluid --padding-2">
14
+ <div class="row">
15
+ <div class="content">
16
+ <div class="container -fluid">
17
+ <h1>{{ page.title }}</h1>
18
+ <p class="post-meta">
19
+ <span class="author">von {{ page.author }},</span>
20
+ <span class="date">{{ page.date | date: '%m.%d.%Y' }}</span>
21
+ </p>
22
+ {{ content }}
23
+ {% include logo.html %}
24
+ </div>
25
+ </div>
26
+ </div>
27
+ <div class="row">
28
+ {% include footer.html %}
29
+ </div>
30
+ </div>
31
+ </div>
32
+ </div>
@@ -1,5 +1,5 @@
1
1
  <footer>
2
2
  <div class="content --padding-left-4">
3
- 2025 | <a href="/impressum">{{site.organisation}}</a>
3
+ {{'now' | date: "%Y"}} | <a href="/impressum">{{site.organisation}}</a>
4
4
  </div>
5
5
  </footer>
data/_includes/posts.html CHANGED
@@ -2,8 +2,11 @@
2
2
 
3
3
  {% for post in paginator.posts %}
4
4
  <h1><a href="{{ post.url }}">{{ post.title }}</a></h1>
5
- <p class="author">
6
- <span class="date">{{ post.date }}</span>
5
+ <p class="post-meta">
6
+ {{% if post.author %}}
7
+ <span class="author">von {{ post.author }},</span>
8
+ {{% endif %}}
9
+ <span class="date">{{ post.date | date: '%m.%d.%Y' }}</span>
7
10
  </p>
8
11
  <div class="content">
9
12
  {{ post.content }}
data/_includes/year.html CHANGED
@@ -7,7 +7,7 @@
7
7
 
8
8
  {% if month != next_month %}
9
9
  {% if forloop.index != 1 %}</div>{% endif %}
10
- <div><a href="/{{ page.date | date: "%Y" }}/{{month}}"><h2>{{post.date | date: '%B' }}</h2></a>
10
+ <div><a href="{{month}}"><h2>{{post.date | date: '%B' }}</h2></a>
11
11
  {% endif %}
12
12
 
13
13
  {% endfor %}
data/_includes/years.html CHANGED
@@ -1,5 +1,3 @@
1
- <h1> Archive of posts by year </h1>
2
-
3
1
  <ul>
4
2
  {% for post in site.posts %}
5
3
  {% capture year %}{{ post.date | date: '%Y' }}{% endcapture %}
@@ -9,7 +7,7 @@
9
7
  {% comment %} if the years dont match we have a new year, if it's not the first occurance close the div now {% endcomment %}
10
8
 
11
9
  {% if forloop.index != 1 %}</div>{% endif %}
12
- <div><a href="/{{year}}"><h2> {{post.date | date: '%Y' }}</h2></a>
10
+ <div><a href="/{{site.postsprefix}}/{{year}}"><h2> {{post.date | date: '%Y' }}</h2></a>
13
11
  {% endif %}
14
12
 
15
13
  {% endfor %}
@@ -0,0 +1,9 @@
1
+ <!DOCTYPE html>
2
+ <html lang="en" class="light">
3
+ <head>
4
+ {% include head.html %}
5
+ </head>
6
+ <body>
7
+ {% include body-post.html %}
8
+ </body>
9
+ </html>
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: klst-theme
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.7
4
+ version: 0.1.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - neko
@@ -63,6 +63,7 @@ files:
63
63
  - _data/meta/metadata.yml
64
64
  - _data/meta/navigation.yml
65
65
  - _data/meta/styles.yml
66
+ - _includes/body-post.html
66
67
  - _includes/body.html
67
68
  - _includes/footer.html
68
69
  - _includes/head.html
@@ -78,6 +79,7 @@ files:
78
79
  - _layouts/archive-year.html
79
80
  - _layouts/archive.html
80
81
  - _layouts/page.html
82
+ - _layouts/post.html
81
83
  - _layouts/posts.html
82
84
  - assets/css/ash.css
83
85
  - assets/css/ash.css.map
@@ -86,7 +88,7 @@ files:
86
88
  - assets/css/main.css
87
89
  - assets/js/highlight.min.js
88
90
  - assets/svg/logo.svg
89
- homepage: https://klst.at/
91
+ homepage: https://https://codeberg.org/nekosilvertail/klst-theme/
90
92
  licenses:
91
93
  - MIT
92
94
  metadata: {}