From 75a913d179eb092eaa7a36951f07a111278a44f7 Mon Sep 17 00:00:00 2001 From: Michael Rose Date: Mon, 22 Feb 2016 22:32:17 -0500 Subject: [PATCH] Consolidate layouts - Remove page.html - Rename post-index.html ~> archive.html --- 404.md | 2 +- _layouts/{post-index.html => archive.html} | 0 _layouts/page.html | 23 ---------------------- _layouts/post.html | 14 ++++++++----- _sass/page.scss | 22 --------------------- about/index.md | 2 +- posts/index.md | 2 +- theme-setup/index.md | 2 +- 8 files changed, 13 insertions(+), 54 deletions(-) rename _layouts/{post-index.html => archive.html} (100%) delete mode 100644 _layouts/page.html diff --git a/404.md b/404.md index 3981c8c7..c5b315d8 100644 --- a/404.md +++ b/404.md @@ -1,5 +1,5 @@ --- -layout: page +layout: post title: "Page Not Found" excerpt: "Page not found. Your pixels are in another canvas." sitemap: false diff --git a/_layouts/post-index.html b/_layouts/archive.html similarity index 100% rename from _layouts/post-index.html rename to _layouts/archive.html diff --git a/_layouts/page.html b/_layouts/page.html deleted file mode 100644 index d71ebe4d..00000000 --- a/_layouts/page.html +++ /dev/null @@ -1,23 +0,0 @@ ---- -layout: default ---- - -{% include absolute-url.liquid %} - -
-

{{ page.title }}

-
- {{ content }} - {% if page.share != false %} -
- {% include social-share.html %} - {% endif %} -
- {% if site.owner.disqus-shortname and page.comments == true %} -
- {% endif %} -
- -{% if site.owner.disqus-shortname and page.comments == true %} -
-{% endif %} \ No newline at end of file diff --git a/_layouts/post.html b/_layouts/post.html index 788ae685..0c795ae6 100644 --- a/_layouts/post.html +++ b/_layouts/post.html @@ -5,19 +5,22 @@ layout: default {% include absolute-url.liquid %}
-
+
{% if page.link %}

{{ page.title }}

{% else %}

{{ page.title }}

{% endif %} -
-
+ {{ content }} +
+
{% if page.share != false %}{% include social-share.html %}{% endif %} - + {% if page.date %} + + {% endif %}
@@ -26,7 +29,8 @@ layout: default {% endif %}
-{% if site.related_posts.size > 0 %} +{% comment %}{% endcomment %} +{% if page.id and site.related_posts.size > 0 %}