From 314fd719d318ebba7c85e50e621c021179054290 Mon Sep 17 00:00:00 2001 From: Alexander Neonxp Kiryukhin Date: Sun, 15 Dec 2024 15:10:57 +0300 Subject: Auto-commit 2024-12-15 --- layouts/_default/_markup/render-image.html | 3 ++- layouts/_default/single.html | 4 ++-- layouts/go/single.html | 4 ++-- layouts/partials/single/header.html | 2 +- layouts/partials/walk.html | 16 ++++++++++------ 5 files changed, 17 insertions(+), 12 deletions(-) (limited to 'layouts') diff --git a/layouts/_default/_markup/render-image.html b/layouts/_default/_markup/render-image.html index b2ccc08..3d15a11 100644 --- a/layouts/_default/_markup/render-image.html +++ b/layouts/_default/_markup/render-image.html @@ -1,5 +1,5 @@
- + {{ . }} + {{- with .Title }}
{{.}}
{{end -}}
\ No newline at end of file diff --git a/layouts/_default/single.html b/layouts/_default/single.html index c0b1eef..c5f73ba 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -1,6 +1,6 @@ {{ define "main" }} -
-
+
+
{{ partial "single/header.html" . }}
{{ .Content }}
{{ partial "single/footer.html" . }} diff --git a/layouts/go/single.html b/layouts/go/single.html index 6acf2b6..120c01d 100644 --- a/layouts/go/single.html +++ b/layouts/go/single.html @@ -1,6 +1,6 @@ {{ define "main" }} -
-
+
+
{{ partial "single/header.html" . }}
Установка: diff --git a/layouts/partials/single/header.html b/layouts/partials/single/header.html index 5566c56..c1c60a2 100644 --- a/layouts/partials/single/header.html +++ b/layouts/partials/single/header.html @@ -8,5 +8,5 @@
{{ end }} {{ if .Params.Image }} - + {{ end }} \ No newline at end of file diff --git a/layouts/partials/walk.html b/layouts/partials/walk.html index e115d6f..addf6f6 100644 --- a/layouts/partials/walk.html +++ b/layouts/partials/walk.html @@ -1,10 +1,9 @@ {{- $page := .page }} {{- range .menuEntries }} {{- $attrs := dict "href" .URL }} + {{- $attrs = merge $attrs (dict "class" "nav-link") }} {{- if $page.IsMenuCurrent .Menu . }} - {{- $attrs = merge $attrs (dict "class" "active" "aria-current" "page") }} - {{- else if $page.HasMenuCurrent .Menu .}} - {{- $attrs = merge $attrs (dict "class" "ancestor" "aria-current" "true") }} + {{- $attrs = merge $attrs (dict "class" "active nav-link" "aria-current" "page") }} {{- end }} {{- $name := .Name }} {{- with .Identifier }} @@ -15,10 +14,15 @@