jekyll-theme-bluelib 0.1.1 → 0.2.0

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: e5e3549132a8b33bef012c23fa543a4de06ea8731c4a030b0a8a78b68a2cddae
4
- data.tar.gz: 68b43f6da5006d61f5927b973634e10b35f14f253dff4347ffa814896c87632f
3
+ metadata.gz: fc6882fa2bbf73b9e9c70e3f5f6a18ae524ff94d474ea8003a2f4764cf4e2d18
4
+ data.tar.gz: 9e50601e37176bf90c978e2a713b2cf8435f96b5a71e927b67ac6a5beb2b67fb
5
5
  SHA512:
6
- metadata.gz: fa33be875bbf7d95d6f7a8ceb761f6b7452fc5a0e8cebc0a49af1460cc9e3e80fed02dc8ce25b7f8c6790b639fbba9d12e2e16e0552741d2999b53fdb3f846a4
7
- data.tar.gz: 764f0a603dd7cd266ffa74adaa170a653115f013c7aab5c7e71276b2486362848c760986f7aae6c84ef35c3506ae7e31f02b74fdd5cd982f9a3679139cd1fa93
6
+ metadata.gz: 3528a74ab837e2b91e12aca9a0f85392cd674684685a2312c0136012d9b5b4f6defbe6b613e69c9f3db0aa08a567f194ad00c66134d00dd5ccca2421b25e06d6
7
+ data.tar.gz: c84e62b809c926d8f9f57578a6bdc9bba5edff7e6dd51bc36a206a703529dde5ad994d748cbb13d932af1e94baa930bb329b5f7ba90236ebdf0be6c834a05411
@@ -0,0 +1,17 @@
1
+ <section class="panel post-summary">
2
+ <div class="post-title">
3
+ <a href="{{ post.url }}">
4
+ {{ post.title }}
5
+ </a>
6
+ </div>
7
+ <div class="post-date">
8
+ <time>
9
+ {{ post.date }}
10
+ </time>
11
+ </div>
12
+ <div class="post-tags">
13
+ {% for tag in post.tags %}
14
+ {% include tag.html %}
15
+ {% endfor %}
16
+ </div>
17
+ </section>
@@ -0,0 +1,5 @@
1
+ <div class="panel tag">
2
+ <a href="{{ site.url }}/#tag-{{ tag }}">
3
+ {{ tag }}
4
+ </a>
5
+ </div>
data/_layouts/base.html CHANGED
@@ -5,7 +5,9 @@ layout: default
5
5
  <div class="layout layout-threecol">
6
6
  <div class="layout-threecol-center">
7
7
  <h1>
8
- {{ site.title }}
8
+ <a href="{{ site.url }}">
9
+ {{ site.title }}
10
+ </a>
9
11
  </h1>
10
12
  {{ content }}
11
13
  </div>
data/_layouts/box.html CHANGED
@@ -5,4 +5,3 @@ layout: base
5
5
  <section class="panel panel-box">
6
6
  {{ content }}
7
7
  </section>
8
-
@@ -4,13 +4,13 @@
4
4
  <link rel="stylesheet" href="https://gh.steffo.eu/bluelib/src/targets/skeleton.root.css" type="text/css"/>
5
5
  <link rel="stylesheet" href="https://gh.steffo.eu/bluelib/src/targets/{{ site.bluelib }}.root.css" type="text/css"/>
6
6
  <link rel="stylesheet" href="https://gh.steffo.eu/bluelib/src/targets/{{ page.bluelib }}.root.css" type="text/css"/>
7
+ <link rel="stylesheet" href="{% link /assets/css/bluelib-jekyll.css %}"/>
7
8
  {% for css in site.extra_css %}
8
- <link rel="stylesheet" href="{{ css }}"/>
9
+ <link rel="stylesheet" href="{% link css %}"/>
9
10
  {% endfor %}
10
- <title>{{ page.title }}</title>
11
+ <title>{{ page.title }} - {{ site.title }}</title>
11
12
  </head>
12
13
  <body>
13
14
  {{ content }}
14
15
  </body>
15
16
  </html>
