summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--exampleSite/content/about.md1
-rw-r--r--layouts/page/single.html (renamed from layouts/pages/single.html)3
2 files changed, 3 insertions, 1 deletions
diff --git a/exampleSite/content/about.md b/exampleSite/content/about.md
index 4fcbcf3..31a0b56 100644
--- a/exampleSite/content/about.md
+++ b/exampleSite/content/about.md
@@ -1,5 +1,6 @@
---
title: About
+caption: Hello!
---
One of our most pressing and ever-evolving needs as scholars is to pass on our textual artifacts
diff --git a/layouts/pages/single.html b/layouts/page/single.html
index 8e67367..03c488a 100644
--- a/layouts/pages/single.html
+++ b/layouts/page/single.html
@@ -1,6 +1,7 @@
{{ define "main" }}
<article class="page">
- <h1 class="page-title">{{ .Title }}</h1>
+ <h1 class="page-title">{{ .Params.caption | default .Title }}</h1>
{{ .Content }}
</article>
{{ end }}
+