You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@community.apache.org by se...@apache.org on 2023/03/26 13:02:36 UTC
[comdev-site] branch master updated: Update to latest Hugo version
This is an automated email from the ASF dual-hosted git repository.
sebb pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/comdev-site.git
The following commit(s) were added to refs/heads/master by this push:
new ef57508 Update to latest Hugo version
ef57508 is described below
commit ef575088ada5e4940c987fb05596b66c0afe4554
Author: Sebb <se...@apache.org>
AuthorDate: Sun Mar 26 14:02:27 2023 +0100
Update to latest Hugo version
Also fix breadcrumbs
---
Jenkinsfile | 2 +-
layouts/partials/breadcrumbs.html | 4 ++--
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/Jenkinsfile b/Jenkinsfile
index 42ae4e0..e38d69c 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -23,7 +23,7 @@ pipeline {
}
environment {
- HUGO_VERSION = '0.63.2'
+ HUGO_VERSION = '0.111.3'
DEPLOY_BRANCH = 'asf-site'
}
diff --git a/layouts/partials/breadcrumbs.html b/layouts/partials/breadcrumbs.html
index 5b0b306..08e0b20 100644
--- a/layouts/partials/breadcrumbs.html
+++ b/layouts/partials/breadcrumbs.html
@@ -1,12 +1,12 @@
{{ $url := replace .Permalink ( printf "%s" .Site.BaseURL) "" }}
-{{ $.Scratch.Add "path" "/" }}
+{{ $.Scratch.Set "path" "/" }}
<nav aria-label="breadcrumb">
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="/">Home</a></li>
{{ range $index, $element := split $url "/" }}
{{ $.Scratch.Add "path" $element }}
{{ if ne $element "" }}
- <li class="breadcrumb-item"><a href='{{ $.Scratch.Get "path" }}'>{{ replace (humanize .) ".html" "" }}</a></li>
+ <li class="breadcrumb-item"><a href='{{ $.Scratch.Get "path" }}'>{{ replace . ".html" "" | humanize }}</a></li>
{{ $.Scratch.Add "path" "/" }}
{{ end }}
{{ end }}