16
-
@@ -0,0 +1,43 @@
1
+ ---
2
+ layout: base
3
+ ---
4
+
5
+ <section class="panel panel-box">
6
+ <h2>
7
+ {{ page.title }}
8
+ </h2>
9
+ {{ content }}
10
+ </section>
11
+
12
+ <section class="panel panel-box">
13
+ <h2>
14
+ Latest posts
15
+ </h2>
16
+ <p>
17
+ These are the latest posts in the blog in reverse chronological order.
18
+ </p>
19
+ {% for post in site.posts %}
20
+ {% include post-summary.html %}
21
+ {% endfor %}
22
+ </section>
23
+
24
+ <section class="panel panel-box">
25
+ <h2>
26
+ Posts by tag
27
+ </h2>
28
+ <p>
29
+ These are all the posts in the blog, grouped by their tag.
30
+ </p>
31
+ <section class="chapter">
32
+ {% for tag_pair in site.tags %}
33
+ <section id="tag-{{ tag_pair[0] }}" class="panel panel-box">
34
+ <h3>
35
+ {{ tag_pair[0] }}
36
+ </h3>
37
+ {% for post in tag_pair[1] %}
38
+ {% include post-summary.html %}
39
+ {% endfor %}
40
+ </section>
41
+ {% endfor %}
42
+ </section>
43
+ </section>
data/_layouts/post.html CHANGED
@@ -1,10 +1,25 @@
1
1
  ---
2
- layout: box
2
+ layout: base
3
3
  ---
4
4
 
5
- <h2>
6
- {{ page.title }}
7
- </h2>
8
- {{ content }}
9
-
5
+ <section class="panel panel-box page-info">
6
+ <div class="panel page-date">
7
+ <time>
8
+ {{ page.date }}
9
+ </time>
10
+ </div>
11
+ <div class="page-tags">
12
+ {% for tag in page.tags %}
13
+ {% include tag.html %}
14
+ {% endfor %}
15
+ </div>
16
+ </section>
10
17
 
18
+ <section class="panel panel-box">
19
+ <h2>
20
+ <a href="{{ page.url }}">
21
+ {{ page.title }}
22
+ </a>
23
+ </h2>
24
+ {{ content }}
25
+ </section>
@@ -0,0 +1,69 @@
1
+ .post-summary {
2
+ display: grid;
3
+
4
+ grid-template-areas:
5
+ "title tags"
6
+ "date tags";
7
+ grid-template-columns: auto 1fr;
8
+ grid-template-rows: auto 1fr;
9
+ grid-column-gap: 8px;
10
+ grid-row-gap: 2px;
11
+
12
+ white-space: nowrap;
13
+ }
14
+
15
+ .post-summary > .post-title {
16
+ grid-area: title;
17
+ justify-self: start;
18
+
19
+ font-size: large;
20
+ font-weight: bold;
21
+ }
22
+
23
+ .post-summary > .post-date {
24
+ grid-area: date;
25
+ justify-self: start;
26
+
27
+ font-style: italic;
28
+ font-size: x-small;
29
+
30
+ opacity: 0.7;
31
+ }
32
+
33
+ .post-summary > .post-tags {
34
+ grid-area: tags;
35
+ justify-self: end;
36
+
37
+ display: flex;
38
+ flex-direction: row;
39
+ gap: 4px;
40
+ }
41
+
42
+ .page-info {
43
+ display: flex;
44
+ flex-direction: row;
45
+ gap: 4px;
46
+ justify-content: space-between;
47
+
48
+ font-size: small;
49
+ }
50
+
51
+ .page-info > .page-date {
52
+ display: inline !important;
53
+ margin: 0 !important;
54
+ width: auto !important;
55
+
56
+ justify-self: start;
57
+ }
58
+
59
+ .page-info > .page-tags {
60
+ display: flex;
61
+ flex-direction: row;
62
+ gap: 4px;
63
+ }
64
+
65
+ .tag {
66
+ display: inline !important;
67
+ margin: 0 !important;
68
+ width: auto !important;
69
+ }
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-theme-bluelib
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stefano Pigozzi
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-10-10 00:00:00.000000000 Z
11
+ date: 2021-10-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll
@@ -34,10 +34,14 @@ files:
34
34
  - LICENSE.txt
35
35
  - README.md
36
36
  - _config.yml
37
+ - _includes/post-summary.html
38
+ - _includes/tag.html
37
39
  - _layouts/base.html
38
40
  - _layouts/box.html
39
41
  - _layouts/default.html
42
+ - _layouts/home.html
40
43
  - _layouts/post.html
44
+ - assets/css/bluelib-jekyll.css
41
45
  homepage: https://github.com/Steffo99/jekyll-theme-bluelib
42
46
  licenses:
43
47
  - AGPL-3.0-or-later