summaryrefslogtreecommitdiff
path: root/layouts/_default/baseof.html
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/_default/baseof.html')
-rw-r--r--layouts/_default/baseof.html33
1 files changed, 33 insertions, 0 deletions
diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html
new file mode 100644
index 0000000..c665429
--- /dev/null
+++ b/layouts/_default/baseof.html
@@ -0,0 +1,33 @@
+<!DOCTYPE html>
+<html>
+ <head>
+ <title>{{- block "title" . }}{{ .Site.Title }}
+ {{- if .Title }} - {{ .Title }}{{ end }}
+ {{- end }}</title>
+ {{- with .OutputFormats.Get "rss" }}
+ <link rel="{{ .Rel }}" type="{{ .MediaType.Type }}" href="{{ .Permalink }}" title="{{ site.Title }}">
+ {{- end }}
+ </head>
+ <body>
+ {{- block "header" . }}
+ {{- if .Title }}
+ <header>
+ <h1>{{ .Title }}</h1>
+ {{- if .PublishDate }}
+ <p><small>{{ .PublishDate | time.Format ":date_medium" }}</small></p>
+ {{- end }}
+ </header>
+ {{- end }}
+ {{- end }}
+
+ {{- block "main" . }}
+ {{- .Content }}
+ {{- end }}
+
+ {{- with .Parent }}
+ <nav>
+ <p>Go back to <a href="{{ .RelPermalink }}">{{ .LinkTitle }}</a>.</p>
+ </nav>
+ {{- end }}
+ </body>
+</html>