diff options
author | dadosch <dadosch@noreply.users.github.com> | 2018-10-06 01:41:30 +0300 |
---|---|---|
committer | dadosch <dadosch@noreply.users.github.com> | 2018-10-06 01:41:30 +0300 |
commit | 221b7f9f36092d501421ee19ab463b5e38d2e343 (patch) | |
tree | 48b44bc91d5728675e5b3267a016e7ac68d7cd25 /layouts | |
parent | f125dc7a9db0f7e9b5745a31c8fd35ff6f45d1dd (diff) |
add config option for CDN use
Diffstat (limited to 'layouts')
-rw-r--r-- | layouts/partials/top.html | 6 |
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 }}"> |