diff options
Diffstat (limited to 'layouts')
-rw-r--r-- | layouts/partials/head.html | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/layouts/partials/head.html b/layouts/partials/head.html index f503bfb..f31a14b 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -52,10 +52,18 @@ {{ partial "favicon.html" . }} {{ range .Site.Params.custom_css }} - <link rel="stylesheet" href="{{ $.Site.BaseURL }}{{ . }}"> + {{ if findRE "https?://" . }} + <link rel="stylesheet" href="{{ . }}"> + {{ else }} + <link rel="stylesheet" href="{{ $.Site.BaseURL }}{{ . }}"> + {{ end }} {{ end }} {{ range .Site.Params.custom_js }} - <script src="{{ $.Site.BaseURL }}{{ . }}"></script> + {{ if findRE "https?://" . }} + <script src="{{ . }}"></script> + {{ else }} + <script src="{{ $.Site.BaseURL }}{{ . }}"></script> + {{ end }} {{ end }} </head> |