config: add titleCutting param
This commit is contained in:
parent
8d37fa8402
commit
f2ef6d4161
2 changed files with 4 additions and 1 deletions
|
@ -4,6 +4,9 @@ theme = "hugo-theme-console"
|
|||
languageCode = "en-us"
|
||||
|
||||
[params]
|
||||
# Cutting off the page title to two chars for mobile (console-demo -> co)
|
||||
titleCutting = true
|
||||
|
||||
[[params.navlinks]]
|
||||
name = "about/"
|
||||
url = "about/"
|
||||
|
|
|
@ -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" | absURL }}'>{{ . }}</a>/{{ $.Scratch.Add "path" "/" }}{{ end }}{{ end }}</div></header>
|
||||
<a href="{{ .Site.BaseURL }}" class="no-style {{ with .Site.Params.TitleCutting }}site-name{{ end }}">{{ .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 }}</div></header>
|
||||
<nav class="terminal-menu">
|
||||
<ul vocab="https://schema.org/" typeof="BreadcrumbList">
|
||||
{{ range .Site.Params.navlinks }}
|
||||
|
|
Loading…
Reference in a new issue