CSS: Prevent Hugo encoding Google Fonts and fix docs sidebar toggle bg

Close #707
This commit is contained in:
George Cushen committed 2018-09-23 18:28:50 +01:00
1 parent 09c3164f51
commit f754e4c7e5
2 files changed
+2 -1

No files matched your search

+1
View File
@@ -1604,6 +1604,7 @@ div.alert a {
line-height: 1;
font-size: 1.2rem;
color: {{ .Get "primary" }};
background-color: transparent;
}
.docs-links {
+1 -1
View File
@@ -84,7 +84,7 @@
{{/* We cannot use SRI with Google Fonts because the CSS is dynamically generated according to the user agent. */}}
{{ with ($scr.Get "google_fonts") }}
<link rel="stylesheet" href="{{ printf "//fonts.googleapis.com/css?family=%s" . }}">
<link rel="stylesheet" {{ printf "href=//fonts.googleapis.com/css?family=%s" . | safeHTMLAttr }}>
{{ end }}
<link rel="stylesheet" href="{{ "styles.css" | relLangURL }}">