Browse Source

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

upstream
Zach Leatherman 5 years ago
parent
commit
afedb08c02
3 changed files with 11 additions and 9 deletions
  1. +9
    -0
      _includes/layouts/base.njk
  2. +2
    -0
      _includes/layouts/post.njk
  3. +0
    -9
      index.njk

+ 9
- 0
_includes/layouts/base.njk 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 blog’s 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>


+ 2
- 0
_includes/layouts/post.njk View File

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

+ 0
- 9
index.njk View File

@ -4,15 +4,6 @@ tags: nav
navtitle: Home
---
<div class="warning">
<ol>
<li>Edit the <code>_data/metadata.json</code> with your blog’s 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" %}

Loading…
Cancel
Save