config: add https protocol at the baseURL value and remove the 1st forward slash in the url values of params.navlinks

This commit is contained in:
Marcin Mierzejewski 2020-05-03 19:24:43 +02:00
parent 3184aed8b5
commit eb4564067f
3 changed files with 5 additions and 5 deletions

View file

@ -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/"

View file

@ -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 }}

View file

@ -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/>