aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn Nguyen <jtnguyen236@gmail.com>2015-09-19 16:51:02 +0800
committerJohn Nguyen <jtnguyen236@gmail.com>2015-09-19 16:51:02 +0800
commit9ce37d705944430a2267b782a0e7c643a52a2848 (patch)
tree0d3e86ac520d0e4cf74da9e9bf88ca610f8d372c
parentd67df9b5788c4c42a5549b0f9c9471d9cd4714cb (diff)
Added BaseURL to links
-rw-r--r--layouts/partials/footer.html4
-rw-r--r--layouts/partials/header.html10
-rw-r--r--layouts/partials/top-block.html2
3 files changed, 8 insertions, 8 deletions
diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html
index 1eb3f85..94f892d 100644
--- a/layouts/partials/footer.html
+++ b/layouts/partials/footer.html
@@ -17,8 +17,8 @@
<!-- Bootstrap core JavaScript -->
<!-- Placed at the end of the document so the pages load faster -->
-<script src="/js/jquery-2.1.1.min.js"></script>
-<script src="/js/owl.carousel.min.js"></script>
+<script src="{{ .Site.BaseURL }}js/jquery-2.1.1.min.js"></script>
+<script src="{{ .Site.BaseURL }}js/owl.carousel.min.js"></script>
<!--<script src="/js/bootstrap.min.js"></script>-->
<script>
$(function() {
diff --git a/layouts/partials/header.html b/layouts/partials/header.html
index 5fdac85..f832f7d 100644
--- a/layouts/partials/header.html
+++ b/layouts/partials/header.html
@@ -9,14 +9,14 @@
<title>{{ .Title }}</title>
<!-- Bootstrap core CSS -->
- <link href="/css/bootstrap-theme.css" rel="stylesheet">
+ <link href="{{ .Site.BaseURL }}css/bootstrap-theme.css" rel="stylesheet">
<link href='http://fonts.googleapis.com/css?family=Arbutus+Slab&family=Cabin:600&family=Source+Code+Pro' rel='stylesheet' type='text/css'>
<!-- Add custom CSS here -->
- <link href="/css/HPstyles.css" rel="stylesheet">
- <link href="/css/hugofont.css" rel="stylesheet">
- <link href="/css/owl.carousel.css" rel="stylesheet">
- <link href="/css/owl.theme.default.css" rel="stylesheet">
+ <link href="{{ .Site.BaseURL }}css/HPstyles.css" rel="stylesheet">
+ <link href="{{ .Site.BaseURL }}css/hugofont.css" rel="stylesheet">
+ <link href="{{ .Site.BaseURL }}css/owl.carousel.css" rel="stylesheet">
+ <link href="{{ .Site.BaseURL }}css/owl.theme.default.css" rel="stylesheet">
<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon" />
<link rel="apple-touch-icon" href="/apple-touch-icon.png" />
</head>
diff --git a/layouts/partials/top-block.html b/layouts/partials/top-block.html
index 3360684..e716c62 100644
--- a/layouts/partials/top-block.html
+++ b/layouts/partials/top-block.html
@@ -2,7 +2,7 @@
<!-- Full Page Image Header Area -->
<div id="top" class="header">
<div class="vert-text">
- <a href="#intro"><img src="{{ .Site.Params.mainIcon }}" class="logo"></a>
+ <a href="#intro"><img src="{{ .Site.BaseURL }}{{ .Site.Params.mainIcon }}" class="logo"></a>
<div class="siteTitle">{{ .Site.Title }}</div>
<div class="description">{{ .Site.Params.description }}</div>
<div class="buttonbox">