4 Commits

Author SHA1 Message Date
1cc9211e95 Automatically show the New Year Show announcement
Insert the New Year Show announcement on the front page
from Dec 1st through Jan 1st.
2025-12-16 19:01:33 -05:00
fc12c7ae5c Add MACRO to get ordinal year of the new year show
Calculate the ordinal value of difference between the current year
and 2011 (the first year of the New Year Show)
2025-12-16 19:01:33 -05:00
6a64ebd95e Fix grammer 2025-12-16 19:01:33 -05:00
c349abfded Calculate the start and end dates for the New Year show 2025-12-16 19:01:33 -05:00
4 changed files with 59 additions and 24 deletions

View File

@@ -1,22 +1,4 @@
<!--% PROCESS 'shared-utils.tpl.html' %--> <!--% PROCESS 'shared-utils.tpl.html' %-->
<div class="lane stack"> <!--% IF date.format(date.now, '%m') == 12 || date.format(date.now, '%j') == 1 %-->
<article> <!--% PROCESS 'content-new_year_show_announcement.tpl.html' %-->
<header> <!--% END %-->
<h2 class="title"><a href="<!--% absolute_path(baseurl) %-->new_year.html">The Fourteenth Annual 26 Hour New Year's Eve Show</a></h2>
</header>
<h3>Welcome every <a href="https://www.timeanddate.com/counters/multicountdown.html">TimeZone</a>!</h3>
<p>
<em>If you keep talking, we'll keep recording.</em>
</p>
<p>For those who don't know, on New Year's Eve 2025-12-31 10:00 UTC (5:00 AM EST), we will have a recording going on the HPR Mumble server for anyone to come on and say "Happy New Year" and talk about whatever they want.
We will leave the recording going until at least 2026-01-01 12:00 UTC (7:00 AM EST), and keep recording until the conversation stops.</p>
<p>
So please stop in. Say "Hi" and maybe join in the conversation with other HPR listeners and contributors. It's always a good time!!<br>
<audio controls preload="none">
<source src="<!--% absolute_path(baseurl) %-->promos/hpr-nye-promo.ogg" type="audio/ogg">
</audio>
</p>
<p><a href="<!--% absolute_path(baseurl) %-->new_year.html">More information…</a></p>
</article>
</div>

View File

@@ -1,12 +1,12 @@
<!--% PROCESS 'shared-utils.tpl.html' %--> <!--% PROCESS 'shared-utils.tpl.html' %-->
<h1><u>The Fourteenth Annual 26 Hour New Years Eve Show</u></h1> <h1><u>The <!--% get_new_year_show_ordinal_year %--> Annual 26 Hour New Year's Eve Show</u></h1>
<h2>Welcome every <a href="https://www.timeanddate.com/counters/multicountdown.html">TimeZone</a>!</h2> <h2>Welcome every <a href="https://www.timeanddate.com/counters/multicountdown.html">TimeZone</a>!</h2>
<p> <p>
<em>If you keep talking, we'll keep recording.</em> <em>If you keep talking, we'll keep recording.</em>
</p> </p>
<p>For those who don't know, on New Years Eve 2025-12-31 10:00 UTC (5:00 AM EST), we will have a recording going on the HPR Mumble server for anyone to come on and say "Happy New Years" and talk about whatever they want. <p>For those who don't know, on New Year's Eve <!--% get_new_year_show_start() %-->, we will have a recording going on the HPR Mumble server for anyone to come on and say "Happy New Year" and talk about whatever they want.
We will leave the recording going until at least 2026-01-01 12:00 UTC (7:00 AM EST), and keep recording until the conversation stops.</p> We will leave the recording going until at least <!--% get_new_year_show_end() %-->, and keep recording until the conversation stops.</p>
<p> <p>
So please stop in. Say "Hi" and maybe join in the conversation with other HPR listeners and contributors. It's always a good time!!<br /> So please stop in. Say "Hi" and maybe join in the conversation with other HPR listeners and contributors. It's always a good time!!<br />
</p> </p>

