alembic-jekyll-theme 2.1.2 → 2.2.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: df9923213acd8e8a23ff73ee613d42c81e8c78a2
4
- data.tar.gz: 63a72d874d45b6eb2aa12d4ad629a5350053c295
3
+ metadata.gz: 7ea69b665173c6149eb4aaa328e2cdee57d4677e
4
+ data.tar.gz: 72b602d5add4ecc16ddbdfba098905058b5dd280
5
5
  SHA512:
6
- metadata.gz: feaebb4eee774aa6a573af601310cc0ced9fe0d67fcd70031fa8a618380bab0eff585830803df55357feb989413cff28b7f4ba9051a71036b6f33bcb090d8243
7
- data.tar.gz: c1356f58ccc0191265c9dfb2df2108822e6cb6d782775de13bdb24dc7734b6d3823bf889219156a8726d8de159d7dff5d2902c27126937256e9f3e7cbac00417
6
+ metadata.gz: '060782316f41e9340bf93c7811336a5b5a7aa1b2a634651791276bfe8819d20763e9f70849adb56bc41c46af6004c2417c4150f079ef780861fccb2af70867eb'
7
+ data.tar.gz: 1bbf4e2be6d8fe94be74164801c0e3b36d05479356312b08337d8900ff1f40eb71d3885dda24f3ef1d8a75ca1804fe1b988416ad5cd235263dabd505c8b0576d
data/README.md CHANGED
@@ -93,7 +93,7 @@ There's a number of settings you'll need to change before you can start hacking
93
93
  `twitter`, `author` and `social` values will need to be changed to the projects' social information or removed. Look for the `Gem settings` comment within the `/_config.yml` file. These values are for the [jekyll-seo-tag](https://github.com/jekyll/jekyll-seo-tag) - follow the link to find out more.
94
94
 
95
95
  ### Site settings
96
- You'll need to change the `description`, `title` and `url` to match with the project. You'll also need to replace the `/assets/logo.svg` `/assets/default-social-image.png` with the project logo and default social image. The `email` needs to be changed to the email you want to receive contact form enquires with. The `disqus` value should be changed to your project username on [Disqus](https://disqus.com). Look for the `Site settings` comment within the `/_config.yml` file. The `repo` setting is optional, for now, and can be removed entirely, if you wish.
96
+ You'll need to change the `description`, `title` and `url` to match with the project. You'll also need to replace the `/assets/logo.svg` and `/assets/default-social-image.png` with the project logo and default social image. Setting the site language can be done with `lang`, the theme will default to `en-US`. The `email` needs to be changed to the email you want to receive contact form enquires with. The `disqus` value can be changed to your project username on [Disqus](https://disqus.com), remove this from the `/_config.yml` file if you don't want comments enabled. Look for the `Site settings` comment within the `/_config.yml` file. The `repo` setting is optional, for now, and can be removed entirely, if you wish.
97
97
 
98
98
  ### Site navigation
99
99
  There are a total of 4 different navigation types:
@@ -1 +1 @@
1
- <a class="button" href="{{ include.link }}"{% if include.color %} style="background: {{ include.color }}"{% endif %}>{{ include.text }}{% if include.icon %}&nbsp; {% include icon.html id=include.icon %}{% endif %}</a>
1
+ <a class="button" href="{{ include.link | default: "#" }}"{% if include.color %} style="background: {{ include.color }}"{% endif %}>{{ include.text | default: "Button" }}{% if include.icon %}&nbsp; {% include icon.html id=include.icon %}{% endif %}</a>
@@ -1,5 +1,5 @@
1
1
  {% if include.alt %}{% assign altText = include.alt %}{% else %}{% assign altText = include.caption %}{% endif %}
2
2
  <figure class="figure{% if include.position %} figure--{{ include.position }}{% endif %}">
3
- <img class="image" src="{{ include.image }}" {% if altText %}alt="Image - {{ altText }}"{% endif %}>
3
+ {% if include.image %}<img class="image" src="{{ include.image }}" {% if altText %}alt="Image - {{ altText }}"{% endif %}>{% else %}<small>Image not found</small>{% endif%}
4
4
  {% if include.caption %}<figcaption class="caption">{{ include.caption }}</figcaption>{% endif %}
5
5
  </figure>
data/_includes/icon.html CHANGED
@@ -1 +1 @@
1
- <svg class="icon icon--{{ include.id }}" role="img"{% if include.title %} aria-label="{{ include.title }} icon"{% endif %}>{% if include.title %}<title>{{ include.title }}</title>{% endif %}<use xlink:href="#{{ include.id }}"{% if include.color %} fill="{{ include.color }}"{% endif %}></use></svg>
1
+ <svg class="icon icon--{{ include.id | default: "link" }}" role="img"{% if include.title %} aria-label="{{ include.title }} icon"{% endif %}>{% if include.title %}<title>{{ include.title }}</title>{% endif %}<use xlink:href="#{{ include.id | default: "link" }}"{% if include.color %} fill="{{ include.color }}"{% endif %}></use></svg>
data/_includes/map.html CHANGED
@@ -1,3 +1,3 @@
1
1
  <div class="map">
2
- <iframe src="https://www.google.com/maps/d/u/0/embed?mid={{ include.id }}"></iframe>
2
+ {% if include.id %}<iframe src="https://www.google.com/maps/d/u/0/embed?mid={{ include.id }}"></iframe>{% else %}<small>Map not found</small>{% endif %}
3
3
  </div>
@@ -1,7 +1,7 @@
1
1
  <nav class="nav">
2
2
  <ul class="list list--nav">
3
- {% for item in site.pages %}
4
- {% unless item.title == false or item.url contains "/page" or item.url contains "/404.html" or item.url contains "/feed." or item.url contains ".json" %}
3
+ {% for item in site.html_pages %}
4
+ {% unless item.title == false or item.url contains "/page" or item.url contains "/404.html" %}
5
5
  <li class="item item--nav{% if item.url == page.url %} item--current{% endif %}">
6
6
 
7
7
  {% if item.url contains '://' %}
@@ -1,6 +1,6 @@
1
1
  <header class="header">
2
2
  <div class="container">
3
- {% include site-logo.html %}
3
+ {% if site.logo %}{% include site-logo.html %}{% endif %}
4
4
 
5
5
  {% include nav-header.html %}
6
6
  </div>
@@ -1,5 +1,5 @@
1
1
  <!DOCTYPE html>
2
- <html lang="en-GB">
2
+ <html lang="{{ site.lang | default: "en-US" }}">
3
3
  <head>
4
4
  <!-- General meta -->
5
5
  <meta name="viewport" content="width=device-width, initial-scale=1">
@@ -22,7 +22,7 @@
22
22
 
23
23
  <link rel="stylesheet" href="{{ "/assets/styles.css" | relative_url }}">
24
24
 
25
- {% include site-favicons.html %}
25
+ {% if site.avatarurl %}{% include site-favicons.html %}{% endif %}
26
26
  </head>
27
27
  <body class="layout-{{ page.layout }}{% if page.title %} {{ page.title | slugify }}{% endif %}">
28
28
  {% include site-icons.svg %}
data/assets/styles.scss CHANGED
@@ -432,4 +432,10 @@ pre code {
432
432
  margin: 0;
433
433
  }
434
434
  }
435
+ .nav a {
436
+ padding-left: 0;
437
+ padding-right: 0;
438
+ margin-left: .2rem;
439
+ margin-right: .2rem;
440
+ }
435
441
  }
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: alembic-jekyll-theme
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.2
4
+ version: 2.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Darnes
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-07-25 00:00:00.000000000 Z
11
+ date: 2017-08-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll