jekyll-theme-twenty 0.1.1 → 0.1.2

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: 6206943911b730e0df550a1c05b1d6b750caf85d
4
- data.tar.gz: 9bf4fb0601693ec3b48c6f986d08548958e9a2cb
3
+ metadata.gz: 239fb14a879cca8b1c99229f559834c1e4c5c36b
4
+ data.tar.gz: 5e922dee203e31a004556514630376090f58edc5
5
5
  SHA512:
6
- metadata.gz: 9df098e7529111919e5103514adc8e319fc3177186c2dbe401defa15fe66dd269ae6b4a135933eb3d71de1fc16bf0614bc563bcffc2070c779c51d2c71446615
7
- data.tar.gz: 6372dcc1bfdb26bae19d3bc32e48fd8065a72ab9463a7e2269121e31c1b1bf892188c14bc1096c0b93fe590058446fbc1e30d07e4aa780fb27632e0674fdbad6
6
+ metadata.gz: 4fc47ccd88763a023bc7f5b907aad1f55c9d3492e35891fc74b2071022987c2a4d5ae12268599f6994b888803bd1dba28da71c83398845de2d7023665ca0ddd3
7
+ data.tar.gz: 5af0d34aaa25697cca20809450452733951a30610a7a2c3a47c6b06a74794abe2259ed9870676e1dcce04d127ff8bc2f3539eaba2208178313a50e5f5caed91e
data/README.md CHANGED
@@ -74,7 +74,7 @@ Bug reports and pull requests are welcome on GitHub at https://github.com/moodul
74
74
 
75
75
  To set up your environment to develop this theme, run `bundle install`.
76
76
 
77
- To test the 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.
77
+ To test the theme, run `bundle exec jekyll serve` and open your browser at `http://localhost:4000`. This starts a Jekyll server using the theme. Add pages, documents, data, etc. like normal to test the theme's contents. As you make modifications to the theme and to your content, your site will regenerate and you should see the changes in the browser after a refresh, just like normal.
78
78
 
79
79
  When the theme is released, only the files in `_layouts`, `_includes`, `_sass` and `assets` tracked with Git are be bundled.
80
80
  To add a custom directory to the theme-gem, please edit the regexp in `jekyll-theme-twenty.gemspec` accordingly.
@@ -1,25 +1,31 @@
1
1
  <!-- Header -->
2
- <header id="header" class="alt">
2
+ <header id="header" {% if include.class %} class="{{ include.class }}" {% endif %}>
3
3
  <h1 id="logo">
4
- {% if site.logo_url %}
5
- <img src="{{ site.logo_url | absolute_url }}" width="24" height="24"></span>
6
- &nbsp;
7
- {% endif %}
8
- <a href="index.html">{{ site.title }} <span>{{ site.subtitle }}</span></a>
4
+ <a href="index.html">
5
+ {% if site.logo_url %}
6
+ <img src="{{ site.logo_url | absolute_url }}" width="32" height="32">
7
+ &nbsp;
8
+ {% endif %}
9
+ {{ site.title }} <span>{% if site.subtitle.size < 16 %} {{ site.subtitle }} {% endif %}</span>
10
+ </a>
9
11
  </h1>
10
12
  <nav id="nav">
11
13
  <ul>
12
14
  {% for item in site.data.navigation.menu %}
13
15
  {% if item.menu[0] %}
14
- <li class="submenu">
16
+ <li class="submenu {% if item.url == page.url %} current {% endif %}">
15
17
  <a href="{{ item.url }}">{{ item.title }}</a>
16
18
  <ul>
17
19
  {% for subitem in item.menu %}
18
- <li><a href="{{ subitem.url }}">{{ subitem.title }}</a></li>
20
+ <li {% if subitem.url == page.url %} class="current" {% endif %}>
21
+ <a href="{{ subitem.url }}">{{ subitem.title }}</a>
22
+ </li>
19
23
  {% endfor %}
20
24
  </ul>
21
25
  {% else %}
22
- <li><a href="{{ item.url }}">{{ item.title }}</a></li>
26
+ <li {% if item.url == page.url %} class="current" {% endif %}>
27
+ <a href="{{ item.url }}">{{ item.title }}</a>
28
+ </li>
23
29
  {% endif %}
24
30
  {% endfor %}
25
31
  </ul>
@@ -11,8 +11,6 @@
11
11
  <body class="index is-preload">
12
12
  <div id="page-wrapper">
13
13
 
14
- {% include header.html %}
15
-
16
14
  {{ content }}
17
15
 
18
16
  {% include cta.html %}
data/_layouts/home.html CHANGED
@@ -2,6 +2,8 @@
2
2
  layout: default
3
3
  ---
4
4
 
5
+ {% include header.html class="alt" %}
6
+
5
7
  {% include banner.html %}
6
8
 
7
9
  {{ content }}
data/_layouts/page.html CHANGED
@@ -2,4 +2,6 @@
2
2
  layout: default
3
3
  ---
4
4
 
5
+ {% include header.html %}
6
+
5
7
  {{ content }}
data/_layouts/post.html CHANGED
@@ -1,5 +1,5 @@
1
1
  ---
2
- layout: default
2
+ layout: page
3
3
  ---
4
4
 
5
5
  {{ content }}
@@ -6,6 +6,7 @@ input[type="email"],
6
6
  textarea {
7
7
  @include vendor('transition', ('background-color 0.2s ease-in-out', 'border-color 0.2s ease-in-out'));
8
8
  @include vendor('appearance', 'none');
9
+ position: relative;
9
10
  background: none;
10
11
  border: solid 1px _palette(border);
11
12
  border-radius: 0;
@@ -47,4 +48,13 @@ input[type="email"] {
47
48
  :-ms-input-placeholder {
48
49
  color: inherit;
49
50
  opacity: 0.5;
51
+ }
52
+
53
+ .required::after {
54
+ content: '*';
55
+ position: absolute;
56
+ color: red;
57
+ top: -3px;
58
+ right: -1px;
59
+ font-size: 26px;
50
60
  }
@@ -94,6 +94,10 @@
94
94
  }
95
95
  }
96
96
 
97
+ & * {
98
+ vertical-align: middle;
99
+ }
100
+
97
101
  &.reveal {
98
102
  @include vendor('animation', 'reveal-header 0.5s');
99
103
  }
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-theme-twenty
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Mougeolle
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-03-27 00:00:00.000000000 Z
11
+ date: 2019-04-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll