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 13:50:02 +0300
committerSimon <gevhaz@tutanota.com>2020-05-24 13:50:02 +0300
commiteb1b38f7ff303e1e8d92dbe08041d0e731d5a384 (patch)
treeb9465544c19259c0abc52fc4653bc83101310d9c
parent21c0a92f394745a6817dfd3bde24ad87fd0dffd0 (diff)
Changed archive date format and fixed deprecated page variable
-rw-r--r--layouts/archive/list.html2
-rw-r--r--layouts/partials/header.html2
2 files changed, 2 insertions, 2 deletions
diff --git a/layouts/archive/list.html b/layouts/archive/list.html
index f541a80..7f1facd 100644
--- a/layouts/archive/list.html
+++ b/layouts/archive/list.html
@@ -9,7 +9,7 @@
<ul>
{{ range.Pages }}
- <li> <time>{{ .Date.Format "01/02" }}</time>
+ <li> <time>{{ .Date.Format "2/1" }}</time>
<span> - </span>
<a href="{{ .Permalink }}">
<span>{{ .Title }}</span>
diff --git a/layouts/partials/header.html b/layouts/partials/header.html
index 3269a94..e656478 100644
--- a/layouts/partials/header.html
+++ b/layouts/partials/header.html
@@ -58,7 +58,7 @@
{{- with $currentMenusPage }}
{{- $active = and $active (ne $currentMenusPage.IsHome true) }}
{{- end }}
- {{- $active = and $active (ne $currentPage.Dir "/" ) }}
+ {{- $active = and $active (ne $currentPage.File.Dir "/" ) }}
{{- $active = or $active (and $currentPageIsTaxonomy $currentMenuInMainSections) }}
{{- $active = or $active ($currentPage.IsMenuCurrent "main" . ) }}
<li class="{{- if $active -}} activetab {{- end -}}">