Almost-minimal filesystem based blog.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

42 lines
1.0 KiB

17 years ago
17 years ago
16 years ago
17 years ago
17 years ago
17 years ago
17 years ago
17 years ago
17 years ago
17 years ago
  1. <perl>
  2. my $output;
  3. if ($self->title eq 'new') {
  4. my @headers = dir_list('/home/bbearnes/p1k3.com/imgs/header', 'alpha',
  5. '\.(jpg|png)$');
  6. my $header_image = $headers[rand @headers];
  7. my $LinkDump = $self->wala->print_page('LinkDump');
  8. return <<"END_HTML";
  9. </div> <!-- end of updatecolumn div -->
  10. <div class="linkdump" id="linkdump">
  11. <p class="centerpiece"><img src="/imgs/header/$header_image" alt="" /></p>
  12. <h3 style="margin-bottom: .5em;"><a href="/wala/">wala</a>::<a href="/wala/wala.pl?LinkDump">LinkDump</a></h3>
  13. $LinkDump
  14. <p><em>For older stuff, see <a href="/wala/wala.pl?LinkDumpArchive">LinkDumpArchive</a>.</em></p>
  15. <p><em>All original content on p1k3, unless otherwise noted, is released
  16. to the public domain.</em></p>
  17. </div> <!-- end of linkdump div -->
  18. END_HTML
  19. } else {
  20. return <<"END_HTML";
  21. <p><em>All original content on p1k3, unless otherwise noted, is released
  22. to the public domain.</em></p>
  23. END_HTML
  24. }
  25. </perl>
  26. </body>
  27. </html>