Provide an All Posts link on posts that points back to the index page

This commit is contained in:
Philipp Oppermann
2019-03-18 10:27:54 +01:00
parent cc0f68448b
commit 06b334396a
3 changed files with 22 additions and 3 deletions

View File

@@ -23,10 +23,13 @@
<body>
<div class="container content">
<header class="masthead">
<h1 class="masthead-title">
<div style="position:relative">
<h1 class="masthead-title">
<a href="{{ get_url(path="./second-edition/_index.md") }}" title="Home">{{ config.title }} (Second Edition)</a>
</h1>
<p><small>{{ config.extra.subtitle }}</small></p>
</h1>
<p><small>{{ config.extra.subtitle }}</small></p>
{% block header %}{% endblock header %}
</div>
</header>
<main>{% block main %}{% endblock main %}</main>

View File

@@ -3,6 +3,9 @@
{% import "macros.html" as macros %}
{% block title %}{{ page.title }} | {{ config.title }}{% endblock title %}
{% block header %}
<aside id="all-posts-link"><a href="{{ get_url(path="./second-edition/_index.md") }}" title="All Posts">« All Posts</a></aside>
{% endblock header %}
{% block main %}
<h1>{{ page.title }}</h1>