fix build
This commit is contained in:
parent
d1ebe75f4e
commit
9a0504b33b
@ -1,3 +1,4 @@
|
|||||||
|
license = """
|
||||||
Font Awesome Free 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
|
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
|
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.**
|
to represent the company, product, or service to which they refer.**
|
||||||
|
"""
|
@ -18,8 +18,6 @@
|
|||||||
{{ partial "math.html" . }}
|
{{ partial "math.html" . }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
||||||
{{ $font_awesome := getJSON "themes/contrast-hugo/static/font-awesome/icons.json" }}
|
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
|
|
||||||
<header class="icons">
|
<header class="icons">
|
||||||
@ -29,7 +27,7 @@
|
|||||||
{{ range $menu, $items := .Site.Menus }}
|
{{ range $menu, $items := .Site.Menus }}
|
||||||
<nav>
|
<nav>
|
||||||
{{ range $items }}
|
{{ 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 }}
|
{{ $svg := $icon.svg.solid | default $icon.svg.regular | default $icon.svg.brands }}
|
||||||
<a href="{{ .URL }}" {{ if (eq $.RelPermalink .URL) }}class="selected"{{ end }}>
|
<a href="{{ .URL }}" {{ if (eq $.RelPermalink .URL) }}class="selected"{{ end }}>
|
||||||
<span {{ if eq $menu "main" }}class="hidden"{{ end }}>{{ safeHTML $svg.raw }}</span>
|
<span {{ if eq $menu "main" }}class="hidden"{{ end }}>{{ safeHTML $svg.raw }}</span>
|
||||||
|
Loading…
Reference in New Issue
Block a user