website/templates/main/announcements.html.ep

30 lines
947 B
Plaintext
Raw Normal View History

2022-11-03 12:42:42 -05:00
% layout 'default';
% title 'UNIX.dog Announcements';
% use Time::Piece;
<h1>
Announcements
</h1>
<p>
These announcements are also avaiable over RSS. Just add .rss to the path here.
<br>
2022-11-03 13:17:49 -05:00
Also, all announcements are signed with the following <a href="/alpha.asc">PGP key</a>:
2022-11-03 12:42:42 -05:00
</p>
<pre>67A3 9437 8618 B72E B4D5 CC69 B0EB E117 49B9 9367 alpha@unix.dog</pre>
<p>
so you can verify their authenticity. When a new announcement is out, you should
also recieve an email if you're registered.
</p>
2022-11-03 13:17:49 -05:00
% foreach my $entry (@$items) {
2022-11-03 12:42:42 -05:00
<article>
2022-11-03 13:17:49 -05:00
<h2><%= $entry->{"title"} %></h2>
2022-11-03 12:42:42 -05:00
<p>
2022-11-03 13:17:49 -05:00
Posted <%= localtime($entry->{"date"})->strftime() %>.
<a href="/announcement/<%= $entry->{"filename"} %>">Download PGP signature.</a>
2022-11-03 12:42:42 -05:00
<p>
2022-11-03 13:17:49 -05:00
<pre><%= $entry->{"text"} %></pre>
2022-11-03 12:42:42 -05:00
</article>
2022-11-03 13:17:49 -05:00
% }
% if ($next_page != -1) {
2022-11-03 12:42:42 -05:00
<a href="/announcements?page=<%= $next_page %>">Next page...</a>
2022-11-03 13:17:49 -05:00
% }