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.

85 lines
2.3 KiB

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