From 9f290f80d730c5094dfc7b6539eb97c1de617298 Mon Sep 17 00:00:00 2001 From: Rik Veenboer Date: Mon, 8 Feb 2016 22:16:28 +0000 Subject: [PATCH] Add hyperlinks to post and gallery titles, make page title optional. --- _includes/header.html | 2 +- _includes/{post-detail.html => post.html} | 0 _layouts/gallery-index.html | 4 ++-- _layouts/post.html | 2 +- index.html | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) rename _includes/{post-detail.html => post.html} (100%) diff --git a/_includes/header.html b/_includes/header.html index 34354ef..c1417e7 100644 --- a/_includes/header.html +++ b/_includes/header.html @@ -3,7 +3,7 @@ - {% if page.title != "Home" %}{{ page.title }} – {% endif %}{{ site.title }} + {% if page.title != "Home" and page.title %}{{ page.title }} – {% endif %}{{ site.title }} diff --git a/_includes/post-detail.html b/_includes/post.html similarity index 100% rename from _includes/post-detail.html rename to _includes/post.html diff --git a/_layouts/gallery-index.html b/_layouts/gallery-index.html index 9ee5deb..47e8720 100644 --- a/_layouts/gallery-index.html +++ b/_layouts/gallery-index.html @@ -5,11 +5,11 @@ layout: default
{% if page.date %} - + {% endif %}

- {{ page.title }} + {{ page.title }}

{% if page.end_date %} diff --git a/_layouts/post.html b/_layouts/post.html index 582f409..3a2c686 100644 --- a/_layouts/post.html +++ b/_layouts/post.html @@ -26,7 +26,7 @@ {% endif %}

- {{ page.title }} + {{ page.title }}

{% if page.end_date %} diff --git a/index.html b/index.html index 442f1ff..956be61 100644 --- a/index.html +++ b/index.html @@ -9,7 +9,7 @@ layout: default

{% for post in paginator.posts %} - {% include post-detail.html %} + {% include post.html %} {% endfor %} {% if paginator.total_pages > 1 %}