summaryrefslogtreecommitdiff
path: root/layouts
diff options
context:
space:
mode:
Diffstat (limited to 'layouts')
-rw-r--r--layouts/_partials/footer.html11
-rw-r--r--layouts/_partials/head.html9
-rw-r--r--layouts/_partials/header.html7
-rw-r--r--layouts/_shortcodes/email.html1
-rw-r--r--layouts/_shortcodes/marginnote.html1
-rw-r--r--layouts/baseof.html13
-rw-r--r--layouts/blog/page.html5
-rw-r--r--layouts/blog/section.html10
-rw-r--r--layouts/home.html3
9 files changed, 60 insertions, 0 deletions
diff --git a/layouts/_partials/footer.html b/layouts/_partials/footer.html
new file mode 100644
index 0000000..cdda1ac
--- /dev/null
+++ b/layouts/_partials/footer.html
@@ -0,0 +1,11 @@
+<footer>
+<hr>
+
+<p><a href="#">Back to top.</a></p>
+
+<p>This website was built using <a href="https://gohugo.io">Hugo</a> and a custom minimal theme.</p>
+
+<p>This website contains no JavaScript.</p>
+
+<p>This work is licensed under <a href="https://creativecommons.org/licenses/by-sa/4.0/">CC BY-SA 4.0</a><img src="https://mirrors.creativecommons.org/presskit/icons/cc.svg" alt="" style="max-width: 1em;max-height:1em;margin-left: .2em;"><img src="https://mirrors.creativecommons.org/presskit/icons/by.svg" alt="" style="max-width: 1em;max-height:1em;margin-left: .2em;"><img src="https://mirrors.creativecommons.org/presskit/icons/sa.svg" alt="" style="max-width: 1em;max-height:1em;margin-left: .2em;"></p>
+</footer>
diff --git a/layouts/_partials/head.html b/layouts/_partials/head.html
new file mode 100644
index 0000000..54d333a
--- /dev/null
+++ b/layouts/_partials/head.html
@@ -0,0 +1,9 @@
+<head>
+ <title>{{ if not .IsHome }}{{ .Title }} | {{ end }}{{ .Site.Title }}</title>
+ <link rel="canonical" href="{{ .Site.BaseURL }}">
+ <link rel='alternate' type='application/rss+xml' title="{{ .Site.Title }} RSS" href='/index.xml'>
+ <link rel="stylesheet" type="text/css" href="/style.css">
+ <meta name="viewport" content="width=device-width, initial-scale=1">
+ <meta name="robots" content="index, follow">
+ <meta charset="utf-8">
+</head>
diff --git a/layouts/_partials/header.html b/layouts/_partials/header.html
new file mode 100644
index 0000000..762a4bc
--- /dev/null
+++ b/layouts/_partials/header.html
@@ -0,0 +1,7 @@
+<header>
+ <a href="{{ .Site.BaseURL }}">{{ .Site.Title }}</a>
+ <hr>
+ {{ range .Site.Menus.nav }}
+ <a href="{{ .URL }}">{{ .Name }}</a><br>
+ {{ end }}
+</header>
diff --git a/layouts/_shortcodes/email.html b/layouts/_shortcodes/email.html
new file mode 100644
index 0000000..7363f60
--- /dev/null
+++ b/layouts/_shortcodes/email.html
@@ -0,0 +1 @@
+<span class="email">jhand@<span>manoa.</span><span>hawaii.</span>edu</span> \ No newline at end of file
diff --git a/layouts/_shortcodes/marginnote.html b/layouts/_shortcodes/marginnote.html
new file mode 100644
index 0000000..5a3defc
--- /dev/null
+++ b/layouts/_shortcodes/marginnote.html
@@ -0,0 +1 @@
+<span class="marginnote_indicator">&#8853;</span><span class="marginnote">{{ .Inner | .Page.RenderString }}</span>
diff --git a/layouts/baseof.html b/layouts/baseof.html
new file mode 100644
index 0000000..281a59c
--- /dev/null
+++ b/layouts/baseof.html
@@ -0,0 +1,13 @@
+<!DOCTYPE html>
+<html lang="{{ .Site.Language }}">
+<body>
+{{ partial "head.html" . }}
+{{ partial "header.html" . }}
+<main>
+{{ block "main" . -}}
+{{- .Content -}}
+{{ end }}
+{{ partial "footer.html" . }}
+</main>
+</body>
+</html>
diff --git a/layouts/blog/page.html b/layouts/blog/page.html
new file mode 100644
index 0000000..67e7901
--- /dev/null
+++ b/layouts/blog/page.html
@@ -0,0 +1,5 @@
+{{ define "main" }}
+<h1>{{ .Title }}</h1>
+<p>{{ .Date.Format "Jan 2, 2006" }} &ndash; {{ .WordCount }} words, ~{{ .ReadingTime }} minutes</p>
+{{ .Content }}
+{{ end }}
diff --git a/layouts/blog/section.html b/layouts/blog/section.html
new file mode 100644
index 0000000..4bbfd38
--- /dev/null
+++ b/layouts/blog/section.html
@@ -0,0 +1,10 @@
+{{ define "main" }}
+<h1>{{ .Title }}</h1>
+{{ .Content }}
+<ul>
+{{ range.Pages -}}
+<li>
+{{ .Date.Format "2006, Jan 2" }} &ndash; <a href="{{ .RelPermalink }}">{{ .Title }}</a>
+{{- end }}
+</ul>
+{{ end }}
diff --git a/layouts/home.html b/layouts/home.html
new file mode 100644
index 0000000..9983b08
--- /dev/null
+++ b/layouts/home.html
@@ -0,0 +1,3 @@
+{{ define "main" }}
+{{ .Content }}
+{{ end }}