From 5e7d82f192873e39befc9dea1ee4faeda30f972e Mon Sep 17 00:00:00 2001 From: koirand Date: Mon, 24 Sep 2018 23:39:32 +0900 Subject: [PATCH] :dog: Changed absolute path to relative path there is no need to be an absolute path becouse there is a canonifyurls option. --- exampleSite/config.toml | 4 ++-- layouts/index.html | 4 ++-- layouts/partials/footer.html | 6 +++--- layouts/partials/head.html | 10 +++++----- layouts/partials/header.html | 4 ++-- 5 files changed, 14 insertions(+), 14 deletions(-) diff --git a/exampleSite/config.toml b/exampleSite/config.toml index 317e722..b22cada 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -14,8 +14,8 @@ pygmentsUseClasses = true Profiles, backgrounds, favorite things etc. """ publicationYear = "2018" - # custom_css = ["css/custom.css"] - # custom_js = ["js/custom.js"] + # custom_css = ["/css/custom.css"] + # custom_js = ["/js/custom.js"] [[params.nav]] name = "Blog" diff --git a/layouts/index.html b/layouts/index.html index 8aba828..2421595 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -5,8 +5,8 @@
- - + +

{{ .Site.Params.Author }}

diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index fedcc68..e19f636 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -1,11 +1,11 @@

© {{ .Site.Params.publicationYear }} {{ .Site.Params.Author }}. - Powered by Hugo + Powered by Hugo using the pulp theme.

- + {{- range .Site.Params.custom_js -}} - + {{ end }} diff --git a/layouts/partials/head.html b/layouts/partials/head.html index 2872ec7..c3e4775 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -3,12 +3,12 @@ - - - - + + + + {{ range .Site.Params.custom_css }} - + {{ end }} {{ if eq .Title .Site.Title }} diff --git a/layouts/partials/header.html b/layouts/partials/header.html index 53ee781..5594d64 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -1,6 +1,6 @@ <header> <div class="avatar"> - <img class="avatar-mask" src="{{ .Site.BaseURL }}img/{{ .Site.Params.avatar }}"> - <a href="/"><img src="{{ .Site.BaseURL }}img/avatar-border.svg"></a> + <img class="avatar-mask" src="/img/{{ .Site.Params.avatar }}"> + <a href="/"><img src="/img/avatar-border.svg"></a> </div> </header> \ No newline at end of file