Skip to content

Commit

Permalink
move log output to base layout
Browse files Browse the repository at this point in the history
  • Loading branch information
ooloth committed Jun 1, 2023
1 parent 9ee0541 commit 6041646
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 16 deletions.
16 changes: 16 additions & 0 deletions src/_includes/layouts/base.njk
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,22 @@
{{ content | safe }}
</main>

{# List every post in the project #}
<h2>All Posts</h2>
<ul>
{%- for entry in collections.posts %}
<li><a href="{{ entry.url }}"><code>{{ entry.url }}</code></a></li>
{%- endfor %}
</ul>

{# List every content page in the project #}
<h2>All Pages</h2>
<ul>
{%- for entry in collections.all %}
<li><a href="{{ entry.url }}"><code>{{ entry.url }}</code></a></li>
{%- endfor %}
</ul>

<footer></footer>

<!-- Current page: {{ page.url | htmlBaseUrl }} -->
Expand Down
16 changes: 0 additions & 16 deletions src/index.njk
Original file line number Diff line number Diff line change
Expand Up @@ -18,20 +18,4 @@ numberOfLatestPostsToShow: 3
<p>{{ morePosts }} more post{% if morePosts != 1 %}s{% endif %} can be found in <a href="/blog/">the archive</a>.</p>
{% endif %}

{# List every post in the project #}
<h2>All Posts</h2>
<ul>
{%- for entry in collections %}
<pre>{{ entry }}</pre>
<li><a href="{{ entry.url }}"><code>{{ entry.url }}</code></a></li>
{%- endfor %}
</ul>

{# List every content page in the project #}
<h2>All Pages</h2>
<ul>
{%- for entry in collections.all %}
<li><a href="{{ entry.url }}"><code>{{ entry.url }}</code></a></li>
{%- endfor %}
</ul>

0 comments on commit 6041646

Please sign in to comment.