common: bump version to 1.9
[sheet.git] / index.plp
index 8bf233c0696c53a45e8ca65bd82610b6db41a30c..01b59c4844c8837b7ed0b70672c5f1d738dcc536 100644 (file)
--- a/index.plp
+++ b/index.plp
@@ -1,30 +1,17 @@
-<:
-use utf8;
-use strict;
-use warnings;
-
-our $VERSION = 'v1.0';
-
-$header{content_type} = "text/html; charset=utf-8";
-
-:><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
- "http://www.w3.org/TR/html4/loose.dtd">
-<html>
+<(common.inc.plp)><:
 
-<head>
-<title>vi cheat sheet</title>
-<meta http-equiv="content-type" content="<:= $header{content_type} :>">
-<link rel="stylesheet" type="text/css" media="all" href="base.css">
-<style type="text/css">
-       ul {
-               text-align: center;
-               margin-bottom: 1ex;
-       }
-</style>
-</head>
-
-<body id="vim">
+Html({
+       title => 'cheat sheets',
+       version => '1.9',
+       description => [
+               "Cheat sheets summarising various software programs and standards.",
+       ],
+       keywords => [qw'
+               sheet cheat reference software overview summary help keyboard map unicode
+       '],
+});
 
+:>
 <h1>Shiar's cheat sheets</h1>
 
 <p>
@@ -34,27 +21,54 @@ the following topics have been condensed into single pages of reference.
 Originally created by Mischa <span style="font-variant:small-caps">Poslawsky</span>,
 but you're free to use, print, alter, and redistribute under the AGPL license.
 </p>
+<:
+my @format = ('--date=short', "--pretty=%ad (%ar)\t%s");
+if (open my $log, '-|', git => 'log', -1, @format) {{
+       my $line = readline $log;
+       $line or next;  # explicitly ignore empty input
+       my ($date, $subject) = split /[\t\n]/, $line;
+       $date =~ s/ \K/<small>/ and $date .= '</small>';
+       print "<p><strong>Last update</strong>: $date $subject</p>\n";
+}}
 
+:>
+<div class="section">
 <h2>Keyboard maps</h2>
 <ul>
-<li><a href="/vim">vi/vim</a>
+<li><a href="/readline">readline</a>
+<li><a href="/screen">screen</a>
+<li><a href="/less">less</a>
+<li><a href="/vi">vi/vim</a>
 <li><a href="/vimperator">vimperator</a>
+<li><a href="/mutt">mutt</a>
 <li><a href="/nethack">nethack</a>
-<li><a href="/readline">readline</a>
+<li><a href="/mplayer">mplayer</a>
 </ul>
+</div>
 
+<div class="section">
 <h2>Unicode characters</h2>
 <ul>
-<li><a href="/digraphs">digraphs</a>
 <li><a href="/charset">charsets</a>
 <li><a href="/unicode">common glyphs</a>
+<li><a href="/digraphs">digraphs</a>
+<li><a href="/writing">alphabet comparison</a>
+<li><a href="/latin">latin variants</a>
+<li><a href="/font">font coverage</a>
 </ul>
+</div>
 
-<p class="footer">
-       <a href="http://sheet.shiar.nl/" rel="home">sheet.shiar.nl</a>/
-       <a href="http://git.shiar.nl/sheet.git" rel="vcs-git" title="Git repository"><:= $VERSION :></a>
-       created by <a href="http://shiar.nl/" rel="author">Shiar</a> •
-       <a title="Licensed under the GNU Affero General Public License, version 3" rel="copyright"
-          href="http://www.fsf.org/licensing/licenses/agpl-3.0.html">AGPLv3</a>
-</p>
+<div class="section">
+<h2>Other references</h2>
+<ul>
+<li><a href="/browser">browser support</a>
+<li><a href="/countries">country codes</a>
+<li><a href="/perl">perl versions</a>
+<li><a href="/apl">apl symbols</a>
+<li><a href="/termcol">terminal colours</a>
+<li><a href="/sc/2">starcraft 2 units</a>
+       (<a href="/sc" title="StarCraft: Brood War">bw</a>)
+<li><a href="/emoji">emoticons</a>
+</ul>
+</div>