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.

87 lines
2.2 KiB

17 years ago
17 years ago
17 years ago
17 years ago
17 years ago
17 years ago
17 years ago
17 years ago
17 years ago
17 years ago
17 years ago
17 years ago
17 years ago
17 years ago
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!DOCTYPE html
  3. PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
  4. "DTD/xhtml1-strict.dtd">
  5. <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
  6. <head>
  7. <title>p1k3::${title}</title>
  8. <meta name="keywords" content="brennen, bearnes, journal, poetry,
  9. wiki, perl, linux, debian, free software, beer, colorado,
  10. boulder, nebraska, kansas, midwest, lincoln, salina, laurel, UNL,
  11. ultimate frisbee, cornfed, education, public domain, photography,
  12. history, anarchism"
  13. />
  14. <meta name="description" content="Writing by ${author}." />
  15. <meta name="author" content="${author}" />
  16. <link rel="alternate" type="application/atom+xml"
  17. title="p1k3 atom feed"
  18. href="${url_root}${feed_alias}" />
  19. <link rel="feed" type="application/atom+xml"
  20. title="p1k3 atom feed"
  21. href="${url_root}${feed_alias}" />
  22. <link rel="stylesheet" href="${stylesheet_url}" />
  23. <link rel="icon" type="image/x-png" href="${favicon_url}" />
  24. </head>
  25. <body>
  26. <perl>
  27. # linkbar
  28. my $title = $self->title;
  29. my $output;
  30. my (%description) =
  31. (
  32. new => 'newest entries',
  33. all => 'all entries',
  34. chapbook => 'unrequired poetry',
  35. hack => 'code and such',
  36. 2000 => 'entries for 2000',
  37. 2001 => 'entries for 2001',
  38. 2002 => 'entries for 2001',
  39. 2003 => 'entries for 2003',
  40. 2004 => 'entries for 2004',
  41. 2005 => 'entries for 2005',
  42. 2006 => 'entries for 2006',
  43. 2007 => 'entries for 2007',
  44. feed => 'an Atom feed of new entries'
  45. );
  46. my (@linklist) = qw(new all 2007 2006 2005 2004 2003 chapbook hack feed);
  47. foreach my $link (@linklist) {
  48. if ($title ne $link) {
  49. my $href = $self->url_root . $link;
  50. if ($link eq 'new') {
  51. $href = $self->url_root;
  52. }
  53. $output .= a("href: $href", "title: $description{$link}", $link) . " \n";
  54. } else {
  55. $output .= qq{<strong><span title="$description{$link}">$link</span></strong> \n};
  56. }
  57. }
  58. return p($output);
  59. </perl>
  60. <perl>
  61. if ($self->title() eq 'new') {
  62. return qq{<div id="entries">\n\n};
  63. }
  64. return '';
  65. </perl>
  66. <h1>${title}</h1>