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

github.com/edavidaja/docter.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoredavidaja <enyinnaya.aja@gmail.com>2019-06-05 18:49:05 +0300
committeredavidaja <enyinnaya.aja@gmail.com>2019-06-05 18:49:05 +0300
commitd5bbd1babbfb9a395ca880af867c82b1fd556b05 (patch)
treef3f546c874fd2161d73d6a2ef3e96932e292605c
parenta69c6aa9061482296c1ffb82e7b82fe6df8b7320 (diff)
added baseurl to logo
-rw-r--r--exampleSite/config.toml1
-rw-r--r--layouts/partials/header.html2
2 files changed, 1 insertions, 2 deletions
diff --git a/exampleSite/config.toml b/exampleSite/config.toml
index b56a4ad..9f06b25 100644
--- a/exampleSite/config.toml
+++ b/exampleSite/config.toml
@@ -14,4 +14,3 @@ theme = "docter"
logoalt=""
hosted_on="netlify"
hosted_on_url="https://www.netlify.com"
- \ No newline at end of file
diff --git a/layouts/partials/header.html b/layouts/partials/header.html
index 7c9b80d..f10a19b 100644
--- a/layouts/partials/header.html
+++ b/layouts/partials/header.html
@@ -1,7 +1,7 @@
<header role="banner">
<div class="wrap">
{{ if isset .Site.Params "logourl" }}
- <img class="logo" src="{{ .Site.Params.logourl }}" alt="{{ .Site.Params.logoalt }}">
+ <img class="logo" src="{{.Site.BaseURL}}{{ .Site.Params.logourl }}" alt="{{ .Site.Params.logoalt }}">
{{ end }}
<h1 class="site-title"><a class="title-link" href="{{ .Site.BaseURL }}">{{ .Site.Params.name }}</a></h1>
</div>