summaryrefslogtreecommitdiff
path: root/layouts/_default
diff options
context:
space:
mode:
authorAdam Whitlock <adam@adamwhitlock.com>2021-12-22 19:48:59 -0600
committerAdam Whitlock <adam@adamwhitlock.com>2021-12-29 23:02:47 -0600
commitb4b02a5240c5503a66072cd2725a9d6ea76f985a (patch)
tree99905036f5002062949a944beb4a38b1f6170415 /layouts/_default
Initial commit of a working Hugo theme using Bulma
Diffstat (limited to 'layouts/_default')
-rw-r--r--layouts/_default/baseof.html15
-rw-r--r--layouts/_default/list.html0
-rw-r--r--layouts/_default/single.html18
3 files changed, 33 insertions, 0 deletions
diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html
new file mode 100644
index 0000000..55aeb23
--- /dev/null
+++ b/layouts/_default/baseof.html
@@ -0,0 +1,15 @@
+<!DOCTYPE html>
+<html>
+ {{- partial "head.html" . -}}
+ <body>
+ <div id="container">
+ {{- partial "header.html" . -}}
+ <div class="container">
+ <div id="content">
+ {{- block "main" . }}{{- end }}
+ </div>
+ </div>
+ {{- partial "footer.html" . -}}
+ </div>
+ </body>
+</html> \ No newline at end of file
diff --git a/layouts/_default/list.html b/layouts/_default/list.html
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/layouts/_default/list.html
diff --git a/layouts/_default/single.html b/layouts/_default/single.html
new file mode 100644
index 0000000..65d1668
--- /dev/null
+++ b/layouts/_default/single.html
@@ -0,0 +1,18 @@
+{{ define "main"}}
+ <!-- content -->
+ <div class="content is-normal">
+ <div class="level">
+ </div>
+ <!-- published date -->
+ <p class="title is-3"><i class="fas fa-file"></i> {{.Page.Title}}</p>
+ <p class="subtitle is-4">{{.Page.Description}}</p>
+ {{ $dateFormat := .Site.Params.dateFormat | default "January 2, 2006"}}
+ <p class="date">Published on {{ .PublishDate.Format $dateFormat }}{{ if ne .Lastmod .PublishDate }}, last updated on {{ .Lastmod.Format $dateFormat }}
+ {{ end }}
+ </p>
+
+
+
+ {{ .Content }}
+ </div>
+{{ end }}