Fix up the blog section
Mm unsafety
This commit is contained in:
34
layouts/_default/list.html
Normal file
34
layouts/_default/list.html
Normal 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>
|
||||
@@ -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>
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user