diff options
author | Marcin Mierzejewski <marcin@mierzejewski.net> | 2020-05-03 20:24:43 +0300 |
---|---|---|
committer | Marcin Mierzejewski <marcin@mierzejewski.net> | 2020-05-03 20:24:43 +0300 |
commit | eb4564067f510e372ace4129105f0d754a7c5d8c (patch) | |
tree | e6b2dde2a31bb1348ca084b5421a5d459c048d0c | |
parent | 3184aed8b5f065557c3dccb6fe9dcbf3afdf42cf (diff) |
config: add https protocol at the baseURL value and remove the 1st forward slash in the url values of params.navlinks
-rw-r--r-- | exampleSite/config.toml | 6 | ||||
-rw-r--r-- | layouts/_default/baseof.html | 2 | ||||
-rw-r--r-- | layouts/index.html | 2 |
3 files changed, 5 insertions, 5 deletions
diff --git a/exampleSite/config.toml b/exampleSite/config.toml index 7226a4e..78b24bd 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -1,4 +1,4 @@ -baseurl = "//example.com/" +baseurl = "https://example.com/" title = "console-demo" theme = "hugo-theme-console" languageCode = "en-us" @@ -6,11 +6,11 @@ languageCode = "en-us" [params] [[params.navlinks]] name = "about/" - url = "/about/" + url = "about/" [[params.navlinks]] name = "posts/" - url = "/posts/" + url = "posts/" [[params.navlinks]] name = "photos/" diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index 2c71714..00fdf16 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -33,7 +33,7 @@ <div class="logo terminal-prompt"> {{ $url := replace .Permalink ( printf "%s" .Site.BaseURL) "" }} {{ $.Scratch.Add "path" .Site.BaseURL }} - <a href="{{ .Site.BaseURL }}" class="no-style site-name">{{ .Site.Title }}</a>:~# {{ range $index, $element := split $url "/" }}{{ $.Scratch.Add "path" $element }}{{ if ne $element "" }}<a href='{{ $.Scratch.Get "path" }}'>{{ . }}</a>/{{ $.Scratch.Add "path" "/" }}{{ end }}{{ end }}</header> + <a href="{{ .Site.BaseURL }}" class="no-style site-name">{{ .Site.Title }}</a>:~# {{ range $index, $element := split $url "/" }}{{ $.Scratch.Add "path" $element }}{{ if ne $element "" }}<a href='{{ $.Scratch.Get "path" | absURL }}'>{{ . }}</a>/{{ $.Scratch.Add "path" "/" }}{{ end }}{{ end }}</header> <nav class="terminal-menu"> <ul vocab="https://schema.org/" typeof="BreadcrumbList"> {{ range .Site.Params.navlinks }} diff --git a/layouts/index.html b/layouts/index.html index 98407f9..161d206 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -3,7 +3,7 @@ <h1>About</h1> <p> -Console is a minimal, responsive and light theme for Hugo inspired by Linux console. <a href="/about/">(more)</a> +Console is a minimal, responsive and light theme for Hugo inspired by Linux console. <a href="about/">(more)</a> </p> <br/> |