kaschber 0.1.0 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +8 -1
- data/_config.yml +6 -1
- data/_layouts/default.html +2 -1
- data/_layouts/post.html +15 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cf18f059b40be51da4194926e98dc040a3875f70a76c95dbf262d609e25fa19a
|
4
|
+
data.tar.gz: 7df8ec512c8cc4bc15eeb0c987e9b70677218518e7e3c5dc1709aedf4ec2341a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4e7eea72545fff885d44aa0a55f99de965149bd59e6fdcfff06d6cdb26e25de41985b73f93909fae6b58a59539c044a6c93005e31522f2f02858f1101f46d38e
|
7
|
+
data.tar.gz: e2edc698ec406a5c8d345fcd69ddfcaddec0dabf68382d0f59a6f09103e4795f4f218ea84ad29d42a95dc61ddca7801295368e5788c41253c18f698f669a32f0
|
data/README.md
CHANGED
@@ -42,7 +42,7 @@ class: 'home-template'
|
|
42
42
|
If you have a custom index.html, you will have to copy the index.html from the Git repository and add your changes manually.
|
43
43
|
|
44
44
|
## Customisation
|
45
|
-
You can specifiy these customisation options in your `_config.yml`
|
45
|
+
You can specifiy these customisation options in your `_config.yml` for site-wide options
|
46
46
|
|
47
47
|
| Config | Default | Options |
|
48
48
|
|-------------------------|-------------------|-----------------------------------|
|
@@ -54,6 +54,13 @@ You can specifiy these customisation options in your `_config.yml`
|
|
54
54
|
| color_scheme | Auto | Light, Dark, Auto |
|
55
55
|
| post_image_style | Wide | Wide, Full, Small, Hidden |
|
56
56
|
|
57
|
+
|
58
|
+
You can specifiy these additional customisation options per post or in the default section for posts `_config.yml`
|
59
|
+
| Config | Default | Options |
|
60
|
+
|-------------------------|-------------------|-----------------------------------|
|
61
|
+
| show_recent_posts_footer | True | True, False |
|
62
|
+
| post_image_style | Wide | Wide, Full, Small, Hidden |
|
63
|
+
|
57
64
|
Kaschber also features several points to inject your custom code into the template. You can create
|
58
65
|
- `_includes/custom-head.html` to include custom css or any other tags which get rendered in the head section
|
59
66
|
- `_includes/custom-js.html` to include any additional Javascript at the bottom of your page
|
data/_config.yml
CHANGED
data/_layouts/default.html
CHANGED
@@ -84,7 +84,8 @@
|
|
84
84
|
<nav class="site-footer-nav">
|
85
85
|
{% include footer-nav.html %}
|
86
86
|
</nav>
|
87
|
-
<div
|
87
|
+
<div>Powered by <a href="https://jekyllrb.com/" target="_blank" rel="noopener">Jekyll</a>
|
88
|
+
& <a href="https://github.com/Agraphie/kaschber" target="_blank" rel="noopener">Kaschber</a></div>
|
88
89
|
</div>
|
89
90
|
</footer>
|
90
91
|
</div>
|
data/_layouts/post.html
CHANGED
@@ -105,5 +105,19 @@ disqus: false
|
|
105
105
|
|
106
106
|
{{content}}
|
107
107
|
</section>
|
108
|
-
</article>
|
109
108
|
</main>
|
109
|
+
|
110
|
+
{% if page.show_recent_posts_footer %}
|
111
|
+
|
112
|
+
{% assign posts = paginator.posts | default: site.posts | where_exp: "item", "item.id != page.id" %}
|
113
|
+
{% if posts %}
|
114
|
+
<aside class="read-more-wrap outer">
|
115
|
+
<div class="read-more inner">
|
116
|
+
{% for post in posts limit: 3 %}
|
117
|
+
{% include post-card.html post=post %}
|
118
|
+
{% endfor %}
|
119
|
+
</div>
|
120
|
+
</aside>
|
121
|
+
{% endif %}
|
122
|
+
{% endif %}
|
123
|
+
|