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

github.com/mrmierzejewski/hugo-theme-console.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcin Mierzejewski <marcin@mierzejewski.net>2020-05-03 20:24:43 +0300
committerMarcin Mierzejewski <marcin@mierzejewski.net>2020-05-03 20:24:43 +0300
commiteb4564067f510e372ace4129105f0d754a7c5d8c (patch)
treee6b2dde2a31bb1348ca084b5421a5d459c048d0c
parent3184aed8b5f065557c3dccb6fe9dcbf3afdf42cf (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.toml6
-rw-r--r--layouts/_default/baseof.html2
-rw-r--r--layouts/index.html2
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/>