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

github.com/mattstratton/castanet.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Stratton <matt.stratton@gmail.com>2017-04-26 16:11:29 +0300
committerMatt Stratton <matt.stratton@gmail.com>2017-04-26 16:11:29 +0300
commitf3906f0859d86ab647302f45b1b45de54c920bf0 (patch)
treeb98b4275e26779e9383d10ae7f6e6ed53df9c955 /layouts/partials
parent8b26f5ab71e282adf8dcaf71bc597fb45d622117 (diff)
Remove baseurl reference from path to scripts
Diffstat (limited to 'layouts/partials')
-rw-r--r--layouts/partials/footer_scripts.html2
-rw-r--r--layouts/partials/head_includes.html6
2 files changed, 4 insertions, 4 deletions
diff --git a/layouts/partials/footer_scripts.html b/layouts/partials/footer_scripts.html
index 43c418c..0a17f2e 100644
--- a/layouts/partials/footer_scripts.html
+++ b/layouts/partials/footer_scripts.html
@@ -1,4 +1,4 @@
-<script src="{{ .Site.BaseURL }}js/castanet-min.js"></script>
+<script src="/js/castanet-min.js"></script>
<script>
$("#share").jsSocials({
shares: ["facebook", "linkedin", "pinterest",
diff --git a/layouts/partials/head_includes.html b/layouts/partials/head_includes.html
index 4ed73dc..044228e 100644
--- a/layouts/partials/head_includes.html
+++ b/layouts/partials/head_includes.html
@@ -1,10 +1,10 @@
{{ if isset $.Site.Params "site_theme"}}
-<link href="{{ .Site.BaseURL }}css/{{ $.Site.Params.site_theme}}.css" rel="stylesheet">
+<link href="/css/{{ $.Site.Params.site_theme}}.css" rel="stylesheet">
{{ else }}
-<link href="{{ .Site.BaseURL }}css/orange.css" rel="stylesheet">
+<link href="/css/orange.css" rel="stylesheet">
{{ end }}
<link href="https://fonts.googleapis.com/css?family=Lato|Raleway" rel="stylesheet">
<!-- Custom CSS -->
{{ range .Site.Params.custom_css }}
- <link rel="stylesheet" href="{{ $.Site.BaseURL }}{{ . }}">
+ <link rel="stylesheet" href="/{{ . }}">
{{ end }}