Moves warning message to _includes/base.njk, adds a home link to posts
This commit is contained in:
parent
545f203d33
commit
afedb08c02
@ -19,6 +19,15 @@
|
|||||||
</header>
|
</header>
|
||||||
|
|
||||||
<main{% if templateClass %} class="{{ templateClass }}"{% endif %}>
|
<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 }}
|
{{ layoutContent | safe }}
|
||||||
</main>
|
</main>
|
||||||
|
|
||||||
|
@ -5,3 +5,5 @@ templateClass: tmpl-post
|
|||||||
<h1>{{ title }}</h1>
|
<h1>{{ title }}</h1>
|
||||||
|
|
||||||
{{ layoutContent | safe }}
|
{{ layoutContent | safe }}
|
||||||
|
|
||||||
|
<p><a href="{{ '/' | url }}">🔙 Home</a></p>
|
@ -4,15 +4,6 @@ tags: nav
|
|||||||
navtitle: Home
|
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 %}
|
{% set postslist = collections.posts %}
|
||||||
{% include "postslist.njk" %}
|
{% include "postslist.njk" %}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user