M .gitignore => .gitignore +1 -0
@@ 1,3 1,4 @@
.vercel
node_modules
build
+public
M layouts/blog/list.html => layouts/blog/list.html +33 -30
@@ 4,33 4,36 @@
<title>My blog posts</title>
{{ partial "header.html" }}
</head>
- {{ partial "nav.html" }}
- <main>
- {{ .Content }}
- {{ if .Sections }}
- <h2>Find out more</h2>
- <p><a href="index.xml">RSS feed</a></p>
- {{ range .Sections }}
- <a href="{{ .RelPermalink }}" class="category">
- <hgroup>
- <h3>
- {{ .LinkTitle }}
- </h3>
- <p>
- ({{.Pages | len}} {{if eq (.Pages | len) 1}} post{{else}} posts{{end}})
- </p>
- </hgroup>
- <small>{{ .Description }}</small>
- </a>
- {{ end }}
- {{ else }}
- <h2>Posts</h2>
- <p><a href="index.xml">RSS feed</a></p>
- <ul class="nopad">
- {{ range .Pages }}
- {{ partial "blog-preview.html" . }}
- {{ end }}
- </ul>
- {{ end }}
- </main>
- {{ partial "footer.html" }}
+ <body>
+ {{ partial "nav.html" }}
+ <main>
+ {{ .Content }}
+ {{ if .Sections }}
+ <h2>Find out more</h2>
+ <p><a href="index.xml">RSS feed</a></p>
+ {{ range .Sections }}
+ <a href="{{ .RelPermalink }}" class="category">
+ <hgroup>
+ <h3>
+ {{ .LinkTitle }}
+ </h3>
+ <p>
+ ({{.Pages | len}} {{if eq (.Pages | len) 1}} post{{else}} posts{{end}})
+ </p>
+ </hgroup>
+ <small>{{ .Description }}</small>
+ </a>
+ {{ end }}
+ {{ else }}
+ <h2>Posts</h2>
+ <p><a href="index.xml">RSS feed</a></p>
+ <ul class="nopad">
+ {{ range .Pages }}
+ {{ partial "blog-preview.html" . }}
+ {{ end }}
+ </ul>
+ {{ end }}
+ </main>
+ {{ partial "footer.html" }}
+ </body>
+</html>
M layouts/blog/single.html => layouts/blog/single.html +17 -14
@@ 4,17 4,20 @@
<title>{{$.Title}}</title>
{{ partial "header.html" }}
</head>
- {{ partial "nav.html" }}
- <main>
- <h2>
- {{.Title}}
- </h2>
- <small>
- {{.Date.Format "January 2, 2006"}}
- </small>
- <aside>
- {{ .TableOfContents }}
- </aside>
- {{.Content}}
- </main>
- {{ partial "footer.html" . }}
+ <body>
+ {{ partial "nav.html" }}
+ <main>
+ <h2>
+ {{.Title}}
+ </h2>
+ <small>
+ {{.Date.Format "January 2, 2006"}}
+ </small>
+ <aside>
+ {{ .TableOfContents }}
+ </aside>
+ {{.Content}}
+ </main>
+ {{ partial "footer.html" . }}
+ </body>
+</html>
M layouts/index.html => layouts/index.html +4 -4
@@ 1,15 1,15 @@
<!doctype html>
<html lang="en">
<head>
- {{ partial "header.html" }}
- <title>{{$.Title}}</title>
+ {{ partial "header.html" }}
+ <title>{{$.Title}}</title>
</head>
<body>
- </main>
{{ partial "nav.html" }}
- <h1>ccw.icu</h1>
+ <h1>ccw.icu</h1>
<main>
{{.Content}}
+ </main>
{{ partial "footer.html" }}
</body>
</html>
M layouts/sitemap/single.html => layouts/sitemap/single.html +2 -0
@@ 58,3 58,5 @@
</ul>
</main>
{{ partial "footer.html" }}
+</body>
+</html>
M layouts/tags/list.html => layouts/tags/list.html +1 -2
@@ 5,8 5,8 @@
<title>{{$.Title}}</title>
</head>
<body>
- </main>
{{ partial "nav.html" }}
+ </main>
<h1>{{ .Title }}</h1>
<main>
<ul class="nopad">
@@ 26,4 26,3 @@
{{ partial "footer.html" }}
</body>
</html>
-