labrea-theme 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +10 -0
- data/_includes/header.html +10 -9
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c02a20deaaa06f4d4a68000f5d0b5ef54574e4a357ae3ad3375d90c6d3e5f3f8
|
4
|
+
data.tar.gz: c8431acf4ad904b18156d3cdfc765a121599a08d070d733285760737ae012bb6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 716d692cac41572df657bf8d68d8a450d1b1dc481dead91bbf95f845fe89c53aa5f14d5875057b80e0c9ffd4fbd4bfe6f87164198e3fd61541bdbb391217e4a5
|
7
|
+
data.tar.gz: db198290293bb7ddb09957f0783dd4157cfcc8810357d761efebdb3912b013425f3c305cea871c03c60b66367f3e5f1464ddda6e58a76cbafa4e47cc9c549ec5
|
data/README.md
CHANGED
@@ -59,6 +59,16 @@ If you would like to add custom CSS, create a file `/assets/css/main.scss` and a
|
|
59
59
|
```
|
60
60
|
at the beginning and place your custom code below.
|
61
61
|
|
62
|
+
### No indexing
|
63
|
+
|
64
|
+
The theme also comes with the possibility to stop search engines from indexing your site. If `noindexing: true` is added to your `_config.yaml`, the line
|
65
|
+
|
66
|
+
```html
|
67
|
+
<meta name="robots" content="noindex,nofollow">
|
68
|
+
```
|
69
|
+
|
70
|
+
is added to the header of every page.
|
71
|
+
|
62
72
|
### Lightbox
|
63
73
|
|
64
74
|
This theme has included a [minimal lightbox](https://jekyllcodex.org/without-plugin/lightbox/). All image and video links open in a lightbox. To prevent this behaviour on any specific link add the css class `.no-lightbox`. In markdown this is achieved in the following way
|
data/_includes/header.html
CHANGED
@@ -1,15 +1,16 @@
|
|
1
1
|
<header class='mt4 mb3 ml4 mr1 sm-ml2'>
|
2
2
|
<h1 class='mb1' role='banner'><a href='{{ site.baseurl }}/'>{{ site.title }}</a></h1>
|
3
3
|
<div class='mxn1' role='navigation'>
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
{% endfor %}
|
4
|
+
{% assign default_paths = site.pages | map: "path" %}
|
5
|
+
{% assign page_paths = site.header_pages | default: default_paths %}
|
6
|
+
{% if page_paths %}
|
7
|
+
{% for path in page_paths %}
|
8
|
+
{% assign my_page = site.pages | where: "path", path | first %}
|
9
|
+
{% if my_page.title and my_page.title != "Posts" %}
|
10
|
+
{% assign my_page = site.pages | where: "path", path | first %}
|
11
|
+
<a class="btn button-narrow h3" href="{{ my_page.url | relative_url }}">{{ my_page.title | escape }}</a>
|
13
12
|
{% endif %}
|
13
|
+
{% endfor %}
|
14
|
+
{% endif %}
|
14
15
|
</div>
|
15
16
|
</header>
|