website/templates/main/announcements.html.ep

30 lines
947 B
Plaintext

% 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>
Also, all announcements are signed with the following <a href="/alpha.asc">PGP key</a>:
</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>
% foreach my $entry (@$items) {
<article>
<h2><%= $entry->{"title"} %></h2>
<p>
Posted <%= localtime($entry->{"date"})->strftime() %>.
<a href="/announcement/<%= $entry->{"filename"} %>">Download PGP signature.</a>
<p>
<pre><%= $entry->{"text"} %></pre>
</article>
% }
% if ($next_page != -1) {
<a href="/announcements?page=<%= $next_page %>">Next page...</a>
% }