jekyll-theme-puzzleduck 1.2.0 → 2.1.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
  SHA1:
3
- metadata.gz: db5464428e710b6e298a3d49d6088dd3afaa0d15
4
- data.tar.gz: 8c5a731e25a09053d89f1c3a4f721020e267ae34
3
+ metadata.gz: 3597ec436f4bcf0a9bcee117c3820c7fa80314d1
4
+ data.tar.gz: b9ce638c1adc3988938d5e2eec159cf6d715b2d8
5
5
  SHA512:
6
- metadata.gz: 9c53974b621234827444524703a39831913ba4dc192ab2d445a2ed719698ac82bebe5e9f44a4b9b3c37cac13f269d38c4f320f9c7447c5e024e3fdd7b10ccd5e
7
- data.tar.gz: 5cfb5378d66dd843503ba795437ddf1e40018fad32b5e02d5ea9e7b10239500a150641cc165f2af153f6e6d32c23db398c64cac5c4c6a0df8ad13c37387932bd
6
+ metadata.gz: 5a2a29dae055047b838e310d27ee66bcaa743f52584572869daa8ab2c237ef79f0228663d8b2763eb4c87a49e68108e81ebe04fe6772a2b521bae6d6fd779cb4
7
+ data.tar.gz: d0ec74b7947e5c7df4342a0f81a1e7ab04c1f0f5a2f56034db30db277b9dd861ec0673b8ddf86909f49a7c3aef982e5ad900958fb43b3b821fa8186c5614a58e
data/README.md CHANGED
@@ -39,6 +39,10 @@ Configure additional links in ```_config.yml```
39
39
  - copyright_email
40
40
  - source_url
41
41
 
42
+ For each post the following should be provided in the front matter
43
+
44
+ - title-image (an image from /assets/img/)
45
+
42
46
 
43
47
  ## Development
44
48
 
@@ -19,7 +19,7 @@
19
19
  </ul>
20
20
  <nav>
21
21
  <div class="nav-wrapper primary">
22
- <a href="{{ site.url }}" class="brand-logo center">{{ site.title }}</a>
22
+ <a href="{{ site.url }}" class="brand-logo center truncate">{{ site.title }}</a>
23
23
  <ul id="nav-mobile" class="right">
24
24
  <li style="width: 300px !important"><a class="dropdown-button" href="#!" data-activates="dropDown"><i class="material-icons right">menu</i></a></li> <!-- Dropdown Trigger -->
25
25
  </ul>
data/_layouts/home.html CHANGED
@@ -19,11 +19,18 @@ layout: default
19
19
  <a class="post-link" href="{{ post.url | relative_url }}">
20
20
  <div class="card primary z-depth-5">
21
21
  <div class="card-title center">
22
- <h5 class="title">{{ post.title | escape }}</h5>
22
+ <h5 class="title valign-wrapper">
23
+ {% if post.title-image %}
24
+ <img class="hide-on-small-only" height="100px" src="/assets/img/{{ post.title-image }}" />
25
+ {% else %}
26
+ <img class="hide-on-small-only" height="100px" src="/assets/img/no_image.svg" />
27
+ {% endif %}
28
+ <p align="center">{{ post.title | escape }}</p>
29
+ </h5>
23
30
  <hr />
24
31
  </div>
25
32
  <div class="post-content center" itemprop="articleBody">
26
- <i class="material-icons small">account_balance</i> - {{ post.date | date: date_format }}
33
+ <p>{{ post.excerpt }}</p>
27
34
  </div>
28
35
  </div>
29
36
  </a>
data/_layouts/post.html CHANGED
@@ -8,7 +8,14 @@ layout: default
8
8
 
9
9
  <div class="card primary z-depth-5">
10
10
  <div class="card-title center">
11
- <h5 class="title"><i class="material-icons small">account_balance</i> - {{ page.title | escape }}</h5>
11
+ <h3 class="title valign-wrapper">
12
+ {% if page.title-image %}
13
+ <img class="hide-on-small-only" height="100px" src="/assets/img/{{ page.title-image }}" />
14
+ {% else %}
15
+ <img class="hide-on-small-only" height="100px" src="/assets/img/no_image.svg" />
16
+ {% endif %}
17
+ <p text-align="center" align="center" class="center truncate"> {{ page.title | escape }} </p>
18
+ </h3>
12
19
  <hr />
13
20
  </div>
14
21
  <div class="post-content" itemprop="articleBody">
@@ -0,0 +1,8 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <svg xmlns="http://www.w3.org/2000/svg" height="300px" width="300px" version="1.0" viewBox="-300 -300 600 600" xml:space="preserve">
3
+ <circle stroke="#AAA" stroke-width="10" r="280" fill="#FFF"/>
4
+ <text style="letter-spacing:1;text-anchor:middle;text-align:center;stroke-opacity:.5;stroke:#000;stroke-width:2;fill:#444;font-size:360px;font-family:Bitstream Vera Sans,Liberation Sans, Arial, sans-serif;line-height:125%;writing-mode:lr-tb;" transform="scale(.2)">
5
+ <tspan y="-40" x="8">NO IMAGE</tspan>
6
+ <tspan y="400" x="8">AVAILABLE</tspan>
7
+ </text>
8
+ </svg>
data/assets/main.scss CHANGED
@@ -42,7 +42,6 @@ html {
42
42
  align-content:center;
43
43
  align-self: center;
44
44
  align-items: center;
45
- text-align: center;
46
45
  }
47
46
 
48
47
  .inset {
@@ -109,8 +108,8 @@ nav .brand-logo {
109
108
  img {
110
109
  padding-top: 30px;
111
110
  padding-bottom: 2px;
112
- padding-left: 2px;
113
- padding-right: 2px;
111
+ padding-left: 20px;
112
+ padding-right: 20px;
114
113
  }
115
114
 
116
115
  /* Footer */
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-theme-puzzleduck
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0
4
+ version: 2.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - PuZZleDucK
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-12-06 00:00:00.000000000 Z
11
+ date: 2018-01-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll
@@ -110,6 +110,7 @@ files:
110
110
  - assets/img/gnu.xcf
111
111
  - assets/img/hardware.png
112
112
  - assets/img/hardware.xcf
113
+ - assets/img/no_image.svg
113
114
  - assets/img/openscad.png
114
115
  - assets/img/openscad.xcf
115
116
  - assets/img/reprap.png