denote link functionality by adding rel microformats
authorMischa POSLAWSKY <perl@shiar.org>
Wed, 4 Feb 2009 17:45:24 +0000 (17:45 +0000)
committerMischa POSLAWSKY <perl@shiar.org>
Tue, 21 Apr 2009 23:57:00 +0000 (23:57 +0000)
Add rel identifiers to links for home, author, copyright, and vcs-git.
The author link is new, but seems like useful metadata to the already
written text.  The old vcs proposal should now be called 'vcs-git' as
per the current recommendation at <http://kitenet.net/~joey/rfc/rel-vcs>
(that's what you get for being an early adaptor).

As it's already linked in the body text, the vcs-* <link> in the head is
superfluous.  This may affect parsers which only read the head, but I'm
not going to add duplicate links because of some lazy external programs.
This is even more an issue for other microformats, because browsers (at
least Opera or various plugins) support only head-links.  But still that
code should be fixed instead of requiring all sites to add everything
twice.

digraphs.plp
nethack.plp
unicode.plp
vim.plp
vimperator.plp

index 84b063e519f3431f5f09e4113a15de09c3313735..b4d3d01c7b8e7fe6875e4a03da271b10918b842d 100644 (file)
@@ -17,7 +17,6 @@ $header{content_type} = 'text/html; charset=utf-8';
 <title>digraph cheat sheet</title>
 <meta http-equiv="content-type" content="utf-8">
 <link rel="stylesheet" type="text/css" media="all" href="digraphs.css">
 <title>digraph cheat sheet</title>
 <meta http-equiv="content-type" content="utf-8">
 <link rel="stylesheet" type="text/css" media="all" href="digraphs.css">
-<link rel="vcs" type="git" href="git://dev.shiar.nl/sheet">
 </head>
 
 <body>
 </head>
 
 <body>
@@ -119,10 +118,10 @@ print "</table>\n";
 </div>
 
 <p id="footer">
 </div>
 
 <p id="footer">
-       <a href="http://sheet.shiar.nl/digraphs">sheet.shiar.nl<strong>/digraphs</strong></a>
-       <a href="git://dev.shiar.nl/sheet"><:= "v$VERSION" :></a>
-       created by Shiar •
-       <a title="Licensed under the GNU Affero General Public License, version 3"
+       <a href="http://sheet.shiar.nl/" rel="home">sheet.shiar.nl</a>/digraphs
+       <a href="git://dev.shiar.nl/sheet" rel="vcs-git" title="Git repository"><:= "v$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> •
        last update <:
                use Time::Format qw(time_format);
           href="http://www.fsf.org/licensing/licenses/agpl-3.0.html">AGPLv3</a> •
        last update <:
                use Time::Format qw(time_format);
index 312200a95b6c0243a82a4bcce0a3c975b7073322..8b48c853c07927eef9e6727c9f12358d081cddfb 100644 (file)
@@ -130,10 +130,10 @@ $keys->print_rows($get{static});
 </div>
 
 <p class="footer">
 </div>
 
 <p class="footer">
-       <a href="http://sheet.shiar.nl/nethack">sheet.shiar.nl<strong>/nethack</strong></a>
-       <a href="git://dev.shiar.net/vi-cheat"><:= "v$VERSION" :></a>
-       created by Shiar <:= $sign{sep} :>
-       <a title="Licensed under the GNU Affero General Public License, version 3"
+       <a href="http://sheet.shiar.nl/" rel="home">sheet.shiar.nl</a>/nethack
+       <a href="git://dev.shiar.nl/sheet" rel="vcs-git" title="Git repository"><:= "v$VERSION" :></a>
+       created by <a href="http://shiar.nl/" rel="author">Shiar</a> <:= $sign{sep} :>
+       <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> <:= $sign{sep} :>
        last update <:
                use Time::Format qw(time_format);
           href="http://www.fsf.org/licensing/licenses/agpl-3.0.html">AGPLv3</a> <:= $sign{sep} :>
        last update <:
                use Time::Format qw(time_format);
index dd7de6d2fe3f8f2825b425e1b96d656908599ce8..6e585a436d0952ea68060df4803caf86e03fb656 100644 (file)
@@ -17,7 +17,6 @@ $header{content_type} = 'text/html; charset=utf-8';
 <title>digraph cheat sheet</title>
 <meta http-equiv="content-type" content="utf-8">
 <link rel="stylesheet" type="text/css" media="all" href="/digraphs.css">
 <title>digraph cheat sheet</title>
 <meta http-equiv="content-type" content="utf-8">
 <link rel="stylesheet" type="text/css" media="all" href="/digraphs.css">
-<link rel="vcs" type="git" href="git://dev.shiar.nl/sheet">
 </head>
 
 <body>
 </head>
 
 <body>
@@ -281,10 +280,10 @@ print_glyph_tables(
 </div>
 
 <p id="footer">
 </div>
 
 <p id="footer">
-       <a href="http://sheet.shiar.nl/unicode">sheet.shiar.nl<strong>/unicode</strong></a>
-       <a href="git://dev.shiar.nl/sheet"><:= "v$VERSION" :></a>
-       created by Shiar •
-       <a title="Licensed under the GNU Affero General Public License, version 3"
+       <a href="http://sheet.shiar.nl/" rel="home">sheet.shiar.nl</a>/unicode
+       <a href="git://dev.shiar.nl/sheet" rel="vcs-git" title="Git repository"><:= "v$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> •
        last update <:
                use Time::Format qw(time_format);
           href="http://www.fsf.org/licensing/licenses/agpl-3.0.html">AGPLv3</a> •
        last update <:
                use Time::Format qw(time_format);
diff --git a/vim.plp b/vim.plp
index 183a04a7b081f0c4ea9fdf38387f5c27dca16216..e2890bf9d971c847156178e319da6a408db0096f 100644 (file)
--- a/vim.plp
+++ b/vim.plp
@@ -42,7 +42,6 @@ $header{content_type} = $ctype;
        print "\n<style> .no, .alias {opacity:.5} </style>"
                if $showkeys and $get{keys} eq 'ghost';
 :>
        print "\n<style> .no, .alias {opacity:.5} </style>"
                if $showkeys and $get{keys} eq 'ghost';
 :>
-<link rel="vcs" type="git" href="git://dev.shiar.nl/sheet">
 <script type="text/javascript" src="/keys.js"></script>
 
 <body id="vim">
 <script type="text/javascript" src="/keys.js"></script>
 
 <body id="vim">
@@ -134,10 +133,10 @@ $keys->print_rows($get{static});
 </div>
 
 <p class="footer">
 </div>
 
 <p class="footer">
-       <a href="http://sheet.shiar.nl/vim">sheet.shiar.nl<strong>/vim</strong></a>
-       <a href="git://dev.shiar.nl/sheet"><:= "v$VERSION" :></a>
-       created by Shiar <:= $sign{sep} :>
-       <a title="Licensed under the GNU Affero General Public License, version 3"
+       <a href="http://sheet.shiar.nl/" rel="home">sheet.shiar.nl</a>/vim
+       <a href="git://dev.shiar.nl/sheet" rel="vcs-git" title="Git repository"><:= "v$VERSION" :></a>
+       created by <a href="http://shiar.nl/" rel="author">Shiar</a> <:= $sign{sep} :>
+       <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> <:= $sign{sep} :>
        last update <:
                use Time::Format qw(time_format);
           href="http://www.fsf.org/licensing/licenses/agpl-3.0.html">AGPLv3</a> <:= $sign{sep} :>
        last update <:
                use Time::Format qw(time_format);
index 14be32e4745fdf34dcbfc56f10270ae01b3d1956..660d8197576bb0fba1cad69c3be3214ba9797c8e 100644 (file)
@@ -42,7 +42,6 @@ $header{content_type} = $ctype;
        print "\n<style> .no, .alias {opacity:.5} </style>"
                if $showkeys and $get{keys} eq 'ghost';
 :>
        print "\n<style> .no, .alias {opacity:.5} </style>"
                if $showkeys and $get{keys} eq 'ghost';
 :>
-<link rel="vcs" type="git" href="git://dev.shiar.nl/sheet">
 <script type="text/javascript" src="/keys.js"></script>
 
 <body id="vimperator">
 <script type="text/javascript" src="/keys.js"></script>
 
 <body id="vimperator">
@@ -132,10 +131,10 @@ $keys->print_rows($get{static});
 </div>
 
 <p class="footer">
 </div>
 
 <p class="footer">
-       <a href="http://sheet.shiar.nl/vimperator">sheet.shiar.nl<strong>/vimperator</strong></a>
-       <a href="git://dev.shiar.nl/sheet"><:= "v$VERSION" :></a>
-       created by Shiar <:= $sign{sep} :>
-       <a title="Licensed under the GNU Affero General Public License, version 3"
+       <a href="http://sheet.shiar.nl/" rel="home">sheet.shiar.nl</a>/vimperator
+       <a href="git://dev.shiar.nl/sheet" rel="vcs-git" title="Git repository"><:= "v$VERSION" :></a>
+       created by <a href="http://shiar.nl/" rel="author">Shiar</a> <:= $sign{sep} :>
+       <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> <:= $sign{sep} :>
        last update <:
                use Time::Format qw(time_format);
           href="http://www.fsf.org/licensing/licenses/agpl-3.0.html">AGPLv3</a> <:= $sign{sep} :>
        last update <:
                use Time::Format qw(time_format);