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

github.com/lubang/hugo-hello-programmer-theme.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlubang <lubang@lulab.net>2016-11-22 17:06:58 +0300
committerlubang <lubang@lulab.net>2016-11-22 17:06:58 +0300
commit475b0495d9ec9c3dbe0935140c907f7b74450b97 (patch)
tree1a1c008b7787c3434bcd873c1d9e782ec49d39a9
parent0ee11cc622b529ed96cf268669c7d84eeb71ba3b (diff)
Bugfix to correct for a relative path
-rw-r--r--layouts/404.html2
-rw-r--r--layouts/_default/list.html6
-rw-r--r--layouts/_default/single.html23
-rw-r--r--layouts/_default/terms.html4
-rw-r--r--layouts/index.html3
-rw-r--r--layouts/partials/header.html14
-rw-r--r--layouts/partials/post.html20
-rw-r--r--layouts/section/project.html2
8 files changed, 42 insertions, 32 deletions
diff --git a/layouts/404.html b/layouts/404.html
index 8d80cd0..20fbf0d 100644
--- a/layouts/404.html
+++ b/layouts/404.html
@@ -3,6 +3,6 @@
<p>Sorry! It's nobody in here.</p>
<h1>404 Not Found</h1>
<p>---</p>
- <p><a href="{{ "/" | absURL }}">Go to home</a></p>
+ <p><a href="{{ "/" | relURL }}">Go to home</a></p>
</div>
{{ partial "footer.html" . }}
diff --git a/layouts/_default/list.html b/layouts/_default/list.html
index c79f1f3..a84aa6d 100644
--- a/layouts/_default/list.html
+++ b/layouts/_default/list.html
@@ -4,7 +4,7 @@
<div class="post-list-item">
<a href="{{ .Permalink }}">
<div class="post-title">
- <img src="{{ "/images/post-title-icon.svg" | absURL }}" />
+ <img src="{{ "/images/post-title-icon.svg" | relURL }}" />
<div class="post-meta">
<time>{{ .Date.Format "02 Jan 2006, 15:04" }}</time>
<h1>{{ .Title }}</h1>
@@ -14,8 +14,10 @@
</div>
{{ end }}
+{{ partial "pagination.html" . }}
+
<div class="seperator">
- <img src="{{ "/images/seperator.svg" | absURL }}" />
+ <img src="{{ "/images/seperator.svg" | relURL }}" />
</div>
{{ partial "footer.html" . }}
diff --git a/layouts/_default/single.html b/layouts/_default/single.html
index 71a250d..3bad13a 100644
--- a/layouts/_default/single.html
+++ b/layouts/_default/single.html
@@ -2,4 +2,27 @@
{{ partial "post.html" . }}
+<div class="share"></div>
+
+{{ template "_internal/disqus.html" . }}
+
+<div class="paging post-paging">
+ {{ if .Prev }}
+ <a class="left" href="{{ .Prev.Permalink }}" rel="prev">
+ <i class="fa fa-caret-left" aria-hidden="true"></i> <span>{{ .Prev.Title }}</span>
+ </a>
+ {{ end }}
+ {{ if .Next }}
+ <a class="right" href="{{ .Next.Permalink }}" rel="next">
+ <span>{{ .Next.Title }}</span> <i class="fa fa-caret-right" aria-hidden="true"></i>
+ </a>
+ {{ end }}
+</div>
+
+<div class="share"></div>
+
+<div class="seperator">
+ <img src="{{ "/images/seperator.svg" | relURL }}" />
+</div>
+
{{ partial "footer.html" . }}
diff --git a/layouts/_default/terms.html b/layouts/_default/terms.html
index 11022c7..dae520f 100644
--- a/layouts/_default/terms.html
+++ b/layouts/_default/terms.html
@@ -1,7 +1,7 @@
{{ partial "header" . }}
<div class="post-title">
- <img src="{{ "/images/post-title-icon.svg" | absURL }}" />
+ <img src="{{ "/images/post-title-icon.svg" | relURL }}" />
<div class="post-meta">
<time>---</time>
<h1>CATEGORIES</h1>
@@ -25,7 +25,7 @@
</div>
<div class="seperator">
- <img src="{{ "/images/seperator.svg" | absURL }}" />
+ <img src="{{ "/images/seperator.svg" | relURL }}" />
</div>
{{ partial "footer" . }}
diff --git a/layouts/index.html b/layouts/index.html
index bfbc27f..ec7ce44 100644
--- a/layouts/index.html
+++ b/layouts/index.html
@@ -1,6 +1,9 @@
{{ partial "header.html" . }}
{{ range .Paginator.Pages }}
{{ partial "post.html" . }}
+ <div class="seperator">
+ <img src="{{ "/images/seperator.svg" | relURL }}" />
+ </div>
{{ end }}
{{ partial "pagination.html" . }}
diff --git a/layouts/partials/header.html b/layouts/partials/header.html
index 5e865d2..e62e64e 100644
--- a/layouts/partials/header.html
+++ b/layouts/partials/header.html
@@ -9,7 +9,7 @@
{{ if .RSSlink }}
<link href="{{ .RSSlink }}" rel="alternate" type="application/rss+xml" title="{{ .Title }}" />
{{ end }}
- <link rel="stylesheet" href="{{ "/css/styles.css" | absURL }}">
+ <link rel="stylesheet" href="{{ "/css/styles.css" | relURL }}">
<link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css">
<link rel="stylesheet" href="http://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.6.0/styles/default.min.css">
<script src="http://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.6.0/highlight.min.js"></script>
@@ -19,18 +19,18 @@
<body>
<div class="navbar">
<ul>
- <li><a href="{{ "/" | absURL }}">HOME</a></li>
- <li><a href="{{ "/categories" | absURL }}">CATEGORIES</a></li>
- <li><a href="{{ "/project" | absURL }}">PROJECTS</a></li>
+ <li><a href="{{ "/" | relURL }}">HOME</a></li>
+ <li><a href="{{ "/categories" | relURL }}">CATEGORIES</a></li>
+ <li><a href="{{ "/project" | relURL }}">PROJECTS</a></li>
</ul>
</div>
<div class="container">
<div class="title">
<div>
- <a href="{{ "/" | absURL }}">
- <img src="{{ "/images/logo.svg" | absURL }}" />
+ <a href="{{ "/" | relURL }}">
+ <img src="{{ "/images/logo.svg" | relURL }}" />
</a>
</div>
- <div><img src="{{ "/images/seperator.svg" | absURL }}" /></div>
+ <div><img src="{{ "/images/seperator.svg" | relURL }}" /></div>
<div class="logo-title">hello, world!</div>
</div>
diff --git a/layouts/partials/post.html b/layouts/partials/post.html
index 194758d..b9a6b7d 100644
--- a/layouts/partials/post.html
+++ b/layouts/partials/post.html
@@ -1,6 +1,6 @@
<a href="{{ .Permalink }}">
<div class="post-title">
- <img src="{{ "/images/post-title-icon.svg" | absURL }}" />
+ <img src="{{ "/images/post-title-icon.svg" | relURL }}" />
<div class="post-meta">
<time>{{ .Date.Format "02 Jan 2006, 15:04" }}</time>
<h1>{{ .Title }}</h1>
@@ -64,21 +64,3 @@
}
</div>
</div>
-{{ template "_internal/disqus.html" . }}
-
-<div class="paging post-paging">
- {{ if .Prev }}
- <a class="left" href="{{ .Prev.Permalink }}" rel="prev">
- <i class="fa fa-caret-left" aria-hidden="true"></i> <span>{{ .Prev.Title }}</span>
- </a>
- {{ end }}
- {{ if .Next }}
- <a class="right" href="{{ .Next.Permalink }}" rel="next">
- <span>{{ .Next.Title }}</span> <i class="fa fa-caret-right" aria-hidden="true"></i>
- </a>
- {{ end }}
-</div>
-
-<div class="seperator">
- <img src="{{ "/images/seperator.svg" | absURL }}" />
-</div>
diff --git a/layouts/section/project.html b/layouts/section/project.html
index a6f0239..ed1c0c8 100644
--- a/layouts/section/project.html
+++ b/layouts/section/project.html
@@ -17,7 +17,7 @@
</div>
<div class="seperator">
- <img src="{{ "/images/seperator.svg" | absURL }}" />
+ <img src="{{ "/images/seperator.svg" | relURL }}" />
</div>
{{ partial "footer.html" . }}