From 0a501af6bbb18eea2b877c811c0925e3663efe3c Mon Sep 17 00:00:00 2001 From: Benjamin Glitsos Date: Tue, 17 Dec 2024 13:30:01 +1100 Subject: [PATCH] Using tilde instead of format method --- docs/_templates/product-v2.rst | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/_templates/product-v2.rst b/docs/_templates/product-v2.rst index 2e672da6f..122afe33c 100644 --- a/docs/_templates/product-v2.rst +++ b/docs/_templates/product-v2.rst @@ -100,9 +100,9 @@ {% set bands_table_list = page.tables.bands_table | selectattr("name", "!=", None) | list %} -{% set page_title = page.data.short_name if page.data.is_latest_version else "{}. {}".format(format_version_number(page.data.version_number), page.data.short_name) %} +{% set page_title = page.data.short_name if page.data.is_latest_version else format_version_number(page.data.version_number) ~ ". " ~ page.data.short_name %} -{% set display_title = page.data.short_name if page.data.is_latest_version else "{} {}".format(page.data.short_name, format_version_number(page.data.version_number)) %} +{% set display_title = page.data.short_name if page.data.is_latest_version else page.data.short_name ~ " " ~ format_version_number(page.data.version_number) %} {% set product_ids_label = "Product IDs" if product_ids_list | length > 1 else "Product ID" %} @@ -110,7 +110,7 @@ {% set collections_label = "Collections" if collections_list | length > 1 else "Collection" %} -{% set currency_report_url = "https://mgmt.sandbox.dea.ga.gov.au/public-dashboards/d22241dbfca54b1fa9f73938ef26e645?orgId=1#:~:text={}".format(page.data.short_name | urlencode) %} +{% set currency_report_url = "https://mgmt.sandbox.dea.ga.gov.au/public-dashboards/d22241dbfca54b1fa9f73938ef26e645?orgId=1#:~:text=" ~ (page.data.short_name | urlencode) %} {% set lineage_type = lineage_type_terms.get(page.data.lineage_type, page.data.lineage_type) %}