Add hyperlinks to post and gallery titles, make page title optional.

This commit is contained in:
2016-02-08 22:16:28 +00:00
parent 90197bd78f
commit 9f290f80d7
5 changed files with 5 additions and 5 deletions

View File

@@ -3,7 +3,7 @@
<head> <head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>{% if page.title != "Home" %}{{ page.title }} &ndash; {% endif %}{{ site.title }}</title> <title>{% if page.title != "Home" and page.title %}{{ page.title }} &ndash; {% endif %}{{ site.title }}</title>
<link href="http://fonts.googleapis.com/css?family=Lato:300,400,700,300italic,400italic,700italic" rel="stylesheet" type="text/css" /> <link href="http://fonts.googleapis.com/css?family=Lato:300,400,700,300italic,400italic,700italic" rel="stylesheet" type="text/css" />
<link href="{{ site.static_prefix }}/style/default-common.css" rel="stylesheet" type="text/css" /> <link href="{{ site.static_prefix }}/style/default-common.css" rel="stylesheet" type="text/css" />

View File

@@ -5,11 +5,11 @@ layout: default
<header> <header>
<div class="timeline"> <div class="timeline">
{% if page.date %} {% if page.date %}
<time datetime="{{ page.date|date_to_xmlschema }}" title="{{ page.date|date_to_xmlschema }}"><strong>{{ page.date|date:"%b %d"|upcase }}</strong><br />{{ page.date|date:"%Y" }}</time> <time datetime="{{ page.date | date_to_xmlschema }}" title="{{ page.date | date_to_xmlschema }}"><strong>{{ page.date|date:"%b %d"|upcase }}</strong><br />{{ page.date|date:"%Y" }}</time>
{% endif %} {% endif %}
</div> </div>
<h1> <h1>
<span itemprop="name">{{ page.title }}</span> <a href="/{{ site.baseurl }}{{ page.url }}"><span itemprop="name">{{ page.title }}</span></a>
<small class="print-only" itemprop="datePublished" content="{{ page.date|date:'%F') }}">{{ page.date|date:'%A, %B %d, %Y' }}</small> <small class="print-only" itemprop="datePublished" content="{{ page.date|date:'%F') }}">{{ page.date|date:'%A, %B %d, %Y' }}</small>
</h1> </h1>
{% if page.end_date %} {% if page.end_date %}

View File

@@ -26,7 +26,7 @@
{% endif %} {% endif %}
</ul> </ul>
<h1> <h1>
<span itemprop="name">{{ page.title }}</span> <a href="/{{ site.baseurl }}{{ page.url }}"><span itemprop="name">{{ page.title }}</span></a>
<small class="print-only" itemprop="datePublished" content="{{ page.date|date:'%F') }}">{{ page.date|date:'%A, %B %d, %Y' }}</small> <small class="print-only" itemprop="datePublished" content="{{ page.date|date:'%F') }}">{{ page.date|date:'%A, %B %d, %Y' }}</small>
</h1> </h1>
{% if page.end_date %} {% if page.end_date %}

View File

@@ -9,7 +9,7 @@ layout: default
</p> </p>
</section> </section>
{% for post in paginator.posts %} {% for post in paginator.posts %}
{% include post-detail.html %} {% include post.html %}
{% endfor %} {% endfor %}
{% if paginator.total_pages > 1 %} {% if paginator.total_pages > 1 %}
<section> <section>