View File

@@ -0,0 +1,22 @@
<!--% PROCESS 'shared-utils.tpl.html' %-->
<div class="lane stack">
<article>
<header>
<h2 class="title"><a href="<!--% absolute_path(baseurl) %-->new_year.html">The <!--% get_new_year_show_ordinal_year %--> Annual 26 Hour New Year's Eve Show</a></h2>
</header>
<h3>Welcome every <a href="https://www.timeanddate.com/counters/multicountdown.html">TimeZone</a>!</h3>
<p>
<em>If you keep talking, we'll keep recording.</em>
</p>
<p>For those who don't know, on New Year's Eve <!--% get_new_year_show_start() %-->, we will have a recording going on the HPR Mumble server for anyone to come on and say "Happy New Year" and talk about whatever they want.
We will leave the recording going until at least <!--% get_new_year_show_end() %-->, and keep recording until the conversation stops.</p>
<p>
So please stop in. Say "Hi" and maybe join in the conversation with other HPR listeners and contributors. It's always a good time!!<br>
<audio controls preload="none">
<source src="<!--% absolute_path(baseurl) %-->promos/hpr-nye-promo.ogg" type="audio/ogg">
</audio>
</p>
<p><a href="<!--% absolute_path(baseurl) %-->new_year.html">More information…</a></p>
</article>
</div>

View File

@@ -134,3 +134,34 @@
<!--% END %--> <!--% END %-->
<span><a href="<!--% absolute_path(baseurl) %-->eps/<!--% folder %--><!--% zero_pad_left(links.latest) %-->/index.html" rel="last" aria-label="latest episode">Latest<span class="no-css"> &gt;&gt;</span><!--% INSERT $arrow_last %--></a></span></nav> <span><a href="<!--% absolute_path(baseurl) %-->eps/<!--% folder %--><!--% zero_pad_left(links.latest) %-->/index.html" rel="last" aria-label="latest episode">Latest<span class="no-css"> &gt;&gt;</span><!--% INSERT $arrow_last %--></a></span></nav>
<!--% END %--> <!--% END %-->
<!--% MACRO get_new_year_show_start BLOCK %-->
<!--% start_year = date.format(date.now, '%Y') %-->
<!--% IF date.format(date.now, '%m') != 12 || date.format(date.now, '%j') == 1 %-->
<!--% start_year = start_year - 1 %-->
<!--% END %-->
<time datetime="<!--% start_year %-->-12-31T10:00Z"><!--% start_year %-->-12-31 10:00 UTC (5:00 AM EST)</time>
<!--% END %-->
<!--% MACRO get_new_year_show_end BLOCK %-->
<!--% end_year = date.format(date.now, '%Y') %-->
<!--% IF date.format(date.now, '%m') == 12 || date.format(date.now, '%j') == 1 %-->
<!--% end_year = end_year + 1 %-->
<!--% END %-->
<time datetime="<!--% end_year %-->-01-01T12:00Z"><!--% end_year %-->-01-01 12:00 UTC (7:00 AM EST)</time>
<!--% END %-->
<!--% MACRO get_new_year_show_ordinal_year BLOCK %-->
<!--% ordinal_year = date.format(date.now, '%Y') - 2011 %-->
<!--% IF date.format(date.now, '%m') != 12 || date.format(date.now, '%j') == 1 %-->
<!--% ordinal_year = ordinal_year - 1 %-->
<!--% END %-->
<!--% years.14 = 'Fourteenth'
years.15 = 'Fifteenth'
years.16 = 'Sixteenth'
years.17 = 'Seventeenth'
years.18 = 'Eighteenth'
years.19 = 'Nineteenth'
years.20 = 'Twentieth' %-->
<!--% years.$ordinal_year %-->
<!--% END %-->