diff options
author | Simon <gevhaz@tutanota.com> | 2020-05-24 13:50:02 +0300 |
---|---|---|
committer | Simon <gevhaz@tutanota.com> | 2020-05-24 13:50:02 +0300 |
commit | eb1b38f7ff303e1e8d92dbe08041d0e731d5a384 (patch) | |
tree | b9465544c19259c0abc52fc4653bc83101310d9c | |
parent | 21c0a92f394745a6817dfd3bde24ad87fd0dffd0 (diff) |
Changed archive date format and fixed deprecated page variable
-rw-r--r-- | layouts/archive/list.html | 2 | ||||
-rw-r--r-- | layouts/partials/header.html | 2 |
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 -}}"> |