From e5314164c5a8605f09a0d3deaa499a6c0eb2d422 Mon Sep 17 00:00:00 2001 From: Nanci Lancaster Date: Tue, 6 Apr 2021 12:20:17 -0500 Subject: [PATCH] added search functionality to docs on Pinniped.dev Signed-off-by: Nanci Lancaster --- public/categories/index.xml | 9 +++++++++ public/index.xml | 9 +++++++++ public/sitemap.xml | 11 +++++++++++ public/tags/index.xml | 9 +++++++++ site/themes/pinniped/layouts/_default/baseof.html | 9 +++++++++ .../pinniped/layouts/partials/docs-sidebar.html | 8 ++++++++ 6 files changed, 55 insertions(+) create mode 100644 public/categories/index.xml create mode 100644 public/index.xml create mode 100644 public/sitemap.xml create mode 100644 public/tags/index.xml diff --git a/public/categories/index.xml b/public/categories/index.xml new file mode 100644 index 00000000..1edd3cb5 --- /dev/null +++ b/public/categories/index.xml @@ -0,0 +1,9 @@ + + + + Categories on + /categories/ + Recent content in Categories on + Hugo -- gohugo.io + + diff --git a/public/index.xml b/public/index.xml new file mode 100644 index 00000000..e61b979e --- /dev/null +++ b/public/index.xml @@ -0,0 +1,9 @@ + + + + + / + Recent content on + Hugo -- gohugo.io + + diff --git a/public/sitemap.xml b/public/sitemap.xml new file mode 100644 index 00000000..cd5ab70f --- /dev/null +++ b/public/sitemap.xml @@ -0,0 +1,11 @@ + + + + / + + /categories/ + + /tags/ + + diff --git a/public/tags/index.xml b/public/tags/index.xml new file mode 100644 index 00000000..1c4e357b --- /dev/null +++ b/public/tags/index.xml @@ -0,0 +1,9 @@ + + + + Tags on + /tags/ + Recent content in Tags on + Hugo -- gohugo.io + + diff --git a/site/themes/pinniped/layouts/_default/baseof.html b/site/themes/pinniped/layouts/_default/baseof.html index 2977d22e..e9a0e599 100644 --- a/site/themes/pinniped/layouts/_default/baseof.html +++ b/site/themes/pinniped/layouts/_default/baseof.html @@ -15,10 +15,19 @@ {{ with .OutputFormats.Get "RSS" -}} {{ printf `` .Rel .MediaType.Type .RelPermalink $.Site.Title | safeHTML }} {{- end }} + {{ partial "header" . }} {{ block "main" . }}{{ end }} {{ partial "footer" . }} + + diff --git a/site/themes/pinniped/layouts/partials/docs-sidebar.html b/site/themes/pinniped/layouts/partials/docs-sidebar.html index cdd79d4b..00d68b75 100644 --- a/site/themes/pinniped/layouts/partials/docs-sidebar.html +++ b/site/themes/pinniped/layouts/partials/docs-sidebar.html @@ -1,4 +1,12 @@
+
+ + + +
    {{- $currentPage := . }} {{- range .Site.Menus.docs }}