voppe-jekyll-theme 0.4.0 → 0.4.1
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 +4 -4
- data/README.md +10 -5
- data/_layouts/list.html +14 -2
- metadata +1 -2
- data/_layouts/projects.html +0 -23
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ec730e13abbc65fbbf90dd2fb709a4a77ad96952
|
4
|
+
data.tar.gz: 0644c11a2519223b3eeb6f2365c00cb39039c13b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 10343279fe79df0badf1d2b7b27418b1097371397560122caa3114faeb95028942099d01afbae67b2b0bb890da4b04726a0ed6c3fee9971dbea405dab3e416bd
|
7
|
+
data.tar.gz: 7223e3ad9a8e4a2e7fb8e7bb4489c5eb32f00c252c9a2f33bd29e1cb31a107e6b87f79dd186a327d0db4ef770df459c9c61b83547dfe6ddf03fdc2f19e220bbb
|
data/README.md
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
voppe-jekyll-theme
|
2
2
|
===
|
3
3
|
|
4
|
-
|
4
|
+
# Setup
|
5
5
|
|
6
6
|
Add this line to your Jekyll site's Gemfile:
|
7
7
|
|
@@ -20,12 +20,11 @@ Execute installation:
|
|
20
20
|
$ bundle install
|
21
21
|
```
|
22
22
|
|
23
|
-
|
23
|
+
# Usage
|
24
24
|
|
25
25
|
### Menu
|
26
26
|
|
27
27
|
Create a file `menu.yml` in your `_data` folder. The file's structure is the following
|
28
|
-
|
29
28
|
``` yaml
|
30
29
|
items:
|
31
30
|
*menuitems*
|
@@ -34,7 +33,6 @@ footer:
|
|
34
33
|
```
|
35
34
|
|
36
35
|
Where `menuitems` is an array of items with the following structure
|
37
|
-
|
38
36
|
```yaml
|
39
37
|
*section*:
|
40
38
|
# If not specified defaults to '/*section*/'
|
@@ -44,7 +42,7 @@ Where `menuitems` is an array of items with the following structure
|
|
44
42
|
size: medium|large
|
45
43
|
|
46
44
|
# The text to show on item hover
|
47
|
-
label: string
|
45
|
+
label: string;
|
48
46
|
|
49
47
|
# A fontawesome icon name (e.g. 'envelope')
|
50
48
|
icon: string
|
@@ -53,6 +51,13 @@ Where `menuitems` is an array of items with the following structure
|
|
53
51
|
background: string
|
54
52
|
```
|
55
53
|
|
54
|
+
Remember to update your `_config.yml` file to include your section
|
55
|
+
```yaml
|
56
|
+
collections:
|
57
|
+
*section*:
|
58
|
+
output: true
|
59
|
+
```
|
60
|
+
|
56
61
|
## License
|
57
62
|
|
58
63
|
The theme is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
|
data/_layouts/list.html
CHANGED
@@ -4,10 +4,22 @@ layout: default
|
|
4
4
|
<main>
|
5
5
|
<nav class="list">
|
6
6
|
{% for post in site[page.collection] %}
|
7
|
-
|
7
|
+
{% assign href=post.url %}
|
8
|
+
{% if post.link %}
|
9
|
+
{% assign href=post.link %}
|
10
|
+
{% endif %}
|
11
|
+
<a href="{{ href }}">
|
8
12
|
<section>
|
9
13
|
<h1>{{ post.title }}</h1>
|
10
|
-
|
14
|
+
<div class="content">
|
15
|
+
{{post.excerpt}}
|
16
|
+
</div>
|
17
|
+
<div class="labels">
|
18
|
+
{% for label in post.labels %}
|
19
|
+
{% assign collection=post[label] %}
|
20
|
+
{% include labels.html collection=collection label=label %}
|
21
|
+
{% endfor %}
|
22
|
+
</div>
|
11
23
|
</section>
|
12
24
|
</a>
|
13
25
|
{% endfor %}
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: voppe-jekyll-theme
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- voppe
|
@@ -70,7 +70,6 @@ files:
|
|
70
70
|
- _layouts/jumbotron.html
|
71
71
|
- _layouts/list.html
|
72
72
|
- _layouts/post.html
|
73
|
-
- _layouts/projects.html
|
74
73
|
- _sass/_base.scss
|
75
74
|
- _sass/app.scss
|
76
75
|
- _sass/components/article.scss
|
data/_layouts/projects.html
DELETED
@@ -1,23 +0,0 @@
|
|
1
|
-
---
|
2
|
-
layout: default
|
3
|
-
---
|
4
|
-
<main>
|
5
|
-
<nav class="list">
|
6
|
-
{% for post in site[page.collection] %}
|
7
|
-
<a href="{{ post.url }}">
|
8
|
-
<section>
|
9
|
-
<h1>{{ post.title }}</h1>
|
10
|
-
<div class="content">
|
11
|
-
{{post.content}}
|
12
|
-
</div>
|
13
|
-
<div class="labels">
|
14
|
-
{% for label in post.labels %}
|
15
|
-
{% assign collection=post[label] %}
|
16
|
-
{% include labels.html collection=collection label=label %}
|
17
|
-
{% endfor %}
|
18
|
-
</div>
|
19
|
-
</section>
|
20
|
-
</a>
|
21
|
-
{% endfor %}
|
22
|
-
</nav>
|
23
|
-
</main>
|