fix build
This commit is contained in:
parent
d1ebe75f4e
commit
9a0504b33b
@ -1,3 +1,4 @@
|
||||
license = """
|
||||
Font Awesome Free License
|
||||
-------------------------
|
||||
|
||||
@ -32,3 +33,4 @@ All brand icons are trademarks of their respective owners. The use of these
|
||||
trademarks does not indicate endorsement of the trademark holder by Font
|
||||
Awesome, nor vice versa. **Please do not use brand logos for any purpose except
|
||||
to represent the company, product, or service to which they refer.**
|
||||
"""
|
@ -18,8 +18,6 @@
|
||||
{{ partial "math.html" . }}
|
||||
{{- end }}
|
||||
|
||||
{{ $font_awesome := getJSON "themes/contrast-hugo/static/font-awesome/icons.json" }}
|
||||
|
||||
<body>
|
||||
|
||||
<header class="icons">
|
||||
@ -29,7 +27,7 @@
|
||||
{{ range $menu, $items := .Site.Menus }}
|
||||
<nav>
|
||||
{{ range $items }}
|
||||
{{ $icon := index $font_awesome .Identifier }}
|
||||
{{ $icon := index $.Site.Data.fontawesome.icons .Identifier }}
|
||||
{{ $svg := $icon.svg.solid | default $icon.svg.regular | default $icon.svg.brands }}
|
||||
<a href="{{ .URL }}" {{ if (eq $.RelPermalink .URL) }}class="selected"{{ end }}>
|
||||
<span {{ if eq $menu "main" }}class="hidden"{{ end }}>{{ safeHTML $svg.raw }}</span>
|
||||
|
Loading…
Reference in New Issue
Block a user