Recolor and p readjust

This commit is contained in:
infidel
2022-11-15 00:57:14 +07:00
parent b6f9e18e61
commit e6fdeb9d4f
7 changed files with 22 additions and 7 deletions

Binary file not shown.

Binary file not shown.

View File

@@ -12,6 +12,7 @@
<li class="pattern">
{{ $active := or ($current.IsMenuCurrent "nav" .) ($current.HasMenuCurrent "nav" .) }}
{{ $active = or $active (eq .Name $current.Title) }}
{{ $active = or $active (and (eq .Name "Home") (eq $current.Section "")) }}
{{ $active = or $active (and (eq .Name "Blog") (eq $current.Section "post")) }}
{{ $active = or $active (and (eq .Name "Tags") (eq $current.Section "tags")) }}
<a href="{{ .URL }}" {{ if $active }}aria-current="page"{{ end }}>
@@ -23,4 +24,4 @@
</li>
{{ end }}
</ul>
</nav>
</nav>