Moves warning message to _includes/base.njk, adds a home link to posts

This commit is contained in:
Zach Leatherman 2018-01-25 23:36:31 -06:00
parent 545f203d33
commit afedb08c02
3 changed files with 11 additions and 9 deletions

View File

@ -19,6 +19,15 @@
</header>
<main{% if templateClass %} class="{{ templateClass }}"{% endif %}>
<div class="warning">
<ol>
<li>Edit the <code>_data/metadata.json</code> with your blogs information.</li>
<li>(Optional) Edit <code>.eleventy.js</code> with your configuration preferences.</li>
<li>Delete this message from <code>_includes/base.njk</code>.</li>
</ol>
<p><em>This is an <a href="https://www.11ty.io/">Eleventy project</a> created from the <a href="https://github.com/11ty/eleventy-base-blog"><code>eleventy-base-blog</code> repo</a>.</em></p>
</div>
{{ layoutContent | safe }}
</main>

View File

@ -5,3 +5,5 @@ templateClass: tmpl-post
<h1>{{ title }}</h1>
{{ layoutContent | safe }}
<p><a href="{{ '/' | url }}">🔙 Home</a></p>

View File

@ -4,15 +4,6 @@ tags: nav
navtitle: Home
---
<div class="warning">
<ol>
<li>Edit the <code>_data/metadata.json</code> with your blogs information.</li>
<li>(Optional) Edit <code>.eleventy.js</code> with your configuration preferences.</li>
<li>Delete this message from <code>index.njk</code>.</li>
</ol>
<p><em>This is an <a href="https://www.11ty.io/">Eleventy project</a> created from the <a href="https://github.com/11ty/eleventy-base-blog"><code>eleventy-base-blog</code> repo</a>.</em></p>
</div>
{% set postslist = collections.posts %}
{% include "postslist.njk" %}