mirror of
https://github.com/adityatelange/hugo-PaperMod.git
synced 2023-12-21 10:22:58 +01:00
header: add title attribute to menus
This commit is contained in:
parent
73de54e4bc
commit
153740bbac
@ -112,7 +112,7 @@
|
||||
{{- $menu_item_url := (cond (strings.HasSuffix .URL "/") .URL (printf "%s/" .URL) ) | absLangURL }}
|
||||
{{- $page_url:= $currentPage.Permalink | absLangURL }}
|
||||
<li>
|
||||
<a href="{{ .URL | absLangURL }}">
|
||||
<a href="{{ .URL | absLangURL }}" title="{{ .Title | default .Name }}" class="{{ with .Params.class }}{{ . }}{{ end }}">
|
||||
<span {{- if eq $menu_item_url $page_url }} class="active" {{- end }}>
|
||||
{{ .Name }}
|
||||
</span>
|
||||
|
Loading…
Reference in New Issue
Block a user