Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/damiencaselli/hugo-journal.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordadosch <dadosch@noreply.users.github.com>2018-10-06 01:41:30 +0300
committerdadosch <dadosch@noreply.users.github.com>2018-10-06 01:41:30 +0300
commit221b7f9f36092d501421ee19ab463b5e38d2e343 (patch)
tree48b44bc91d5728675e5b3267a016e7ac68d7cd25 /layouts
parentf125dc7a9db0f7e9b5745a31c8fd35ff6f45d1dd (diff)
add config option for CDN use
Diffstat (limited to 'layouts')
-rw-r--r--layouts/partials/top.html6
1 files changed, 6 insertions, 0 deletions
diff --git a/layouts/partials/top.html b/layouts/partials/top.html
index b63eed4..60316ff 100644
--- a/layouts/partials/top.html
+++ b/layouts/partials/top.html
@@ -22,7 +22,13 @@
<meta name="description" content="{{ .Description }}">
{{- end }}
+ {{- if .Site.Params.useCDN | default false }}
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Source+Code+Pro|Arvo:400,700">
+ {{- else }}
+ <link rel="stylesheet" href="{{ "css/source-core-pro.css" | relURL }}">
+ <link rel="stylesheet" href="{{ "css/arvo.css" | relURL }}">
+ {{- end }}
+
<link rel="stylesheet" href="{{ "css/highlight.css" | relURL }}">
<link rel="stylesheet" href="{{ "css/journal.css" | relURL }}">
<link href="{{ "index.xml" | relURL }}" rel="alternate" type="application/rss+xml" title="{{ .Site.Title }}">