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

github.com/apvarun/showcase-hugo-theme.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.html21
1 files changed, 4 insertions, 17 deletions
diff --git a/layouts/partials/header.html b/layouts/partials/header.html
index 474dcd3..3c603d3 100644
--- a/layouts/partials/header.html
+++ b/layouts/partials/header.html
@@ -6,26 +6,12 @@
class="flex title-font font-medium items-center text-gray-900 mb-4 md:mb-0"
href="{{ .Site.BaseURL }}"
>
- <svg
- xmlns="http://www.w3.org/2000/svg"
- fill="none"
- stroke="currentColor"
- stroke-linecap="round"
- stroke-linejoin="round"
- stroke-width="2"
- class="w-10 h-10 text-white p-2 bg-blue-500 rounded-full"
- viewBox="0 0 24 24"
- >
- <path
- d="M12 2L2 7l10 5 10-5-10-5zM2 17l10 5 10-5M2 12l10 5 10-5"
- ></path>
- </svg>
- <span class="ml-3 text-xl">{{ .Site.Params.Author }}</span>
+ {{- partial "logo.html" . -}}
</a>
<nav
class="md:ml-auto flex flex-wrap items-center text-base justify-center"
>
- {{ if eq .Site.Params.hideAutoMenu false }}
+ {{ if and (eq .Site.Params.hideAutoMenu false) (eq $.IsNode true ) }}
<a
class="mr-2 px-2 rounded cursor-pointer select-none hover:text-gray-900 show-all"
>All</a
@@ -35,7 +21,8 @@
class="mr-2 px-2 rounded cursor-pointer select-none hover:text-gray-900 filter-{{lower .Title}}"
>{{.Title}}</a
>
- {{ end }}{{ end }}
+ {{ end }}
+ {{ end }}
{{ range .Site.Menus.main }}
<a
href="{{ .URL }}"