From a05b2124652293b1be3742f26aa3913861f956de Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B6ren=20Weber?= Date: Wed, 19 Mar 2025 23:54:17 +0100 Subject: [PATCH] version: test config #1050 --- docs/config/versioning/hugo.toml | 14 ++++++++++++++ exampleSite/config/versioning/hugo.toml | 15 +++++++++++++++ layouts/partials/version.txt | 2 +- 3 files changed, 30 insertions(+), 1 deletion(-) create mode 100644 docs/config/versioning/hugo.toml create mode 100644 exampleSite/config/versioning/hugo.toml diff --git a/docs/config/versioning/hugo.toml b/docs/config/versioning/hugo.toml new file mode 100644 index 0000000000..09eadd53c3 --- /dev/null +++ b/docs/config/versioning/hugo.toml @@ -0,0 +1,14 @@ +# Configuration to test versioning support in development + +# To use run `hugo -e versioning` or `hugo server -e versioning` + +# It uses the docs as the current version and abuses the exampleSite +# as an archived version + +baseURL = 'http://localhost:1313/' +[params] + version = 'latest' + versions = [ + { identifier = 'latest', title = '1.0', baseURL = 'http://localhost:1313/', isLatest = true}, + { identifier = '0.666', title = '0.666', baseURL = 'http://localhost:1414/exampleSite/'}, + ] diff --git a/exampleSite/config/versioning/hugo.toml b/exampleSite/config/versioning/hugo.toml new file mode 100644 index 0000000000..5f05d5af15 --- /dev/null +++ b/exampleSite/config/versioning/hugo.toml @@ -0,0 +1,15 @@ +# Configuration to test versioning support in development + +# To use run `hugo -p 1414 -e versioning` or `hugo server -p 1414 -e versioning` + +# It uses the docs as the current version and abuses the exampleSite +# as an archived version + +baseURL = 'http://localhost:1414/exampleSite/' +relativeURLs = false +[params] + version = '0.666' + versions = [ + { identifier = 'latest', title = '1.0', baseURL = 'http://localhost:1313/', isLatest = true}, + { identifier = '0.666', title = '0.666', baseURL = 'http://localhost:1414/exampleSite/'}, + ] diff --git a/layouts/partials/version.txt b/layouts/partials/version.txt index 8ebda13610..d3850d4411 100644 --- a/layouts/partials/version.txt +++ b/layouts/partials/version.txt @@ -1 +1 @@ -7.5.0+67d43d0a8a647b8b4b09cdb0103001e87e7b104c \ No newline at end of file +7.5.0+67adcb73225ceeeb11bc09cfeaf6c8b9dbdb5c2a \ No newline at end of file