<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array">
    <added>
      <filename>js/footnotes.js</filename>
    </added>
  </added>
  <modified type="array">
    <modified>
      <diff>@@ -53,5 +53,5 @@ Web Version
 * Add CC license fragment to recipe template.
 * Link PDF from recipes?
 * Gzip HTML.
-* Format footnotes.
 * Add Atom feed of recipes sorted by ctime.
+* Add Analytics to all templates.</diff>
      <filename>TODO</filename>
    </modified>
    <modified>
      <diff>@@ -2,9 +2,6 @@
   &lt;head&gt;
     &lt;title&gt;Vim Recipes: &lt;%= title %&gt;&lt;/title&gt;
     &lt;link rel=&quot;stylesheet&quot; type=&quot;text/css&quot; href=&quot;/css/style.css&quot;/&gt;
-    &lt;!--&lt;link rel=&quot;stylesheet&quot; type=&quot;text/css&quot; href=&quot;/css/layout.css&quot;/&gt;
-    &lt;link rel=&quot;stylesheet&quot; type=&quot;text/css&quot; href=&quot;/css/user.css&quot;/&gt;
-    &lt;link rel=&quot;stylesheet&quot; type=&quot;text/css&quot; href=&quot;/css/web.css&quot;/&gt; --&gt;
   &lt;/head&gt;
   &lt;body&gt;
     &lt;form action=&quot;http://www.google.com/cse&quot;&gt;
@@ -18,6 +15,7 @@
     &lt;p&gt;&lt;a href=&quot;/toc/&quot;&gt;Vim Recipes&lt;/a&gt; &lt;span&gt;&amp;#8227;&lt;/span&gt; &lt;a href=&quot;/&lt;%= section_id %&gt;/&quot;&gt;&lt;%= section %&gt;&lt;/a&gt; &lt;span&gt;&amp;#8227;&lt;/span&gt;
     &lt;i&gt;&lt;%= title %&gt;&lt;/i&gt;&lt;/p&gt;
     &lt;%= body %&gt;
+    &lt;div id=&quot;footnotes&quot;&gt;&lt;/div&gt;
     &lt;div class=&quot;nav&quot;&gt;&lt;a
         rel=&quot;prev&quot; href=&quot;/&lt;%= prev_e[:section_id] %&gt;/&lt;%= prev_e[:id]
         %&gt;/&quot;&gt;&amp;#x21A9; &amp;nbsp; &lt;%=</diff>
      <filename>templates/recipe.html</filename>
    </modified>
    <modified>
      <diff>@@ -18,15 +18,26 @@ table {
   margin-right: auto;
 }  
 
+/* Initially we hide footnotes. A JavaScript function is then run to render
+ * them at the bottom of the page, replacing their previous location with a
+ * link to their new location. Having done this, the JavaScript sets span.fn
+ * _display_ to 'inline', thus avoiding the footnotes initially appearing in 
+ * their original position prior to being moved. 
+ *
+ * This is imperfect because it hides footnotes from users with CSS enabled
+ * and JS disabled, but it will do for now.
+ */ 
 span.fn {
-  display: always;
-  position: static;
-	color: #f30;
+	display: none;
 }
 
-a.footnote {
+span.fn a:link {
 	vertical-align: super;
-	font-size: 0.7em;
+  color: black;
+  font-weight: bold;
+  font-size: 100%;
+  padding-left: 1px;
+  border: none;
 }
 
 #footnotes {</diff>
      <filename>templates/web.css</filename>
    </modified>
    <modified>
      <diff>@@ -4,9 +4,8 @@
 &lt;head&gt;
 	&lt;meta http-equiv=&quot;Content-type&quot; content=&quot;text/html; charset=utf-8&quot; /&gt;
   &lt;title&gt;Vim Recipes - A cookbook for the Vim text editor&lt;/title&gt;
-	&lt;link rel=&quot;stylesheet&quot; type=&quot;text/css&quot; href=&quot;../templates/layout.css&quot;/&gt;
-	&lt;link rel=&quot;stylesheet&quot; type=&quot;text/css&quot; href=&quot;../templates/syntax.css&quot;/&gt;
-	&lt;link rel=&quot;stylesheet&quot; type=&quot;text/css&quot; href=&quot;../templates/user.css&quot;/&gt;
+	&lt;link rel=&quot;stylesheet&quot; type=&quot;text/css&quot; href=&quot;../templates/main.css&quot;/&gt;
+	&lt;link rel=&quot;stylesheet&quot; type=&quot;text/css&quot; href=&quot;../templates/pdf.css&quot;/&gt;
 	&lt;meta name=&quot;author&quot; content=&quot;Run Paint Run Run&quot; /&gt;
 	&lt;meta name=&quot;subject&quot; content=&quot;Vim text editor&quot; /&gt;
   &lt;meta name=&quot;keywords&quot; content=&quot;vim cookbook recipes technical software</diff>
      <filename>text/01_pre/00-head.html</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>231bd2b81e3345fa6eb089eb0021ad06a3b48858</id>
    </parent>
  </parents>
  <author>
    <name>Run Paint Run Run</name>
    <email>runrun@runpaint.org</email>
  </author>
  <url>http://github.com/runpaint/vim-recipes/commit/bb70c24c4a33a2b06088c19da5ae8dbe253fecec</url>
  <id>bb70c24c4a33a2b06088c19da5ae8dbe253fecec</id>
  <committed-date>2009-05-12T14:12:02-07:00</committed-date>
  <authored-date>2009-05-12T14:12:02-07:00</authored-date>
  <message>Format/display footnotes for web version.

Previously, footnotes weren't shown on the web version; now they are.</message>
  <tree>4deb55c82ddcaa63545d739e6a381902f5294451</tree>
  <committer>
    <name>Run Paint Run Run</name>
    <email>runrun@runpaint.org</email>
  </committer>
</commit>
