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

github.com/devcows/hugo-universal-theme.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Varner <varnerac@users.noreply.github.com>2017-11-22 11:44:09 +0300
committerGuillermo Guerrero Ibarra <wolf.fox1985@gmail.com>2017-11-22 11:44:09 +0300
commit56f2e2932dd0f99b9cc2fb9380cfcebc131f93d3 (patch)
treee787fd46f09ed868c57f8f1cbf129e89b67dbdc3
parent3f645b6cbaa94fd3afbe5205f1b1ec99cbecdccd (diff)
Parameterize 404 (#118)
This PR replaces hardcoded values in the `404.html` template with appropriate Hugo variables.
-rw-r--r--layouts/404.html6
1 files changed, 3 insertions, 3 deletions
diff --git a/layouts/404.html b/layouts/404.html
index 8ca20b2..4f48435 100644
--- a/layouts/404.html
+++ b/layouts/404.html
@@ -21,15 +21,15 @@
<div class="box">
<p class="text-center">
- <a href="index.html">
- <img src="img/logo.png" alt="Obaju template">
+ <a href="{{ .Site.BaseURL }}">
+ <img src="{{ .Site.Params.logo }}" alt="{{ .Title }} logo">
</a>
</p>
<h3>We are sorry - this page is not here anymore</h3>
<h4 class="text-muted">Error 404 - Page not found</h4>
- <p class="buttons"><a href="index.html" class="btn btn-template-main"><i class="fa fa-home"></i> Go to Homepage</a>
+ <p class="buttons"><a href="{{ .Site.BaseURL }}" class="btn btn-template-main"><i class="fa fa-home"></i> Go to Homepage</a>
</p>
</div>