summaryrefslogtreecommitdiff
path: root/layouts/partials
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/partials')
-rw-r--r--layouts/partials/breadcrumbs.html8
-rw-r--r--layouts/partials/children.html7
2 files changed, 15 insertions, 0 deletions
diff --git a/layouts/partials/breadcrumbs.html b/layouts/partials/breadcrumbs.html
new file mode 100644
index 0000000..b5a9860
--- /dev/null
+++ b/layouts/partials/breadcrumbs.html
@@ -0,0 +1,8 @@
+<ul>
+ {{ $ancestors := .Ancestors.Reverse }}
+ {{ range $ancestors }}
+ <li>
+ <a href="{{ .Permalink }}">{{ .Title }}</a>
+ </li>
+ {{ end }}
+</ul>
diff --git a/layouts/partials/children.html b/layouts/partials/children.html
new file mode 100644
index 0000000..132ae8e
--- /dev/null
+++ b/layouts/partials/children.html
@@ -0,0 +1,7 @@
+<ul>
+ {{ range .Pages }}
+ <li>
+ <a href="{{ .Permalink }}">{{ .Title }}</a>
+ </li>
+ {{ end }}
+</ul>