From f51d1cf771d3d3c7fecc246ecbcd2a35283938e5 Mon Sep 17 00:00:00 2001 From: rojenzaman Date: Fri, 9 Apr 2021 16:59:40 +0300 Subject: [PATCH] add custom layouts for themes --- layouts/_default/search.html | 69 ++++++++++++++++++++++++++ layouts/partials/navigation-items.html | 23 +++++++++ 2 files changed, 92 insertions(+) create mode 100644 layouts/_default/search.html create mode 100644 layouts/partials/navigation-items.html diff --git a/layouts/_default/search.html b/layouts/_default/search.html new file mode 100644 index 0000000..ef6c4b7 --- /dev/null +++ b/layouts/_default/search.html @@ -0,0 +1,69 @@ +{{ define "main" }} + + + + + + + + + + + + + + + + {{ $search_js_md5 := (readFile "themes/hugo-search-fuse-js/static/js/search.js" | md5) }} + +{{ end }} diff --git a/layouts/partials/navigation-items.html b/layouts/partials/navigation-items.html new file mode 100644 index 0000000..b31f6ce --- /dev/null +++ b/layouts/partials/navigation-items.html @@ -0,0 +1,23 @@ +{{- $nav := . -}} +{{- if or $nav.showCategories $nav.showTags $nav.custom -}} + +{{- end -}}