_includes/variables.html in jekyll-theme-plain-0.6.0 vs _includes/variables.html in jekyll-theme-plain-0.7.0
- old
+ new
@@ -1,10 +1,10 @@
{%- comment -%}
- # Whether the page is a post.
+ # Whether the page is in the plain layout.
{%- endcomment -%}
-{%- if page.layout == "post" -%}
- {%- assign is_post = true -%}
+{%- if page.layout == "plain" or page.layout == "post" -%}
+ {%- assign is_plain = true -%}
{%- endif -%}
{%- comment -%}
# Default values.
{%- endcomment -%}
@@ -53,10 +53,10 @@
{%- if canonical_url == nil -%}{%- assign canonical_url = default_canonical_url -%}{%- endif -%}{%- endif -%}
{%- comment -%}
# Title.
{%- endcomment -%}
-{%- if is_post -%}
+{%- if is_plain -%}
{%-
assign title =
canonical_url
| remove_first: "https://www."
| remove_first: "http://www."