diff options
author | Jake Howard <git@theorangeone.net> | 2018-01-06 16:51:59 +0300 |
---|---|---|
committer | Jake Howard <git@theorangeone.net> | 2018-01-06 16:51:59 +0300 |
commit | b02cf6758da794445f5f4e421b5030abb8cf93f6 (patch) | |
tree | d268e27630fca7248e3779cf1f4d976d51568778 | |
parent | 57ba5fc2313a00a7ff5bfd2fb3420d07275546a6 (diff) |
Use `relURL` to build URLs, rather than prepending `baseURL`
Thanks @bep!
-rw-r--r-- | layouts/_default/baseof.html | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index 0cb0fb4..7cbe379 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -14,7 +14,7 @@ <link rel="stylesheet" href='https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.12.0/styles/{{ default "monokai-sublime" .Site.Params.hljs_theme }}.min.css' /> {{ if fileExists "static/index.css" }} - <link rel="stylesheet" href='{{ .Site.BaseURL }}/index.css' /> + <link rel="stylesheet" href='{{ relURL "index.css" }}' /> {{ end }} </head> <body> @@ -29,10 +29,10 @@ <script type="application/json" id="reveal-user-config">{{ jsonify .Site.Params.revealjs | safeJS }}</script> <script type="application/json" id="reveal-default-config">{{ jsonify .Site.Data.reveal_defaults | safeJS }}</script> -<script type="application/javascript" src="{{ .Site.BaseURL }}/hugo-theme-revealjs.js"></script> +<script type="application/javascript" src='{{ relURL "hugo-theme-revealjs.js" }}'></script> {{ if fileExists "static/index.js" }} - <script type="application/json" src="{{ .Site.BaseURL }}.index.js"></script> + <script type="application/json" src='{{ relURL "index.js" }}'</script> {{ end }} </body> </html> |