Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/damiencaselli/paperback.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/partials/header.html')
-rw-r--r--layouts/partials/header.html11
1 files changed, 11 insertions, 0 deletions
diff --git a/layouts/partials/header.html b/layouts/partials/header.html
new file mode 100644
index 0000000..64fe71b
--- /dev/null
+++ b/layouts/partials/header.html
@@ -0,0 +1,11 @@
+<header>
+ <h1>{{ .Title }}</h1>
+
+ {{ if ne .IsNode true }}
+ <time datetime="{{ .Date }}">{{ dateFormat "2006/01/02" .Date }}</time>
+ {{ end }}
+
+ {{ if and .IsHome (isset .Site.Params "Tagline") }}
+ <p>{{ .Site.Params.Tagline }}</p>
+ {{ end }}
+</header>