1 Commits

Author SHA1 Message Date
4750a08456 Toggle New Year show announcement
Show link to promo audio between Nov 1 and Dec 28. Show link to
live stream between Dec 29 and Jan 1.
2026-02-28 11:17:39 -05:00
3 changed files with 19 additions and 12 deletions

View File

@@ -1,4 +1,4 @@
<!--% PROCESS 'shared-utils.tpl.html' %--> <!--% PROCESS 'shared-utils.tpl.html' %-->
<!--% IF date.format(date.now, '%m') == 12 || date.format(date.now, '%j') == 1 %--> <!--% IF date.format(date.now, '%m') == 11 || date.format(date.now, '%j') == 1 %-->
<!--% PROCESS 'content-new_year_show_announcement.tpl.html' %--> <!--% PROCESS 'content-new_year_show_announcement.tpl.html' %-->
<!--% END %--> <!--% END %-->

View File

@@ -14,12 +14,18 @@ So please stop in. Say "Hi" and maybe join in the conversation with other HPR li
<h1>Listen to the live stream</h1> <h1>Listen to the live stream</h1>
<p> <p>
<!--% IF ((date.format(date.now, '%m') == 12 && date.format(date.now, '%d') > 28) || date.format(date.now, '%j') == 1) %-->
<img src="images/livestream.png" /><br /> <img src="images/livestream.png" /><br />
<audio controls autoplay> <audio controls autoplay>
<source src="https://files.shownotes.ooguy.com/stream" type="audio/mpeg" > <source src="https://files.shownotes.ooguy.com/stream" type="audio/mpeg" >
</audio> <br /> </audio> <br />
<a href="https://files.shownotes.ooguy.com/stream">https://files.shownotes.ooguy.com/stream</a><br /> <a href="https://files.shownotes.ooguy.com/stream">https://files.shownotes.ooguy.com/stream</a><br />
<a href="https://hackerpublicradio.org/live">https://hackerpublicradio.org/live</a><br /> <a href="https://hackerpublicradio.org/live">https://hackerpublicradio.org/live</a><br />
<!--% ELSE %-->
<audio controls preload="none">
<source src="<!--% absolute_path(baseurl) %-->promos/hpr-nye-promo.ogg" type="audio/ogg">
</audio>
<!--% END %-->
</p> </p>
<h1>Join the conversation on Mumble</h1> <h1>Join the conversation on Mumble</h1>

View File

@@ -12,18 +12,19 @@
We will leave the recording going until at least <!--% get_new_year_show_end() %-->, 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>
<!--% IF date.format(date.now, '%m') == 11 || date.format(date.now, '%d') < 29 %-->
<h2>Listen to the live stream</h2> <audio controls preload="none">
<source src="<!--% absolute_path(baseurl) %-->promos/hpr-nye-promo.ogg" type="audio/ogg">
<p> </audio>
<!--% ELSE %-->
<img src="images/livestream.png" /><br /> <img src="images/livestream.png" /><br />
<audio controls autoplay> <audio controls autoplay>
<source src="https://files.shownotes.ooguy.com/stream" type="audio/mpeg" > <source src="https://files.shownotes.ooguy.com/stream" type="audio/mpeg" >
</audio> <br /> </audio> <br />
<a href="https://files.shownotes.ooguy.com/stream">https://files.shownotes.ooguy.com/stream</a><br /> <a href="https://files.shownotes.ooguy.com/stream">https://files.shownotes.ooguy.com/stream</a><br />
<a href="https://hackerpublicradio.org/live">https://hackerpublicradio.org/live</a><br /> <a href="https://hackerpublicradio.org/live">https://hackerpublicradio.org/live</a><br />
<!--% END %-->
</p> </p>
<p><a href="<!--% absolute_path(baseurl) %-->new_year.html">More information…</a></p> <p><a href="<!--% absolute_path(baseurl) %-->new_year.html">More information…</a></p>
</article> </article>
</div> </div>