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.

84 lines
2.2 KiB

  1. Content-type: text/html
  2. <?xml version="1.0" encoding="iso-8859-1"?>
  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. 2000 => 'entries for 2000',
  34. 2001 => 'entries for 2001',
  35. 2002 => 'entries for 2001',
  36. 2003 => 'entries for 2003',
  37. 2004 => 'entries for 2004',
  38. 2005 => 'entries for 2005',
  39. 2006 => 'entries for 2006',
  40. 2007 => 'entries for 2007'
  41. );
  42. my (@linklist) = qw(new all 2007 2006 2005 chapbook hack );
  43. foreach my $link (@linklist) {
  44. if ($title ne $link) {
  45. if ($link eq 'new') {
  46. $output .= "<a href=\"$DISPLAY_CONF{URL_ROOT}\" title=\"$description{new}\">new</a> \n";
  47. } else {
  48. $output .= "<a href=\"$DISPLAY_CONF{URL_ROOT}${link}\" title=\"$description{$link}\">$link</a> \n";
  49. }
  50. } else {
  51. if ($link eq "new") {
  52. $output .= "<strong><span title=\"$description{new}\">new</span></strong> \n";
  53. } else {
  54. $output .= "<strong><span title=\"$description{$link}\">$link</span></strong> \n";
  55. }
  56. }
  57. }
  58. return $output;
  59. </perl>
  60. </p>
  61. <perl>
  62. if ($DISPLAY_CONF{title} eq 'new') {
  63. return "<div id=\"entries\">\n\n";
  64. }
  65. return '';
  66. </perl>
  67. <h1>${title}</h1>