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

github.com/gevhaz/hugo-theme-notrack.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon <gevhaz@tutanota.com>2020-05-24 21:58:10 +0300
committerSimon <gevhaz@tutanota.com>2020-05-24 21:58:10 +0300
commite0e67cb4b1fcf3c361908ba96e0d5b8f23336dcc (patch)
tree62ceb312cb2804d54b0825f42357da5c1ec18b4b /layouts
parent41bf6fb5f312959d923b55cbecc171bf9529e300 (diff)
Identation and replacing deprecated variable
Diffstat (limited to 'layouts')
-rw-r--r--layouts/_default/list.html6
-rw-r--r--layouts/partials/header.html6
2 files changed, 7 insertions, 5 deletions
diff --git a/layouts/_default/list.html b/layouts/_default/list.html
index 46aaf27..cc2b0fe 100644
--- a/layouts/_default/list.html
+++ b/layouts/_default/list.html
@@ -14,9 +14,9 @@
{{- end -}}
{{- range $pages.Pages -}}
- <article>
- {{ partial "blog-entry-summary.html" . }}
- </article>
+ <article>
+ {{ partial "blog-entry-summary.html" . }}
+ </article>
{{- end -}}
{{ partial "pagination.html" . }}
diff --git a/layouts/partials/header.html b/layouts/partials/header.html
index a404ea8..ef4928b 100644
--- a/layouts/partials/header.html
+++ b/layouts/partials/header.html
@@ -58,9 +58,11 @@
{{- with $currentMenusPage }}
{{- $active = and $active (ne $currentMenusPage.IsHome true) }}
{{- end }}
- {{- $active = and $active (ne $currentPage.File.Dir "/" ) }}
+ {{ with $currentPage.File }}
+ {{- $active = and $active (ne .Dir "/" ) }}
+ {{ end }}
{{- $active = or $active (eq $currentPage.Title .Name ) }}
- {{- $active = or $active (eq $currentPage.URL .URL ) }}
+ {{- $active = or $active (eq $currentPage.RelPermalink .URL ) }}
{{- $active = or $active (and $currentPageIsTaxonomy $currentMenuInMainSections) }}
{{- $active = or $active ($currentPage.IsMenuCurrent "main" . ) }}
<li class="{{- if $active -}} activetab {{- end -}}">