diff --git a/layouts/partials/helpers/get-section-url.html b/layouts/partials/helpers/get-section-url.html new file mode 100644 index 0000000..2a902f4 --- /dev/null +++ b/layouts/partials/helpers/get-section-url.html @@ -0,0 +1,5 @@ +{{- if page.IsHome -}} + #{{ partial "helpers/get-section-id.html" . }} +{{- else -}} + {{ site.BaseURL | relLangURL }}#{{ partial "helpers/get-section-id.html" . }} +{{- end -}} \ No newline at end of file diff --git a/layouts/partials/navigators/navbar.html b/layouts/partials/navigators/navbar.html index 114fa6e..aaace5c 100644 --- a/layouts/partials/navigators/navbar.html +++ b/layouts/partials/navigators/navbar.html @@ -88,7 +88,7 @@ {{ $sectionCount = add $sectionCount 1}} {{ if le $sectionCount $maxVisibleSections }}