You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by zr...@apache.org on 2019/08/02 08:31:17 UTC

[camel-website] branch master updated: chore: upgrade Hugo to 0.56.3

This is an automated email from the ASF dual-hosted git repository.

zregvart pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel-website.git


The following commit(s) were added to refs/heads/master by this push:
     new 430b09b  chore: upgrade Hugo to 0.56.3
430b09b is described below

commit 430b09b104ae1cba52ac0efc5db11186affc32d6
Author: Zoran Regvart <zr...@apache.org>
AuthorDate: Fri Aug 2 10:29:41 2019 +0200

    chore: upgrade Hugo to 0.56.3
    
    This moves the Hugo version configuration to a single place, previously
    we relied on the version that hugo-cli defaulted to and also specified
    the version in Jenkinsfile. Now the version is set via .yarnrc `env`
    section and both use cases rely on the single version definition.
---
 .yarnrc                      | 4 ++++
 Jenkinsfile                  | 1 -
 layouts/partials/header.html | 2 +-
 3 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/.yarnrc b/.yarnrc
index 675b264..96c0e67 100644
--- a/.yarnrc
+++ b/.yarnrc
@@ -4,3 +4,7 @@
 
 lastUpdateCheck 1564482372108
 yarn-path ".yarn/releases/yarn-1.17.3.js"
+
+env:
+  HUGO_VERSION "0.56.3"
+
diff --git a/Jenkinsfile b/Jenkinsfile
index 23adbf7..486a0c9 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -38,7 +38,6 @@ pipeline {
     environment {
         ANTORA_CACHE_DIR  = "$WORKSPACE/.antora-cache"
         YARN_CACHE_FOLDER = "$WORKSPACE/.yarn-cache"
-        HUGO_VERSION      = "0.52.0"
     }
 
     stages {
diff --git a/layouts/partials/header.html b/layouts/partials/header.html
index f598cd3..05d9c76 100644
--- a/layouts/partials/header.html
+++ b/layouts/partials/header.html
@@ -19,7 +19,7 @@
     <meta name="application-name" content="Apache Camel">
     <link rel="manifest" href="{{ "site.webmanifest" | relURL }}">
     <title>{{ block "title" . }}{{ .Title }} - {{ .Site.Title }}{{ end }}</title>
-    <link rel="canonical" href="{{ .URL }}">
+    <link rel="canonical" href="{{ .RelPermalink }}">
     {{ if .Description}}
     <meta name="description" content="{{ .Description }}">
     {{ end }}