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

github.com/curttimson/hugo-theme-massively.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCurtis Timson <curt@live.co.uk>2018-04-02 22:40:53 +0300
committerGitHub <noreply@github.com>2018-04-02 22:40:53 +0300
commit07b3944a6f2d038b394c1682567883771daa2b4a (patch)
treebc75e5feef04e5f2837fc312323b2131bf65a810
parent90ad2844011f715ecb089a229656865916c43fbb (diff)
parent7971d3f123a7207c4c303c097261144df2009b89 (diff)
Merge pull request #16 from pmviva/use-absurl-and-relurl-functions1.0.1
Use absURL and relURL functions instead of BaseURL
-rw-r--r--layouts/_default/single.html4
-rw-r--r--layouts/index.html14
-rw-r--r--layouts/partials/header.html4
-rw-r--r--layouts/partials/htmlhead.html4
-rw-r--r--layouts/partials/nav.html6
-rw-r--r--layouts/partials/posts/featured.html4
-rw-r--r--layouts/partials/posts/list.html4
-rw-r--r--layouts/partials/posts/pagination.html8
-rw-r--r--layouts/partials/scripts/index.html14
-rw-r--r--package.json2
10 files changed, 32 insertions, 32 deletions
diff --git a/layouts/_default/single.html b/layouts/_default/single.html
index b41c550..2499266 100644
--- a/layouts/_default/single.html
+++ b/layouts/_default/single.html
@@ -20,7 +20,7 @@
<p>{{ .Description }}</p>
</header>
{{ if .Params.image }}
- <div class="image main"><img src="{{ .Site.BaseURL }}{{ .Params.image }}" alt="" /></div>
+ <div class="image main"><img src="{{ .Params.image | absURL }}" alt="" /></div>
{{ end }}
{{ .Content }}
@@ -39,4 +39,4 @@
</div>
{{ partial "scripts/index" . }}
</body>
-</html> \ No newline at end of file
+</html>
diff --git a/layouts/index.html b/layouts/index.html
index 391451f..9585426 100644
--- a/layouts/index.html
+++ b/layouts/index.html
@@ -3,7 +3,7 @@
{{ $posts := where .Data.Pages "Type" .Site.Params.Posts.foldername }}
{{ $firstPost := first 1 $posts }}
-
+
{{ if eq .Site.Params.Posts.featuredpost "true" }}
{{ .Scratch.Set "postsForPaging" (after 1 $posts) }}
@@ -31,26 +31,26 @@
{{ partial "posts/featured.html" (dict "firstpost" $firstPost) }}
{{ end }}
{{ partial "posts/list.html" (dict "posts" $postsPaging) }}
-
+
<!-- Footer -->
{{ if gt $postsPaging.TotalPages 1 }}
<footer>
<div class="pagination">
{{ if $postsPaging.HasPrev }}
- <a href="{{ .Site.BaseURL }}{{ $postsPaging.Prev.URL }}" class="previous">Prev</a>
+ <a href="{{ $postsPaging.Prev.URL | absURL }}" class="previous">Prev</a>
{{ end }}
{{ range $postsPaging.Pagers }}
{{ if lt .PageNumber 10 }}
- <a href="{{ $.Site.BaseURL }}{{ .URL }}" class="page{{ if eq .PageNumber $postsPaging.PageNumber }} active{{ end }}">{{ .PageNumber }}</a>
+ <a href="{{ .URL | absURL }}" class="page{{ if eq .PageNumber $postsPaging.PageNumber }} active{{ end }}">{{ .PageNumber }}</a>
{{ end }}
{{ end }}
{{ if $postsPaging.HasNext }}
- <a href="{{ .Site.BaseURL }}{{ $postsPaging.Next.URL }}" class="next">Next</a>
+ <a href="{{ $postsPaging.Next.URL | absURL }}" class="next">Next</a>
{{ end }}
</div>
</footer>
{{ end }}
-
+
</div>
{{ partial "footer/index" . }}
@@ -60,4 +60,4 @@
{{ partial "scripts/index" . }}
</body>
-</html> \ No newline at end of file
+</html>
diff --git a/layouts/partials/header.html b/layouts/partials/header.html
index 94501fd..6933271 100644
--- a/layouts/partials/header.html
+++ b/layouts/partials/header.html
@@ -1,4 +1,4 @@
<!-- Header -->
<header id="header">
- <a href="{{ .Site.BaseURL }}" class="logo">{{ .Site.Title }}</a>
-</header> \ No newline at end of file
+ <a href='{{ "/" | absURL }}' class="logo">{{ .Site.Title }}</a>
+</header>
diff --git a/layouts/partials/htmlhead.html b/layouts/partials/htmlhead.html
index dddd5a2..1cc6df2 100644
--- a/layouts/partials/htmlhead.html
+++ b/layouts/partials/htmlhead.html
@@ -9,6 +9,6 @@
<title>{{ if eq (.Site.Title) (.Title) }}{{ .Site.Title }}{{ else }}{{ .Title }} &middot; {{ .Site.Title }}{{ end }}</title>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no" />
- <link rel="stylesheet" href="{{ .Site.BaseURL }}assets/css/main.css" />
- <noscript><link rel="stylesheet" href="{{ .Site.BaseURL }}assets/css/noscript.css" /></noscript>
+ <link rel="stylesheet" href='{{ "assets/css/main.css" | absURL }}' />
+ <noscript><link rel="stylesheet" href='{{ "assets/css/noscript.css" | absURL }}' /></noscript>
</head>
diff --git a/layouts/partials/nav.html b/layouts/partials/nav.html
index 8057978..3e95003 100644
--- a/layouts/partials/nav.html
+++ b/layouts/partials/nav.html
@@ -1,9 +1,9 @@
<!-- Nav -->
<nav id="nav">
<ul class="links">
- <li class="active"><a href="{{ .Site.BaseURL }}">{{ .Site.Title }}</a></li>
+ <li class="active"><a href='{{ "/" | absURL }}'>{{ .Site.Title }}</a></li>
{{ with .Site.Data.contactinfo }}
- <li><a href="{{ .Site.BaseURL }}#footer">Contact</a></li>
+ <li><a href='{{ "#footer" | absURL }}'>Contact</a></li>
{{ end }}
</ul>
{{ with .Site.Data.social }}
@@ -37,4 +37,4 @@
{{ end }}
</ul>
{{ end }}
-</nav> \ No newline at end of file
+</nav>
diff --git a/layouts/partials/posts/featured.html b/layouts/partials/posts/featured.html
index 99bd113..c14a398 100644
--- a/layouts/partials/posts/featured.html
+++ b/layouts/partials/posts/featured.html
@@ -9,10 +9,10 @@
<p>{{ .Description }}</p>
</header>
{{ if .Params.image }}
- <a href="{{ .Permalink }}" class="image main"><img src="{{ .Site.BaseURL }}{{ .Params.image }}" alt="" /></a>
+ <a href="{{ .Permalink }}" class="image main"><img src="{{ .Params.image | absURL }}" alt="" /></a>
{{ end }}
<ul class="actions">
<li><a href="{{ .Permalink }}" class="button big">{{ .Site.Data.post.linktext }}</a></li>
</ul>
</article>
-{{ end }} \ No newline at end of file
+{{ end }}
diff --git a/layouts/partials/posts/list.html b/layouts/partials/posts/list.html
index eb7aa95..49a0745 100644
--- a/layouts/partials/posts/list.html
+++ b/layouts/partials/posts/list.html
@@ -9,7 +9,7 @@
<h2><a href="{{ .Permalink }}">{{ .Title }}</a></h2>
</header>
{{ if .Params.image }}
- <a href="{{ .Permalink }}" class="image fit"><img src="{{ .Site.BaseURL }}{{ .Params.image }}" alt="" /></a>
+ <a href="{{ .Permalink }}" class="image fit"><img src="{{ .Params.image | absURL }}" alt="" /></a>
{{ end }}
<p>{{ .Description }}</p>
<ul class="actions">
@@ -17,4 +17,4 @@
</ul>
</article>
{{ end }}
-</section> \ No newline at end of file
+</section>
diff --git a/layouts/partials/posts/pagination.html b/layouts/partials/posts/pagination.html
index 8bbf9e4..559b068 100644
--- a/layouts/partials/posts/pagination.html
+++ b/layouts/partials/posts/pagination.html
@@ -3,16 +3,16 @@
<footer>
<div class="pagination">
{{ if .paging.HasPrev }}
- <a href="{{ .Site.BaseURL }}{{ .paging.Prev.URL }}" class="previous">Prev</a>
+ <a href="{{ .paging.Prev.URL | absURL }}" class="previous">Prev</a>
{{ end }}
{{ range .paging.Pagers }}
{{ if lt .PageNumber 10 }}
- <a href="{{ $.Site.BaseURL }}{{ .URL }}" class="page{{ if eq .PageNumber .paging.PageNumber }} active{{ end }}">{{ .PageNumber }}</a>
+ <a href="{{ .URL | absURL }}" class="page{{ if eq .PageNumber .paging.PageNumber }} active{{ end }}">{{ .PageNumber }}</a>
{{ end }}
{{ end }}
{{ if .paging.HasNext }}
- <a href="{{ .Site.BaseURL }}{{ .paging.Next.URL }}" class="next">Next</a>
+ <a href="{{ .paging.Next.URL | absURL }}" class="next">Next</a>
{{ end }}
</div>
</footer>
-{{ end }} \ No newline at end of file
+{{ end }}
diff --git a/layouts/partials/scripts/index.html b/layouts/partials/scripts/index.html
index f541a6a..2ef0ce0 100644
--- a/layouts/partials/scripts/index.html
+++ b/layouts/partials/scripts/index.html
@@ -1,10 +1,10 @@
<!-- Scripts -->
-<script src="{{ .Site.BaseURL }}assets/js/jquery.min.js"></script>
-<script src="{{ .Site.BaseURL }}assets/js/jquery.scrollex.min.js"></script>
-<script src="{{ .Site.BaseURL }}assets/js/jquery.scrolly.min.js"></script>
-<script src="{{ .Site.BaseURL }}assets/js/skel.min.js"></script>
-<script src="{{ .Site.BaseURL }}assets/js/util.js"></script>
-<script src="{{ .Site.BaseURL }}assets/js/main.js"></script>
+<script src='{{ "assets/js/jquery.min.js" | absURL }}'></script>
+<script src='{{ "assets/js/jquery.scrollex.min.js" | absURL }}'></script>
+<script src='{{ "assets/js/jquery.scrolly.min.js" | absURL }}'></script>
+<script src='{{ "assets/js/skel.min.js" | absURL }}'></script>
+<script src='{{ "assets/js/util.js" | absURL }}'></script>
+<script src='{{ "assets/js/main.js" | absURL }}'></script>
{{ partial "scripts/googleanalytics" . }}
-{{ partial "scripts/disqus" . }} \ No newline at end of file
+{{ partial "scripts/disqus" . }}
diff --git a/package.json b/package.json
index 5daa7de..8f3a480 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "hugo-theme-massively",
- "version": "1.0.0",
+ "version": "1.0.1",
"description": "HTML5 UP theme Massively for Hugo",
"main": "index.js",
"scripts": {