kaschber 0.1.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +45 -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: a88f803ee2cb5efd65c2e8a0d76683f37ab1d3baf7c7065f926dddcf075e9b54
|
4
|
+
data.tar.gz: da0ddb14e62a2fb03586cf2da827c6d87206ffdd2f6474ee23b6bade35a50ce5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 27e4cdf7c9ace009056bd40f4034ff71fa1d534a18f6c25450b6a2afdad21243a0850d4924cd95897f00aab0c141437bed942ddc24646644e0d283492fcffc8d
|
7
|
+
data.tar.gz: 62e5aa2bce543d27b0caf204ac8cefac0301162b2ae9fea2fd5c4136dae5def413073e4b5aae73747e2c22447a65354694044452a3610700b0abceeba17073bc
|
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,14 @@ 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
|
+
| custom_excerpt | "" | <Your custom excerpt shown on the page and the post card> |
|
64
|
+
|
57
65
|
Kaschber also features several points to inject your custom code into the template. You can create
|
58
66
|
- `_includes/custom-head.html` to include custom css or any other tags which get rendered in the head section
|
59
67
|
- `_includes/custom-js.html` to include any additional Javascript at the bottom of your page
|
@@ -74,6 +82,24 @@ cover: False
|
|
74
82
|
---
|
75
83
|
```
|
76
84
|
|
85
|
+
Then include the following Jekyll config in your `_config.yml`
|
86
|
+
```
|
87
|
+
collections:
|
88
|
+
authors:
|
89
|
+
output: true
|
90
|
+
|
91
|
+
defaults:
|
92
|
+
- scope:
|
93
|
+
path: ""
|
94
|
+
type: "authors"
|
95
|
+
values:
|
96
|
+
layout: author
|
97
|
+
current: author
|
98
|
+
cover: false
|
99
|
+
class: 'author-template'
|
100
|
+
label: Author
|
101
|
+
```
|
102
|
+
|
77
103
|
## Tags
|
78
104
|
To create tags specifically, create a folder `_tags` and insert your tags there as markdown or html file. E.g.
|
79
105
|
```
|
@@ -82,6 +108,24 @@ description: Some of the greatest words ever spoken.
|
|
82
108
|
cover: assets/images/speeches.jpg
|
83
109
|
```
|
84
110
|
|
111
|
+
Then include the following Jekyll config in your `_config.yml`
|
112
|
+
```
|
113
|
+
collections:
|
114
|
+
tags:
|
115
|
+
output: true
|
116
|
+
|
117
|
+
defaults:
|
118
|
+
- scope:
|
119
|
+
path: ""
|
120
|
+
type: "tags"
|
121
|
+
values:
|
122
|
+
layout: tag
|
123
|
+
current: tag
|
124
|
+
cover: false
|
125
|
+
class: 'tag-template'
|
126
|
+
label: Tag
|
127
|
+
```
|
128
|
+
|
85
129
|
# Contribute
|
86
130
|
If you would like to contribute, please keep the files as closely as possible to the original Ghost handlebar files. This will make maintenance easier. This is also the reason why the files haven't been really broken down into smaller parts.
|
87
131
|
|
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 != false %}
|
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
|
+
|