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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 33b392163f31005583cc12c3c6f3be0776e45c58
4
- data.tar.gz: 7a2dbbce8bbda7080d4fbd95c38a3742f41cac9a
3
+ metadata.gz: ec730e13abbc65fbbf90dd2fb709a4a77ad96952
4
+ data.tar.gz: 0644c11a2519223b3eeb6f2365c00cb39039c13b
5
5
  SHA512:
6
- metadata.gz: 2c07b7c2b9b66bd89318895f2d4dbf5ee24f70a8e6f7cd80ed3e6029ac6615e925603d0958cb2398430794d9fdecb2e3fad24e64396a1460d2d62b56dde1dc7d
7
- data.tar.gz: b9b7d9411b3b67b331b6e31c5cb0ff8e71441c61660ea35a2dfab0a7105caf0eb24a1930a35ab893d243dbab82648f22650658679f598870a786e3d9dc57cb07
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
- ## Setup
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
- ## Usage
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
- <a href="{{ post.url }}">
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
- {{ post.excerpt }}
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.0
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
@@ -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>