mirror of
https://github.com/adityatelange/hugo-PaperMod.git
synced 2025-05-09 11:52:00 -04:00
Add pre
and post
menu params
so that icons can be added via external scripts (ex. fontawesome) fixes: #420 ref: https://gohugo.io/content-management/menus/#params
This commit is contained in:
parent
d35056c664
commit
5c26fda276
1 changed files with 2 additions and 0 deletions
|
@ -148,7 +148,9 @@
|
|||
<a href="{{ .URL | absLangURL }}" title="{{ .Title | default .Name }} {{- cond $is_search (" (Alt + /)" | safeHTMLAttr) ("" | safeHTMLAttr ) }}"
|
||||
{{- cond $is_search (" accesskey=/" | safeHTMLAttr) ("" | safeHTMLAttr ) }}>
|
||||
<span {{- if eq $menu_item_url $page_url }} class="active" {{- end }}>
|
||||
{{- .Pre }}
|
||||
{{- .Name -}}
|
||||
{{ .Post -}}
|
||||
</span>
|
||||
</a>
|
||||
</li>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue