Skip to content

Commit 3b89fe3

Browse files
committed
add footer with navigation links to all pages
The architecture and reply-to-this pages were orphaned with no way to navigate to or between them. Add a simple footer with horizontal flexbox links to provide basic site navigation.
1 parent 643f10f commit 3b89fe3

File tree

4 files changed

+23
-0
lines changed

4 files changed

+23
-0
lines changed

assets/sass/main.scss

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,17 @@ div.feature-matrix {
7878
vertical-align: center;
7979
}
8080
}
81+
footer nav ul {
82+
list-style: none;
83+
padding: 0;
84+
margin: 0;
85+
display: flex;
86+
flex-wrap: wrap;
87+
gap: 0.5em 1em;
88+
}
89+
footer nav ul li a {
90+
text-decoration: none;
91+
}
8192
@media screen and (max-width: 450px) {
8293
big {
8394
font-size: 300%;

layouts/_default/index.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
{{ define "main" }}
22
{{ .Content | replaceRE "(<h2 id=\"([^\"]+)\".+)(</h[1-9]+>)" `${1} <a href="#${2}">#</a> ${3}` | safeHTML }}
3+
{{ partial "footer.html" . }}
34
{{ end }}

layouts/_default/single.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,5 @@
22
<div class="block">
33
{{ .Content }}
44
</div>
5+
{{ partial "footer.html" . }}
56
{{ end }}

layouts/partials/footer.html

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<footer>
2+
<hr>
3+
<nav>
4+
<ul>
5+
<li><a href="{{ relURL "/" }}">Home</a></li>
6+
<li><a href="{{ relURL "architecture/" }}">Architecture</a></li>
7+
<li><a href="{{ relURL "reply-to-this/" }}">Reply to this</a></li>
8+
</ul>
9+
</nav>
10+
</footer>

0 commit comments

Comments
 (0)