Skip to content

Commit

Permalink
Enable debug, test 2024-11-12
Browse files Browse the repository at this point in the history
  • Loading branch information
mdlinville committed Jul 2, 2024
1 parent 25795c6 commit b217269
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/current/_includes/unsupported-version.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
{% assign DEBUG=false %}
{% assign DEBUG=true %}
{% unless include.major_version %}
Missing include.major_version. Usage: <code>{% raw %}{% include unsupported-version.md major_version=page.major_version %}{% endraw %}</code>
{% break %}
{% endunless %}
{% if DEBUG %}Major version: {{ include.major_version }}<br />{% 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)
Expand All @@ -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 }}<br />{% endif %}
Expand Down

0 comments on commit b217269

Please sign in to comment.