huge restructure to give flexibility with blog posts and mobile layouts

This commit is contained in:
Jonathan Souter
2023-02-28 21:25:22 +10:30
parent 4bcb5e0dc1
commit 2964a27d53
14 changed files with 135 additions and 53 deletions

View File

@ -19,14 +19,18 @@
</head>
<body>
<main>
<header>{% include 'partials/header.njk' %}</header>
<hr/>
<article>
<h1>{{ title }}</h1>
{{ content | safe }}
</article>
<hr/>
<footer>{% include 'partials/footer.njk' %}</footer>
<div>
<header>{% include 'partials/header.njk' %}</header>
<hr/>
<article>
<h1>{{ title }}</h1>
{{ content | safe }}
</article>
</div>
<footer>
<hr/>
{% include 'partials/footer.njk' %}
</footer>
</main>
<aside>{% include 'partials/sidebar.njk' %}</aside>
</div>

View File

@ -1,9 +1,9 @@
<nav>
<a href="/">/</a><br/>
<a href="/pages/">/pages</a><br/>
<a href="/about/">/about</a><br/>
<a href="/links/">/links</a><br/>
<a href="/contact/">/contact</a><br/>
<a href="/blog/">/blog</a><br/>
<a href="/">/</a>
<a href="/pages/">/pages</a>
<a href="/about/">/about</a>
<a href="/links/">/links</a>
<a href="/contact/">/contact</a>
<a href="/blog/">/blog</a>
</nav>
{#INFO: It's important to stucture your links with the slashes / on either side of the href /about/ to ensure the links are always from the root of the site.#}

View File

@ -3,4 +3,5 @@
</a>
<div class="sidebar-contents">
{% include 'partials/navigation.njk' %}
<img src="/_assets/img/143.gif"/>
</div>