Skip to content

Commit fe0dc3c

Browse files
committed
fixed page-format according to jekyll3 change
layout metadata needs to be accessed using "format.foo" rather than "page.foo"
1 parent 4a3bf29 commit fe0dc3c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

_includes/_head.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
{% if site.bing_webmastertools_id %}<meta name="msvalidate.01" content="{{ site.bing_webmastertools_id }}" >{% endif %}
5151
{% if site.google_author %}<link rel="author" href="{{ site.google_author }}">{% endif %}
5252
{% if site.alexa_verify_id %}<meta name="alexaVerifyID" content="{{ site.alexa_verify_id }}">{% endif %}
53-
{% if page.noindex == true %}<meta name="robots" content="noindex">{% endif %}
53+
{% if page.noindex == true or layout.noindex == true %}<meta name="robots" content="noindex">{% endif %}
5454

5555

5656
<!-- Facebook Open Graph -->

_layouts/default.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<head>
77
{% include _head.html %}
88
</head>
9-
<body id="top-of-page" class="{{ page.format }}">
9+
<body id="top-of-page" class="{{ layout.format }}">
1010
{% unless page.skip_boilerplate %}
1111
{% include _navigation.html %}
1212
{% endunless %}

0 commit comments

Comments
 (0)