From b217269062863bd25ee2874b7c6ff3349eb37d9e Mon Sep 17 00:00:00 2001 From: Matt Linville Date: Wed, 26 Jun 2024 12:54:15 -0700 Subject: [PATCH] Enable debug, test 2024-11-12 --- src/current/_includes/unsupported-version.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/current/_includes/unsupported-version.md b/src/current/_includes/unsupported-version.md index 0d7ed7d34bf..db6f4b7ffdd 100644 --- a/src/current/_includes/unsupported-version.md +++ b/src/current/_includes/unsupported-version.md @@ -1,4 +1,4 @@ -{% assign DEBUG=false %} +{% assign DEBUG=true %} {% unless include.major_version %} Missing include.major_version. Usage: {% raw %}{% include unsupported-version.md major_version=page.major_version %}{% endraw %} {% break %} @@ -6,7 +6,7 @@ Missing include.major_version. Usage: {% raw %}{% include unsupported-vers {% if DEBUG %}Major version: {{ include.major_version }}
{% endif %} {% comment %}To test, comment this line and uncomment the today and actual_today variables below{% endcomment %} -{% assign today = "today" | date: "%s" %}{% comment %} Simulate future date and format it in seconds. {% endcomment %} +{% comment %}{% assign today = "today" | date: "%s" %}{% endcomment %}{% comment %} Simulate future date and format it in seconds. {% endcomment %} {% comment %} Some dates to test: 2025-11-14: 23.1 LTS EOL (LTS EOL message) @@ -20,8 +20,8 @@ The date logic in this file can be confusing. Read it like this: {% endcomment %} {% comment %}Uncomment the following two lines and comment the third to test a specific date{% endcomment %} -{% comment %}{% assign today = '2024-11-13' | date: "%s" %}{% endcomment %} -{% comment %}{% assign actual_today = "today" | date: "%s" %}{% endcomment %} +{% assign today = '2024-11-12' | date: "%s" %} +{% assign actual_today = "today" | date: "%s" %} {% if DEBUG %} {% if actual_today %}Actual today: {{ actual_today }}
{% endif %}