remove useCDN option
This commit is contained in:
parent
3fa25abce4
commit
37f660ebbd
|
@ -77,7 +77,6 @@ paginate=3 # articles per page
|
||||||
|
|
||||||
[params]
|
[params]
|
||||||
mode="auto" # color-mode → light,dark,toggle or auto
|
mode="auto" # color-mode → light,dark,toggle or auto
|
||||||
useCDN=false # don't use CDNs for fonts and icons, instead serve them locally.
|
|
||||||
subtitle = "Minimal and Clean [blog theme for Hugo](https://github.com/athul/archie)"
|
subtitle = "Minimal and Clean [blog theme for Hugo](https://github.com/athul/archie)"
|
||||||
mathjax = true # enable MathJax support
|
mathjax = true # enable MathJax support
|
||||||
katex = true # enable KaTeX support
|
katex = true # enable KaTeX support
|
||||||
|
|
|
@ -8,7 +8,6 @@ pygmentscodefences = true
|
||||||
pygmentscodefencesguesssyntax = true
|
pygmentscodefencesguesssyntax = true
|
||||||
[params]
|
[params]
|
||||||
mode="auto"
|
mode="auto"
|
||||||
useCDN=false
|
|
||||||
subtitle = "Minimal and Clean [blog theme for Hugo](https://github.com/athul/archie)"
|
subtitle = "Minimal and Clean [blog theme for Hugo](https://github.com/athul/archie)"
|
||||||
|
|
||||||
[[params.social]]
|
[[params.social]]
|
||||||
|
|
|
@ -22,19 +22,9 @@
|
||||||
|
|
||||||
{{- template "_internal/opengraph.html" . -}}
|
{{- template "_internal/opengraph.html" . -}}
|
||||||
{{- template "_internal/twitter_cards.html" . -}}
|
{{- template "_internal/twitter_cards.html" . -}}
|
||||||
{{ if and (isset .Site.Params "social") (.Site.Params.useCDN | default false) -}}
|
|
||||||
<script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
|
|
||||||
{{- else if or (isset .Site.Params "social") (eq .Site.Params.mode "toggle") -}}
|
|
||||||
<script src="{{ .Site.BaseURL }}js/feather.min.js"></script>
|
<script src="{{ .Site.BaseURL }}js/feather.min.js"></script>
|
||||||
{{ end }}
|
|
||||||
{{ if .Site.Params.useCDN | default false -}}
|
|
||||||
<link href="https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:ital,wght@1,500&display=swap" rel="stylesheet">
|
|
||||||
<link href="https://fonts.googleapis.com/css2?family=Fira+Sans&display=swap" rel="stylesheet">
|
|
||||||
<link href="https://fonts.googleapis.com/css?family=Roboto+Mono" rel="stylesheet">
|
|
||||||
{{- else -}}
|
|
||||||
{{ $fontstyle := resources.Get "css/fonts.css" | fingerprint }}
|
{{ $fontstyle := resources.Get "css/fonts.css" | fingerprint }}
|
||||||
<link href="{{ $fontstyle.Permalink }}" rel="stylesheet">
|
<link href="{{ $fontstyle.Permalink }}" rel="stylesheet">
|
||||||
{{ end }}
|
|
||||||
|
|
||||||
{{ $style := resources.Get "css/main.css" | fingerprint }}
|
{{ $style := resources.Get "css/main.css" | fingerprint }}
|
||||||
<link rel="stylesheet" type="text/css" media="screen" href="{{ $style.Permalink }}" />
|
<link rel="stylesheet" type="text/css" media="screen" href="{{ $style.Permalink }}" />
|
||||||
|
|
Loading…
Reference in New Issue