voppe-jekyll-theme 0.2.0 → 0.2.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: e8a011186094e901e0909d43b268a65c8ae1f1f0
4
- data.tar.gz: 293db92c39f1d5c6bb18f903e08b4f1788f04da3
3
+ metadata.gz: 551e05157e160c237fbdcdad65bd50d03b0e76cd
4
+ data.tar.gz: 28cbeb10554ab022eb434b19fde724f93b2e5061
5
5
  SHA512:
6
- metadata.gz: d051bb522c7fccd9fdfdb7cd4f27613a12348f4f1b2ee659467ff9e2e93c255a459afbb8cfd1c8eabca7daf6166e91908b0613d62df6cf295c6cfdc93dba2bd4
7
- data.tar.gz: 30d890027643ed1d097d65434d67b2c0f3a0f03a1814ea14396b7f9e55d8e1773ed5000ff9993353fbcd4c18d000f3a531873fd25ccd05962606cd61c395feaf
6
+ metadata.gz: 541cbbc29bafc58c0180346c08a5582d0973f620b55c477edc8b5d844a8acbf4287a2d394c1c775f799ffccfcda8d15b147c33321ade0c5aadf186c74be48f2d
7
+ data.tar.gz: 4e4c98ad9d5853847d5996198a03725575844e9bc799ae459b5fda319d998e8d5f4a97e98a8d1bcded0f21ea15c60def94081fd23f9934ae5f53d08cb64fd279
data/LICENSE.txt CHANGED
@@ -1,6 +1,6 @@
1
1
  The MIT License (MIT)
2
2
 
3
- Copyright (c) 2016 Deyoppe
3
+ Copyright (c) 2016 Voppe
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
data/README.md CHANGED
@@ -1,48 +1,58 @@
1
- # voppe
1
+ voppe-jekyll-theme
2
+ ===
2
3
 
3
- Welcome to your new Jekyll theme! In this directory, you'll find the files you need to be able to package up your theme into a gem. Put your layouts in `_layouts`, your includes in `_includes` and your sass in `_sass`. To experiment with this code, add some sample content and run `bundle exec jekyll serve` – this directory is setup just like a Jekyll site!
4
-
5
- TODO: Delete this and the text above, and describe your gem
6
-
7
- ## Installation
4
+ ## Setup
8
5
 
9
6
  Add this line to your Jekyll site's Gemfile:
10
7
 
11
8
  ```ruby
12
- gem "voppe"
9
+ gem "voppe-jekyll-theme"
13
10
  ```
14
11
 
15
12
  And add this line to your Jekyll site's `_config.yml`:
16
13
 
17
14
  ```yaml
18
- theme: voppe
15
+ theme: voppe-jekyll-theme
19
16
  ```
20
17
 
21
- And then execute:
22
-
23
- $ bundle
24
-
25
- Or install it yourself as:
26
-
27
- $ gem install voppe
18
+ Execute installation:
19
+ ```
20
+ $ bundle install
21
+ ```
28
22
 
29
23
  ## Usage
30
24
 
31
- TODO: Write usage instructions here. Describe your available layouts, includes, and/or sass.
25
+ ### Menu
26
+
27
+ Create a file `menu.yml` in your `_data` folder. The file's structure is the following
32
28
 
33
- ## Contributing
29
+ ``` yaml
30
+ items:
31
+ *menuitems*
32
+ footer:
33
+ *menuitems*
34
+ ```
34
35
 
35
- Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/hello. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
36
+ Where `menuitems` is an array of items with the following structure
36
37
 
37
- ## Development
38
+ ```yaml
39
+ *section*:
40
+ # If not specified defaults to '/*section*/'
41
+ link: string
42
+
43
+ # Defaults to medium
44
+ size: medium|large
38
45
 
39
- To set up your environment to develop this theme, run `bundle install`.
46
+ # The text to show on item hover
47
+ label: string
40
48
 
41
- You theme is setup just like a normal Jelyll site! To test your theme, run `bundle exec jekyll serve` and open your browser at `http://localhost:4000`. This starts a Jekyll server using your theme. Add pages, documents, data, etc. like normal to test your theme's contents. As you make modifications to your theme and to your content, your site will regenerate and you should see the changes in the browser after a refresh, just like normal.
49
+ # A fontawesome icon name (e.g. 'envelope')
50
+ icon: string
42
51
 
43
- When your theme is released, only the files in `_layouts`, `_includes`, and `_sass` tracked with Git will be released.
52
+ # A background image link
53
+ background: string
54
+ ```
44
55
 
45
56
  ## License
46
57
 
47
- The theme is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
48
-
58
+ The theme is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
@@ -0,0 +1,6 @@
1
+ <article>
2
+ {% if page.title %}
3
+ <h1>{{ page.title }}</h1>
4
+ {% endif %}
5
+ {{ content }}
6
+ </article>
@@ -15,11 +15,7 @@
15
15
  <body>
16
16
  {% if site.data.menu %} {% include menu.html %} {% endif %}
17
17
 
18
- <main>
19
-
20
- {{ content }}
21
-
22
- </main>
18
+ {{ content }}
23
19
 
24
20
  <script src="{{site.baseurl}}/assets/scripts/index.js"></script>
25
21
  </body>
@@ -0,0 +1,6 @@
1
+ ---
2
+ layout: default
3
+ ---
4
+ <main class="jumbotron">
5
+ {% include post.html %}
6
+ </main>
data/_layouts/list.html CHANGED
@@ -1,13 +1,15 @@
1
1
  ---
2
2
  layout: default
3
3
  ---
4
- <nav class="list">
5
- {% for post in site[page.collection] %}
6
- <a href="{{ post.url }}">
7
- <section class="card">
8
- <h1>{{ post.title }}</h1>
9
- {{ post.excerpt }}
10
- </section>
11
- </a>
12
- {% endfor %}
13
- </nav>
4
+ <main>
5
+ <nav class="list">
6
+ {% for post in site[page.collection] %}
7
+ <a href="{{ post.url }}">
8
+ <section class="card">
9
+ <h1>{{ post.title }}</h1>
10
+ {{ post.excerpt }}
11
+ </section>
12
+ </a>
13
+ {% endfor %}
14
+ </nav>
15
+ </main>
data/_layouts/post.html CHANGED
@@ -1,7 +1,6 @@
1
1
  ---
2
2
  layout: default
3
3
  ---
4
- <article>
5
- <h1>{{ page.title }}</h1>
6
- {{ content }}
7
- </article>
4
+ <main>
5
+ {% include post.html %}
6
+ </main>
data/_sass/app.scss CHANGED
@@ -85,5 +85,12 @@ html, body {
85
85
  justify-content: center;
86
86
  align-content: flex-start;
87
87
  align-items: flex-start;
88
+
89
+ &.jumbotron {
90
+ text-align: center;
91
+ align-content: center;
92
+ align-items: center;
93
+ font-size: 6em;
94
+ }
88
95
  }
89
96
  }
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: voppe-jekyll-theme
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - voppe
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-10-30 00:00:00.000000000 Z
11
+ date: 2016-10-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll
@@ -64,7 +64,9 @@ files:
64
64
  - _includes/menu.html
65
65
  - _includes/menuitem.html
66
66
  - _includes/menusection.html
67
+ - _includes/post.html
67
68
  - _layouts/default.html
69
+ - _layouts/jumbotron.html
68
70
  - _layouts/list.html
69
71
  - _layouts/post.html
70
72
  - _sass/_base.scss