Fix up the blog section

Mm unsafety
This commit is contained in:
2020-07-14 19:44:26 +01:00
parent 3167474a4a
commit cc2132e811
436 changed files with 106 additions and 123 deletions

View File

@@ -0,0 +1,34 @@
<!DOCTYPE html>
<html lang="en-GB">
{{ partial "head.html" . }}
<body>
<div class="container">
<header>
<h3><a href="/">Arona Jones:</a> {{ .Title }}</h3>
<nav id="main-nav">
<a href="/">Home</a>
{{ $currentNode := . }}
{{ range .Site.Menus.main }}
<a href="{{.URL}}">{{.Name}}</a>
{{ end }}
</nav>
</header>
<main aria-label="Content">
<article>
{{.Content}}
</article>
<div class="contained">
<h3 style="color: black;">Posts:</h3>
<ul>
{{ range .Pages }}
<li style="padding-top: 1em;">
<a href="{{.Permalink}}">{{.Date.Format "2006-01-02"}} | {{.Title}}</a>
</li>
{{ end }}
</ul>
</div>
</main>
{{ partial "footer.html" . }}
</div>
</body>
</html>

View File

@@ -4,7 +4,7 @@
<body>
<div class="container">
<header>
<h3>{{ .Title }}</h3>
<h3><a href="/">Arona Jones:</a> {{ .Title }}</h3>
<nav id="main-nav">
<a href="/">Home</a>
{{ $currentNode := . }}
@@ -17,9 +17,6 @@
<article>
{{.Content}}
</article>
<aside>
{{ .TableOfContents }}
</aside>
</main>
{{ partial "footer.html" . }}
</div>

View File

@@ -1,4 +1,4 @@
<figure class="image .Get "full-width">
<img src={{ .Get "url" }}" alt={{ .Get "description" }}>
<figcaption><small>{{ .Get "caption" }}</small></figcaption>
<figure class="image {{ .Get "class" }}">
<img src="{{ .Get "url" }}" alt="{{ .Get "description" }}">
<figcaption><small>{{ .Get "caption" | markdownify }}</small></figcaption>
</figure>