mpiwg-jekyll-theme 0.2.2 → 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a65bb0958c084a1c7eb584673a3f1b8284dfb9b9ee9f0f4818c3385ef2595a20
4
- data.tar.gz: c1d454a947d005aa294ab0858946bacf7af9627890be589895a670455f8ce7f0
3
+ metadata.gz: 03d17f72fb23c417b44276b949a39aa17de6dcfde4c6529b33c7ad6c48e4801b
4
+ data.tar.gz: cf76411c30b596c9a39249b17e5c6eb60c03a719faf460f7c658d1dbf0e06bb9
5
5
  SHA512:
6
- metadata.gz: 0a11293d13eac62681fa4584865a78314d07b4086d7e2f5b8323fa0f448848fdd6a3d05c31dd116016a1dcc5a6f2ec039dcf0f676769e0acd819ee6f6a4e0268
7
- data.tar.gz: e3d19528097e51128a33c8633d3b0be4b689ffae023f1a808c61abdc502cd6b7d38ec3072052096ac6ff41d478e8ebe5b12d072799b8ea13352870a7d4605b4d
6
+ metadata.gz: c572bfdd7e62284c34563988cf35b5ee7e8ef19b1081fc4505de9daa04030f2d37315d939f3e7c404cdd0cde33507c656a0d4969863b9b4c98a68447c38b98f5
7
+ data.tar.gz: c6551959872e62a85665520158185e22b40c33010ac405884273b820b6bf08cd28ca2dd07628d232a297992a0048e89c7f71e4d8507df94160f19878798f24d8
data/README.md CHANGED
@@ -14,7 +14,7 @@ To add a custom directory to your theme-gem, please edit the regexp in `mpiwg-je
14
14
  1. Bump version number in `mpiwg-jekyll-theme.gemspec` (use semantic versioning)
15
15
  2. Commit all your changes to git
16
16
  3. Build theme with `gem build mpiwg-jekyll-theme`
17
- 4. Publish theme with `gem push jekyll-theme-awesome-*.gem`
17
+ 4. Publish theme with `gem push mpiwg-jekyll-theme-*.gem`
18
18
 
19
19
 
20
20
  ## Installation
@@ -0,0 +1,25 @@
1
+ ---
2
+ layout: default
3
+ title: People
4
+ permalink: /people
5
+ titleimage: /assets/img/sphaera-img.jpg
6
+ ---
7
+
8
+ {{content}}
9
+
10
+ <ul class="peoplelist">
11
+ {% for person in site.people %}
12
+ <li>
13
+ <div class="image">
14
+ <img width="220px" src="{{ person.image }}" >
15
+ </div>
16
+ <div class="details">
17
+ <h3><a href="{{ person.profile }}">{{ person.name }}</a></h3>
18
+ <h4>{{ person.position }}</h4>
19
+ <p>
20
+ {{ person.content }}
21
+ </p>
22
+ </div>
23
+ </li>
24
+ {% endfor %}
25
+ </ul>
@@ -0,0 +1,17 @@
1
+ module Jekyll
2
+ class RenderIntroBlock < Liquid::Tag
3
+
4
+ def initialize(tag_name, text, tokens)
5
+ super
6
+ @text = text
7
+ end
8
+
9
+ require "kramdown"
10
+ def render(context)
11
+ "<p class='intro'>#{ @text }</p>"
12
+ end
13
+
14
+ end
15
+ end
16
+
17
+ Liquid::Template.register_tag('intro', Jekyll::RenderIntroBlock)
data/assets/main.scss CHANGED
@@ -3,4 +3,18 @@
3
3
 
4
4
  #navbar ul {
5
5
  margin-bottom: 0
6
+ }
7
+
8
+ .intro {
9
+ margin-top: 1em;
10
+ font-size: 1.2rem;
11
+ }
12
+
13
+ .peoplelist {
14
+ li {
15
+ .image {
16
+ float: left;
17
+ margin-right: 1rem;
18
+ }
19
+ }
6
20
  }
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mpiwg-jekyll-theme
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Florian Kräutli
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-11-17 00:00:00.000000000 Z
11
+ date: 2019-11-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll
@@ -66,7 +66,9 @@ files:
66
66
  - _includes/navigation.html
67
67
  - _layouts/default.html
68
68
  - _layouts/page.html
69
+ - _layouts/people.html
69
70
  - _layouts/post.html
71
+ - _plugins/mpiwg-intro.rb
70
72
  - assets/main.scss
71
73
  - assets/mpiwgLogo.png
72
74
  - assets/normalize.css