Add logic to disable showing non-inline CSS
Signed-off-by: Danila Fedorin <danila.fedorin@gmail.com>
This commit is contained in:
parent
ed270bc915
commit
1bc7cba988
|
@ -14,11 +14,15 @@
|
|||
{{ end }}
|
||||
|
||||
<!-- Fonts -->
|
||||
{{ if not (.Site.Params.noCss) }}
|
||||
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Inconsolata:wght@400;700&family=Raleway:wght@400;700&family=Lora&display=block" media="screen">
|
||||
{{ end }}
|
||||
|
||||
<!-- External CSS (normalize and KaTeX -->
|
||||
{{ if not (.Site.Params.noCss) }}
|
||||
{{ partial "defercss.html" (dict "url" .Site.Params.normalizeCssUrl "extra" "") }}
|
||||
{{ partial "defercss.html" (dict "url" .Site.Params.katexCssUrl "extra" "") }}
|
||||
{{ end }}
|
||||
|
||||
<!-- Links to other formats (RSS, TOML) -->
|
||||
{{ range .AlternativeOutputFormats -}}
|
||||
|
@ -32,9 +36,11 @@
|
|||
{{ $icon := resources.Get "img/favicon.png" }}
|
||||
<style>.feather { display: inline !important; width: 10px; height: 10px; }</style>
|
||||
<style>img { max-width: 70%; }</style>
|
||||
{{ if not (.Site.Params.noCss) }}
|
||||
<link rel="stylesheet" href="{{ $style.Permalink }}">
|
||||
{{ partial "defercss.html" (dict "url" $sidenotes.Permalink "extra" "") }}
|
||||
{{ partial "defercss.html" (dict "url" $code.Permalink "extra" "") }}
|
||||
{{ end }}
|
||||
<link rel="icon" type="image/png" href="{{ $icon.Permalink }}">
|
||||
|
||||
{{ if .Site.IsServer }}
|
||||
|
|
Loading…
Reference in New Issue
Block a user