Commits

Shlomi Fish committed 91d2dd4 Merge

Merged from convert-to-template-toolkit-2.

Comments (0)

Files changed (72)

+vim-begin/jekyll-prototype/dest
 vim-begin/jekyll-prototype/_site
 vim-begin/jekyll-prototype/.sass-cache
 vim-begin/jekyll-prototype/src/jqui-override.css

vim-begin/jekyll-prototype/CONVERT.pl

+#!/usr/bin/perl
+
+use strict;
+use warnings;
+
+use IO::All;
+
+use 5.0016;
+
+foreach my $fn (@ARGV)
+{
+    my $text = io($fn)->utf8->slurp;
+
+    if ($text !~ s/\A-+\nlayout: *default\ntitle: *([^\n]+)\n-+\n+//ms)
+    {
+        die "Failed in $fn.";
+    }
+    my $title = $1;
+
+    my $bp = '../' x scalar(() = $fn =~ m#/#g);
+
+    io("$fn.tt2")->utf8->print(<<"EOF");
+[%- PROCESS "blocks.tt2" -%]
+[%- SET title = '$title' -%]
+[%- SET base_path = '$bp' -%]
+[%- PROCESS start_html -%]
+$text
+
+[% PROCESS "footer.tt2" %]
+EOF
+}

vim-begin/jekyll-prototype/Makefile

 # GENERATED_HTMLS = _site/index.html _site/books/index.html _site/mailing-lists/index.html
+D = dest
+
 SOURCES = $(shell find src -name '*.html') _config.yml atom.xml CNAME README.textile
 GENERATED_HTMLS = $(shell find _site -name '*.html')
 GENERATED_CSS = src/css/style.css
 SCREENSHOTS_PNGS = src/screenshots/images/romainl-macvim1.png src/screenshots/images/romainl-macvim2.png src/screenshots/images/gvim-perl-256.png
 SCREENSHOTS_PNGS_PREVIEWS = $(patsubst %.png,%-preview.png,$(SCREENSHOTS_PNGS))
 
-all: $(GENERATED_HTMLS) $(GENERATED_CSS)
+RSYNC = rsync --progress --verbose --rsh=ssh -a
 
-$(GENERATED_HTMLS) : $(SOURCES) $(SCREENSHOTS_PNGS_PREVIEWS)
-	jekyll
+RSYNC_EXTRA_OPTS =
+
+DESTS = $(D)/index.html
+HTACCESS_DEST = $(D)/.htaccess
+
+UPLOAD_URL = hostgator:domains/vim.begin-site.org/
+
+all: $(GENERATED_CSS) $(DESTS) $(HTACCESS_DEST) $(SCREENSHOTS_PNGS_PREVIEWS)
+
+$(DESTS): $(D)/%.html: src/%.html.tt2 footer.tt2 blocks.tt2
+	perl process.pl
+
+$(HTACCESS_DEST): htaccess.conf
+	cp -f $< $@
+
+$(GENERATED_CSS) : sass/jqui-override.sass sass/style.sass sass/print.sass sass/vim_syntax_highlighting.sass
+	compass compile
+	mkdir -p $(D)/css
+	cp -f src/css/*.css $(D)/css/
 
 $(SCREENSHOTS_PNGS_PREVIEWS): %-preview.png: %.png
 	convert $< -resize 400 $@
 
-$(GENERATED_CSS) : sass/jqui-override.sass sass/style.sass sass/print.sass sass/vim_syntax_highlighting.sass
-	compass compile
-	mkdir -p _site/css
-	cp -f src/css/*.css _site/css
-
-RSYNC = rsync --progress --verbose --rsh=ssh
-
 upload: all
-	$(RSYNC) -a ./_site/* ./_site/.htaccess hostgator:domains/vim.begin-site.org/
+	$(RSYNC) --exclude='**~' --exclude='**/.*.swp' $(RSYNC_EXTRA_OPTS) $(D)/ $(UPLOAD_URL)

vim-begin/jekyll-prototype/blocks.tt2

+[%- BLOCK block_before -%]
+<table border="0" class="wrap" summary="wrapper table">
+<tr>
+<td>
+[%- END -%]
+
+[%- BLOCK block_after -%]
+</td>
+</tr>
+</table>
+[%- END -%]
+
+[%- BLOCK link_to_top -%]
+<p class="to_top"><a href="http://mikmod.shlomifish.org/">Back to the MikMod Homepage</a></p>
+[%- END -%]
+
+[%- BLOCK start_html -%]
+<?xml version="1.0" encoding="utf-8"?>
+<!DOCTYPE html>
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-GB" lang="en-GB">
+<head>
+   <title>[% title %] (Vim Beginners’ Site)</title>
+   <meta charset="UTF-8" />
+   <base href="http://vim.begin-site.org/" />
+   <meta name="author" content="Shlomi Fish" />
+   <link href="http://feeds.feedburner.com/tom-preston-werner" rel="alternate" title="Tom Preston-Werner" type="application/atom+xml" />
+
+   <!-- syntax highlighting CSS -->
+   <link rel="stylesheet" href="css/syntax.css" type="text/css" />
+
+   <!-- Homepage CSS -->
+   <link rel="stylesheet" href="css/style.css" type="text/css" media="screen, projection" />
+
+   <!-- Print CSS -->
+<link rel="stylesheet" href="css/print.css" type="text/css" media="print" />
+<script type="text/javascript" src="js/jq.js"></script>
+<script type="text/javascript" src="js/position_divs.js"></script>
+<!-- Typekit -->
+</head>
+<body>
+
+<a href="http://bitbucket.org/shlomif/vim-begin"><img src="images/fork-me-on-bitbucket.png" class="fork_me" alt="Fork me on BitBucket" /></a>
+
+<!-- HEADER -->
+<!-- Global Navigation -->
+<div id='header'>
+<!-- Sitename and Banner -->
+<div class="site-name" id="js-site-name">
+<h1><a href="">Vim Beginners' Site</a></h1>
+</div>
+<div class="site-slogan" id="js-site-slogan">
+Vim - type less ; edit more.
+</div>
+</div>
+
+<div id="page-container">
+
+<div class="nav-main">
+<h3 class="hide">Breadcrumbs Trail</h3>
+<p class="breadcrumbs">
+<a href="">Vim Beginner’s Site</a>
+→
+<a class="extra" href="">Home</a>
+</p>
+
+<h3 class="hide">Global Navigation</h3>
+
+<ul class="about-links">
+
+<li><a href="about.html">About Us</a></li>
+
+<li><a href="contact/">Contact</a></li>
+
+</ul>
+
+</div>
+
+<h3 class="hide">Main Navigation</h3>
+<div id="left-sidebar">
+
+<a href=""><img class="logo" src="images/vim-begin.png"
+    alt="Vim Begin Logo" /></a>
+
+<div id="main_nav_menu">
+<ul class="navbarmain">
+<li>
+<a href="">Home</a>
+</li>
+<li>
+<a href="about.html">About</a>
+</li>
+<li>
+<a href="news/" title="Previous News Item">News</a>
+</li>
+<li>
+<a href="screenshots/" title="Screenshots of Vim in Action">Screenshots</a>
+</li>
+<li>
+<a href="links/" title="External Links to Other Resources">Links</a>
+</li>
+<li>
+<a href="humour/" title="Vim Humour and Links to Vim Humour resources">Vim Humour</a>
+</li>
+</ul>
+<h2>
+<a href="learn/" title="Why and how to learn Vim?">Learn Vim Now</a>
+</h2>
+<h2>
+<a href="resources/" title="Links to Online and Offline Resources for Learning Vim">Resources</a>
+</h2>
+<ul class="navbarnested">
+<li>
+<a href="tutorials/">Online Tutorials</a>
+</li>
+<li>
+<a href="books/">Books</a>
+</li>
+<li>
+<a href="core-doc/">Core Docs</a>
+</li>
+<li>
+<a href="articles/">Article Collections</a>
+</li>
+<li>
+<a href="training/" title="Take paid courses for learning Vim">Training</a>
+</li>
+<li>
+<a href="FAQs/" title="Lists of Frequently Asked Questions with Answers">FAQs</a>
+</li>
+<li>
+<a href="exercises/" title="Links to Exercises and Challenges for Practice">Exercises and Challenges</a>
+</li>
+<li>
+<a href="games/" title="Games you can play in order to learn Vim">Games</a>
+</li>
+</ul>
+<ul class="navbarmain">
+<li>
+<a href="mailing-lists/" title="Ask questions and receive answers about Vim by E-mail">Mailing Lists</a>
+</li>
+<li>
+<a href="web-forums/" title="Ask questions and receive answers by using a web-browser">Web Forums</a>
+</li>
+<li>
+<a href="irc/" title="Chat online about Vim using the Internet Relay Chat (IRC)">IRC Channels</a>
+</li>
+</ul>
+<ul class="navbarmain">
+<li>
+<a href="reference-resources/" title="Resources for reference about Vim and looking up information.">Reference Resources</a>
+</li>
+<li>
+<a href="wikis/" title="Publicly editable sites with Lots of Useful Information">Wikis</a>
+</li>
+<li>
+<a href="blogs/" title="Links to some Vim-related Blogs (a.k.a &quot;Weblogs&quot; or online journals)">Blogs</a>
+</li>
+</ul>
+<h2>
+<a href="platforms/">Platforms</a>
+</h2>
+<h2>
+<a href="contribute/" title="Contribute new content or corrections to this site">Contribute</a>
+</h2>
+<ul class="navbarmain">
+<li>
+<a href="contribute/list/">Contributors List</a>
+</li>
+<li>
+<a href="source/">Site’s Source Code</a>
+</li>
+</ul>
+
+</div>
+
+
+</div>
+
+<h3 class="hide">Content</h3>
+<div id="content">
+
+<h1>[% title %]</h1>
+
+[%- END -%]
+
+[%-# vim:ft=tt2html:
+-%]

vim-begin/jekyll-prototype/footer.tt2

+<p class="share_this">
+<a href="http://www.addtoany.com/share_save"><img src="http://static.addtoany.com/buttons/share_save_171_16.png" width="171" height="16" class="bless" alt="Share/Bookmark" /></a>
+</p>
+
+</div>
+
+<h3 class="hide">Sidebar</h3>
+<div id="right-sidebar">
+<div class="testimonials">
+<h2>Testimonials</h2>
+<b>TODO : Add more</b>
+<p>
+<a href="learn/who-is-using/">More…</a>
+</p>
+</div>
+<div class="news-box">
+<h2><a href="news/">News</a></h2>
+<ul>
+<li>
+<a href="news/">More news…</a>
+</li>
+</ul>
+</div>
+</div>
+</div>
+
+
+<!-- FOOTER -->
+<h3 class="hide">Footer</h3>
+<div id="footer">
+<!-- Creative Commons License -->
+Unless noted otherwise, the Vim Beginners’s Site is <b>licensed</b> under
+the <a rel="license"
+href="http://creativecommons.org/licenses/by/3.0/">Creative Commons
+Attribution 3.0 Unported License</a> (or at your option any later
+version).<br />
+<!-- /Creative Commons License -->
+<!--
+<rdf:RDF xmlns="http://web.resource.org/cc/"
+xmlns:dc="http://purl.org/dc/elements/1.1/"
+xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
+<Work rdf:about="">
+<dc:title>Better SCM Site Contents</dc:title>
+<dc:date>2004</dc:date>
+<dc:description>A Version Control Systems Information and Advocacy carrying site</dc:description>
+<dc:creator><Agent>
+  <dc:title>Shlomi Fish</dc:title>
+</Agent></dc:creator>
+<dc:rights><Agent>
+  <dc:title>Shlomi Fish</dc:title>
+</Agent></dc:rights>
+<dc:type rdf:resource="http://purl.org/dc/dcmitype/Text" />
+<license rdf:resource="http://creativecommons.org/licenses/by/2.0/" />
+</Work>
+<License rdf:about="http://creativecommons.org/licenses/by/2.0/">
+<permits rdf:resource="http://web.resource.org/cc/Reproduction" />
+<permits rdf:resource="http://web.resource.org/cc/Distribution" />
+<requires rdf:resource="http://web.resource.org/cc/Notice" />
+<requires rdf:resource="http://web.resource.org/cc/Attribution" />
+<permits rdf:resource="http://web.resource.org/cc/DerivativeWorks" />
+</License>
+</rdf:RDF>
+-->
+<b>Webmaster:</b> <a href="http://www.shlomifish.org/">Shlomi Fish</a> (<a href="mailto:shlomif@shlomifish.org">Email - shlomif@shlomifish.org</a>)<br />
+<b>Original Design:</b> <a href="http://www.oswd.org/design/preview/id/2933">GoFlexiblePro</a>
+| Author: <a href="mailto:gw@actamail.com">G. Wolfgang</a>
+| <a href="http://validator.w3.org/check?uri=referer" title="Validate code as W3C XHTML 1.1 Strict Compliant">W3C XHTML 5</a>
+| <a href="http://jigsaw.w3.org/css-validator/" title="Validate Style Sheet as W3C CSS 3.0 Compliant">W3C CSS 3.0</a>
+<br />
+<b>Hosted by:</b> <a href="http://hexten.net/">Hexten.net</a>.
+<script type="text/javascript" src="js/selfl.js"></script>
+</div>
+
+</body>
+</html>

vim-begin/jekyll-prototype/htaccess.conf

+AddType application/xhtml+xml .html

vim-begin/jekyll-prototype/old/_layouts/about_page.html

+---
+layout: default
+---
+<p>
+<a href="http://www.vim.org/">The Vim Text Editor</a> is an open-source
+(and free-of-charge) text editor, which is cross-platform, powerful,
+configurable, and yet not too difficult to become productive with. It has
+been gaining popularity, many of its users profess they love it, and has
+been the subject of several clones and emulation modes.
+</p>
+
+<p>
+The Vim Beginners’ Site aims to link to (and sometimes host or mirror)
+the best online and offline resources for learning Vim.
+Due to the proliferation of various resources on the Internet, this site
+is, while open content/free content (under the Creative Commons Attribution
+Licence), centrally managed and controlled, in order to make sure it refers
+to resources that are of good quality. It aims to be for Vim what
+<a href="http://perl-begin.org/">The Perl Beginners’ Site</a> is for the
+Perl programming language.
+</p>
+
+{{ content }}
+

vim-begin/jekyll-prototype/old/_layouts/default.html

+<?xml version="1.0" encoding="utf-8"?>
+<!DOCTYPE html>
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-GB" lang="en-GB">
+<head>
+   <title>{{ page.title }} (Vim Beginners’ Site)</title>
+   <meta charset="UTF-8" />
+   <base href="http://vim.begin-site.org/" />
+   <meta name="author" content="Shlomi Fish" />
+   <link href="http://feeds.feedburner.com/tom-preston-werner" rel="alternate" title="Tom Preston-Werner" type="application/atom+xml" />
+
+   <!-- syntax highlighting CSS -->
+   <link rel="stylesheet" href="css/syntax.css" type="text/css" />
+
+   <!-- Homepage CSS -->
+   <link rel="stylesheet" href="css/style.css" type="text/css" media="screen, projection" />
+
+   <!-- Print CSS -->
+<link rel="stylesheet" href="css/print.css" type="text/css" media="print" />
+<script type="text/javascript" src="js/jq.js"></script>
+<script type="text/javascript" src="js/position_divs.js"></script>
+<!-- Typekit -->
+</head>
+<body>
+
+<a href="http://bitbucket.org/shlomif/vim-begin"><img src="images/fork-me-on-bitbucket.png" class="fork_me" alt="Fork me on BitBucket" /></a>
+
+<!-- HEADER -->
+<!-- Global Navigation -->
+<div id='header'>
+<!-- Sitename and Banner -->
+<div class="site-name" id="js-site-name">
+<h1><a href="">Vim Beginners' Site</a></h1>
+</div>
+<div class="site-slogan" id="js-site-slogan">
+Vim - type less ; edit more.
+</div>
+</div>
+
+<div id="page-container">
+
+<div class="nav-main">
+<h3 class="hide">Breadcrumbs Trail</h3>
+<p class="breadcrumbs">
+<a href="">Vim Beginner’s Site</a>
+→
+<a class="extra" href="">Home</a>
+</p>
+
+<h3 class="hide">Global Navigation</h3>
+
+<ul class="about-links">
+
+<li><a href="about.html">About Us</a></li>
+
+<li><a href="contact/">Contact</a></li>
+
+</ul>
+
+</div>
+
+<h3 class="hide">Main Navigation</h3>
+<div id="left-sidebar">
+
+<a href=""><img class="logo" src="images/vim-begin.png"
+    alt="Vim Begin Logo" /></a>
+
+<div id="main_nav_menu">
+<ul class="navbarmain">
+<li>
+<a href="">Home</a>
+</li>
+<li>
+<a href="about.html">About</a>
+</li>
+<li>
+<a href="news/" title="Previous News Item">News</a>
+</li>
+<li>
+<a href="screenshots/" title="Screenshots of Vim in Action">Screenshots</a>
+</li>
+<li>
+<a href="links/" title="External Links to Other Resources">Links</a>
+</li>
+<li>
+<a href="humour/" title="Vim Humour and Links to Vim Humour resources">Vim Humour</a>
+</li>
+</ul>
+<h2>
+<a href="learn/" title="Why and how to learn Vim?">Learn Vim Now</a>
+</h2>
+<h2>
+<a href="resources/" title="Links to Online and Offline Resources for Learning Vim">Resources</a>
+</h2>
+<ul class="navbarnested">
+<li>
+<a href="tutorials/">Online Tutorials</a>
+</li>
+<li>
+<a href="books/">Books</a>
+</li>
+<li>
+<a href="core-doc/">Core Docs</a>
+</li>
+<li>
+<a href="articles/">Article Collections</a>
+</li>
+<li>
+<a href="training/" title="Take paid courses for learning Vim">Training</a>
+</li>
+<li>
+<a href="FAQs/" title="Lists of Frequently Asked Questions with Answers">FAQs</a>
+</li>
+<li>
+<a href="exercises/" title="Links to Exercises and Challenges for Practice">Exercises and Challenges</a>
+</li>
+<li>
+<a href="games/" title="Games you can play in order to learn Vim">Games</a>
+</li>
+</ul>
+<ul class="navbarmain">
+<li>
+<a href="mailing-lists/" title="Ask questions and receive answers about Vim by E-mail">Mailing Lists</a>
+</li>
+<li>
+<a href="web-forums/" title="Ask questions and receive answers by using a web-browser">Web Forums</a>
+</li>
+<li>
+<a href="irc/" title="Chat online about Vim using the Internet Relay Chat (IRC)">IRC Channels</a>
+</li>
+</ul>
+<ul class="navbarmain">
+<li>
+<a href="reference-resources/" title="Resources for reference about Vim and looking up information.">Reference Resources</a>
+</li>
+<li>
+<a href="wikis/" title="Publicly editable sites with Lots of Useful Information">Wikis</a>
+</li>
+<li>
+<a href="blogs/" title="Links to some Vim-related Blogs (a.k.a &quot;Weblogs&quot; or online journals)">Blogs</a>
+</li>
+</ul>
+<h2>
+<a href="platforms/">Platforms</a>
+</h2>
+<h2>
+<a href="contribute/" title="Contribute new content or corrections to this site">Contribute</a>
+</h2>
+<ul class="navbarmain">
+<li>
+<a href="contribute/list/">Contributors List</a>
+</li>
+<li>
+<a href="source/">Site’s Source Code</a>
+</li>
+</ul>
+
+</div>
+
+
+</div>
+
+<h3 class="hide">Content</h3>
+<div id="content">
+
+<h1>{{ page.title }}</h1>
+
+{{ content }}
+
+<p class="share_this">
+<a href="http://www.addtoany.com/share_save"><img src="http://static.addtoany.com/buttons/share_save_171_16.png" width="171" height="16" class="bless" alt="Share/Bookmark" /></a>
+</p>
+
+</div>
+
+<h3 class="hide">Sidebar</h3>
+<div id="right-sidebar">
+<div class="testimonials">
+<h2>Testimonials</h2>
+<b>TODO : Add more</b>
+<p>
+<a href="learn/who-is-using/">More…</a>
+</p>
+</div>
+<div class="news-box">
+<h2><a href="news/">News</a></h2>
+<ul>
+<li>
+<a href="news/">More news…</a>
+</li>
+</ul>
+</div>
+</div>
+</div>
+
+
+<!-- FOOTER -->
+<h3 class="hide">Footer</h3>
+<div id="footer">
+<!-- Creative Commons License -->
+Unless noted otherwise, the Vim Beginners’s Site is <b>licensed</b> under
+the <a rel="license"
+href="http://creativecommons.org/licenses/by/3.0/">Creative Commons
+Attribution 3.0 Unported License</a> (or at your option any later
+version).<br />
+<!-- /Creative Commons License -->
+<!--
+<rdf:RDF xmlns="http://web.resource.org/cc/"
+xmlns:dc="http://purl.org/dc/elements/1.1/"
+xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
+<Work rdf:about="">
+<dc:title>Better SCM Site Contents</dc:title>
+<dc:date>2004</dc:date>
+<dc:description>A Version Control Systems Information and Advocacy carrying site</dc:description>
+<dc:creator><Agent>
+  <dc:title>Shlomi Fish</dc:title>
+</Agent></dc:creator>
+<dc:rights><Agent>
+  <dc:title>Shlomi Fish</dc:title>
+</Agent></dc:rights>
+<dc:type rdf:resource="http://purl.org/dc/dcmitype/Text" />
+<license rdf:resource="http://creativecommons.org/licenses/by/2.0/" />
+</Work>
+<License rdf:about="http://creativecommons.org/licenses/by/2.0/">
+<permits rdf:resource="http://web.resource.org/cc/Reproduction" />
+<permits rdf:resource="http://web.resource.org/cc/Distribution" />
+<requires rdf:resource="http://web.resource.org/cc/Notice" />
+<requires rdf:resource="http://web.resource.org/cc/Attribution" />
+<permits rdf:resource="http://web.resource.org/cc/DerivativeWorks" />
+</License>
+</rdf:RDF>
+-->
+<b>Webmaster:</b> <a href="http://www.shlomifish.org/">Shlomi Fish</a> (<a href="mailto:shlomif@shlomifish.org">Email - shlomif@shlomifish.org</a>)<br />
+<b>Original Design:</b> <a href="http://www.oswd.org/design/preview/id/2933">GoFlexiblePro</a>
+| Author: <a href="mailto:gw@actamail.com">G. Wolfgang</a>
+| <a href="http://validator.w3.org/check?uri=referer" title="Validate code as W3C XHTML 1.1 Strict Compliant">W3C XHTML 5</a>
+| <a href="http://jigsaw.w3.org/css-validator/" title="Validate Style Sheet as W3C CSS 3.0 Compliant">W3C CSS 3.0</a>
+<br />
+<b>Hosted by:</b> <a href="http://hexten.net/">Hexten.net</a>.
+<script type="text/javascript" src="js/selfl.js"></script>
+</div>
+
+</body>
+</html>

vim-begin/jekyll-prototype/old/_layouts/post.html

+---
+layout: default
+---
+<div id="post">
+{{ content }}
+</div>
+
+<div id="related">
+  <h2>Related Posts</h2>
+  <ul class="posts">
+    {% for post in site.related_posts limit:3 %}
+      <li><span>{{ post.date | date_to_string }}</span> &raquo; <a href="{{ post.url }}">{{ post.title }}</a></li>
+    {% endfor %}
+  </ul>
+</div>

vim-begin/jekyll-prototype/process.pl

+#!/usr/bin/perl
+
+use strict;
+use warnings;
+
+use Template;
+use File::Find::Object;
+
+use File::Path qw( mkpath );
+use File::Spec;
+use File::Copy qw( copy );
+
+my $template = Template->new(
+    {
+        INCLUDE_PATH => ".",
+        POST_CHOMP => 1,
+        RELATIVE => 1,
+        ENCODING => 'utf8',
+    }
+);
+
+my $vars = {};
+
+my $tree = File::Find::Object->new({}, './src');
+
+while (my $result = $tree->next_obj())
+{
+    if ($result->is_dir())
+    {
+        if ($result->path() eq './dest')
+        {
+            $tree->prune();
+        }
+        else
+        {
+            mkpath(File::Spec->catdir(
+                    File::Spec->curdir(), "dest", @{$result->full_components()}
+                )
+            );
+        }
+    }
+    else
+    {
+        my $basename = $result->basename;
+        if ($basename =~ s/\.html\.tt2\z/.html/)
+        {
+            $template->process($result->path(), $vars,
+                File::Spec->catfile(File::Spec->curdir(), "dest",
+                    @{$result->dir_components()}, $basename),
+                binmode => ':utf8',
+            )
+                or die $template->error();
+        }
+        elsif (
+            $basename !~ /~\z/
+            && ( !($basename =~ /\A\./ && $basename =~ /\.swp\z/) )
+            && ($basename ne 'process.pl')
+        )
+        {
+            copy($result->path,
+                File::Spec->catfile(File::Spec->curdir(), "dest",
+                    @{$result->dir_components()}, $basename),
+            );
+        }
+    }
+}

vim-begin/jekyll-prototype/src/.htaccess

-AddType application/xhtml+xml .html

vim-begin/jekyll-prototype/src/FAQs/index.html

----
-layout: default
-title: Vim Frequently Asked Questions Lists ( FAQs )
----
-
-
-<h2 id="vim_faq"><a href="https://github.com/chrisbra/vim_faq">The
-Vim FAQ</a></h2>
-
-<p>
-An up-to-date version of the Vim Frequently Asked Questions List (FAQ)
-which provides a lot of enlightenment.
-</p>

vim-begin/jekyll-prototype/src/FAQs/index.html.tt2

+[%- PROCESS "blocks.tt2" -%]
+[%- SET title = 'Vim Frequently Asked Questions Lists ( FAQs )' -%]
+[%- SET base_path = '../' -%]
+[%- PROCESS start_html -%]
+<h2 id="vim_faq"><a href="https://github.com/chrisbra/vim_faq">The
+Vim FAQ</a></h2>
+
+<p>
+An up-to-date version of the Vim Frequently Asked Questions List (FAQ)
+which provides a lot of enlightenment.
+</p>
+
+
+[% PROCESS "footer.tt2" %]

vim-begin/jekyll-prototype/src/_layouts/about_page.html

----
-layout: default
----
-<p>
-<a href="http://www.vim.org/">The Vim Text Editor</a> is an open-source
-(and free-of-charge) text editor, which is cross-platform, powerful,
-configurable, and yet not too difficult to become productive with. It has
-been gaining popularity, many of its users profess they love it, and has
-been the subject of several clones and emulation modes.
-</p>
-
-<p>
-The Vim Beginners’ Site aims to link to (and sometimes host or mirror)
-the best online and offline resources for learning Vim.
-Due to the proliferation of various resources on the Internet, this site
-is, while open content/free content (under the Creative Commons Attribution
-Licence), centrally managed and controlled, in order to make sure it refers
-to resources that are of good quality. It aims to be for Vim what
-<a href="http://perl-begin.org/">The Perl Beginners’ Site</a> is for the
-Perl programming language.
-</p>
-
-{{ content }}
-

vim-begin/jekyll-prototype/src/_layouts/default.html

-<?xml version="1.0" encoding="utf-8"?>
-<!DOCTYPE html>
-<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-GB" lang="en-GB">
-<head>
-   <title>{{ page.title }} (Vim Beginners’ Site)</title>
-   <meta charset="UTF-8" />
-   <base href="http://vim.begin-site.org/" />
-   <meta name="author" content="Shlomi Fish" />
-   <link href="http://feeds.feedburner.com/tom-preston-werner" rel="alternate" title="Tom Preston-Werner" type="application/atom+xml" />
-
-   <!-- syntax highlighting CSS -->
-   <link rel="stylesheet" href="css/syntax.css" type="text/css" />
-
-   <!-- Homepage CSS -->
-   <link rel="stylesheet" href="css/style.css" type="text/css" media="screen, projection" />
-
-   <!-- Print CSS -->
-<link rel="stylesheet" href="css/print.css" type="text/css" media="print" />
-<script type="text/javascript" src="js/jq.js"></script>
-<script type="text/javascript" src="js/position_divs.js"></script>
-<!-- Typekit -->
-</head>
-<body>
-
-<a href="http://bitbucket.org/shlomif/vim-begin"><img src="images/fork-me-on-bitbucket.png" class="fork_me" alt="Fork me on BitBucket" /></a>
-
-<!-- HEADER -->
-<!-- Global Navigation -->
-<div id='header'>
-<!-- Sitename and Banner -->
-<div class="site-name" id="js-site-name">
-<h1><a href="">Vim Beginners' Site</a></h1>
-</div>
-<div class="site-slogan" id="js-site-slogan">
-Vim - type less ; edit more.
-</div>
-</div>
-
-<div id="page-container">
-
-<div class="nav-main">
-<h3 class="hide">Breadcrumbs Trail</h3>
-<p class="breadcrumbs">
-<a href="">Vim Beginner’s Site</a>
-→
-<a class="extra" href="">Home</a>
-</p>
-
-<h3 class="hide">Global Navigation</h3>
-
-<ul class="about-links">
-
-<li><a href="about.html">About Us</a></li>
-
-<li><a href="contact/">Contact</a></li>
-
-</ul>
-
-</div>
-
-<h3 class="hide">Main Navigation</h3>
-<div id="left-sidebar">
-
-<a href=""><img class="logo" src="images/vim-begin.png"
-    alt="Vim Begin Logo" /></a>
-
-<div id="main_nav_menu">
-<ul class="navbarmain">
-<li>
-<a href="">Home</a>
-</li>
-<li>
-<a href="about.html">About</a>
-</li>
-<li>
-<a href="news/" title="Previous News Item">News</a>
-</li>
-<li>
-<a href="screenshots/" title="Screenshots of Vim in Action">Screenshots</a>
-</li>
-<li>
-<a href="links/" title="External Links to Other Resources">Links</a>
-</li>
-<li>
-<a href="humour/" title="Vim Humour and Links to Vim Humour resources">Vim Humour</a>
-</li>
-</ul>
-<h2>
-<a href="learn/" title="Why and how to learn Vim?">Learn Vim Now</a>
-</h2>
-<h2>
-<a href="resources/" title="Links to Online and Offline Resources for Learning Vim">Resources</a>
-</h2>
-<ul class="navbarnested">
-<li>
-<a href="tutorials/">Online Tutorials</a>
-</li>
-<li>
-<a href="books/">Books</a>
-</li>
-<li>
-<a href="core-doc/">Core Docs</a>
-</li>
-<li>
-<a href="articles/">Article Collections</a>
-</li>
-<li>
-<a href="training/" title="Take paid courses for learning Vim">Training</a>
-</li>
-<li>
-<a href="FAQs/" title="Lists of Frequently Asked Questions with Answers">FAQs</a>
-</li>
-<li>
-<a href="exercises/" title="Links to Exercises and Challenges for Practice">Exercises and Challenges</a>
-</li>
-<li>
-<a href="games/" title="Games you can play in order to learn Vim">Games</a>
-</li>
-</ul>
-<ul class="navbarmain">
-<li>
-<a href="mailing-lists/" title="Ask questions and receive answers about Vim by E-mail">Mailing Lists</a>
-</li>
-<li>
-<a href="web-forums/" title="Ask questions and receive answers by using a web-browser">Web Forums</a>
-</li>
-<li>
-<a href="irc/" title="Chat online about Vim using the Internet Relay Chat (IRC)">IRC Channels</a>
-</li>
-</ul>
-<ul class="navbarmain">
-<li>
-<a href="reference-resources/" title="Resources for reference about Vim and looking up information.">Reference Resources</a>
-</li>
-<li>
-<a href="wikis/" title="Publicly editable sites with Lots of Useful Information">Wikis</a>
-</li>
-<li>
-<a href="blogs/" title="Links to some Vim-related Blogs (a.k.a &quot;Weblogs&quot; or online journals)">Blogs</a>
-</li>
-</ul>
-<h2>
-<a href="platforms/">Platforms</a>
-</h2>
-<h2>
-<a href="contribute/" title="Contribute new content or corrections to this site">Contribute</a>
-</h2>
-<ul class="navbarmain">
-<li>
-<a href="contribute/list/">Contributors List</a>
-</li>
-<li>
-<a href="source/">Site’s Source Code</a>
-</li>
-</ul>
-
-</div>
-
-
-</div>
-
-<h3 class="hide">Content</h3>
-<div id="content">
-
-<h1>{{ page.title }}</h1>
-
-{{ content }}
-
-<p class="share_this">
-<a href="http://www.addtoany.com/share_save"><img src="http://static.addtoany.com/buttons/share_save_171_16.png" width="171" height="16" class="bless" alt="Share/Bookmark" /></a>
-</p>
-
-</div>
-
-<h3 class="hide">Sidebar</h3>
-<div id="right-sidebar">
-<div class="testimonials">
-<h2>Testimonials</h2>
-<b>TODO : Add more</b>
-<p>
-<a href="learn/who-is-using/">More…</a>
-</p>
-</div>
-<div class="news-box">
-<h2><a href="news/">News</a></h2>
-<ul>
-<li>
-<a href="news/">More news…</a>
-</li>
-</ul>
-</div>
-</div>
-</div>
-
-
-<!-- FOOTER -->
-<h3 class="hide">Footer</h3>
-<div id="footer">
-<!-- Creative Commons License -->
-Unless noted otherwise, the Vim Beginners’s Site is <b>licensed</b> under
-the <a rel="license"
-href="http://creativecommons.org/licenses/by/3.0/">Creative Commons
-Attribution 3.0 Unported License</a> (or at your option any later
-version).<br />
-<!-- /Creative Commons License -->
-<!--
-<rdf:RDF xmlns="http://web.resource.org/cc/"
-xmlns:dc="http://purl.org/dc/elements/1.1/"
-xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
-<Work rdf:about="">
-<dc:title>Better SCM Site Contents</dc:title>
-<dc:date>2004</dc:date>
-<dc:description>A Version Control Systems Information and Advocacy carrying site</dc:description>
-<dc:creator><Agent>
-  <dc:title>Shlomi Fish</dc:title>
-</Agent></dc:creator>
-<dc:rights><Agent>
-  <dc:title>Shlomi Fish</dc:title>
-</Agent></dc:rights>
-<dc:type rdf:resource="http://purl.org/dc/dcmitype/Text" />
-<license rdf:resource="http://creativecommons.org/licenses/by/2.0/" />
-</Work>
-<License rdf:about="http://creativecommons.org/licenses/by/2.0/">
-<permits rdf:resource="http://web.resource.org/cc/Reproduction" />
-<permits rdf:resource="http://web.resource.org/cc/Distribution" />
-<requires rdf:resource="http://web.resource.org/cc/Notice" />
-<requires rdf:resource="http://web.resource.org/cc/Attribution" />
-<permits rdf:resource="http://web.resource.org/cc/DerivativeWorks" />
-</License>
-</rdf:RDF>
--->
-<b>Webmaster:</b> <a href="http://www.shlomifish.org/">Shlomi Fish</a> (<a href="mailto:shlomif@shlomifish.org">Email - shlomif@shlomifish.org</a>)<br />
-<b>Original Design:</b> <a href="http://www.oswd.org/design/preview/id/2933">GoFlexiblePro</a>
-| Author: <a href="mailto:gw@actamail.com">G. Wolfgang</a>
-| <a href="http://validator.w3.org/check?uri=referer" title="Validate code as W3C XHTML 1.1 Strict Compliant">W3C XHTML 5</a>
-| <a href="http://jigsaw.w3.org/css-validator/" title="Validate Style Sheet as W3C CSS 3.0 Compliant">W3C CSS 3.0</a>
-<br />
-<b>Hosted by:</b> <a href="http://hexten.net/">Hexten.net</a>.
-<script type="text/javascript" src="js/selfl.js"></script>
-</div>
-
-</body>
-</html>

vim-begin/jekyll-prototype/src/_layouts/post.html

----
-layout: default
----
-<div id="post">
-{{ content }}
-</div>
-
-<div id="related">
-  <h2>Related Posts</h2>
-  <ul class="posts">
-    {% for post in site.related_posts limit:3 %}
-      <li><span>{{ post.date | date_to_string }}</span> &raquo; <a href="{{ post.url }}">{{ post.title }}</a></li>
-    {% endfor %}
-  </ul>
-</div>

vim-begin/jekyll-prototype/src/about.html

----
-layout: about_page
-title: About the Vim Beginners’ Site
----

vim-begin/jekyll-prototype/src/about.html.tt2

+[%- PROCESS "blocks.tt2" -%]
+[%- SET title = 'The Vim Beginners’ Site' -%]
+[%- SET base_path = '' -%]
+[%- PROCESS start_html -%]
+
+<p>
+<a href="http://www.vim.org/">The Vim Text Editor</a> is an open-source
+(and free-of-charge) text editor, which is cross-platform, powerful,
+configurable, and yet not too difficult to become productive with. It has
+been gaining popularity, many of its users profess they love it, and has
+been the subject of several clones and emulation modes.
+</p>
+
+<p>
+The Vim Beginners’ Site aims to link to (and sometimes host or mirror)
+the best online and offline resources for learning Vim.
+Due to the proliferation of various resources on the Internet, this site
+is, while open content/free content (under the Creative Commons Attribution
+Licence), centrally managed and controlled, in order to make sure it refers
+to resources that are of good quality. It aims to be for Vim what
+<a href="http://perl-begin.org/">The Perl Beginners’ Site</a> is for the
+Perl programming language.
+</p>
+
+[% PROCESS "footer.tt2" %]

vim-begin/jekyll-prototype/src/articles/index.html

----
-layout: default
-title: Collections of Articles
----
-
-
-<h2 id="seven_habits"><a href="http://www.moolenaar.net/habits.html">“Seven habits of effective text editing”</a></h2>
-
-<p>
-By Bram Moolenaar, the creator of Vim.
-</p>
-
-<div class="sub_section">
-<h3><a href="http://www.youtube.com/watch?v=eX9m3g5J-XA">Google Tech Talk by Bram</a></h3>
-</div>

vim-begin/jekyll-prototype/src/articles/index.html.tt2

+[%- PROCESS "blocks.tt2" -%]
+[%- SET title = 'Collections of Articles' -%]
+[%- SET base_path = '../' -%]
+[%- PROCESS start_html -%]
+<h2 id="seven_habits"><a href="http://www.moolenaar.net/habits.html">“Seven habits of effective text editing”</a></h2>
+
+<p>
+By Bram Moolenaar, the creator of Vim.
+</p>
+
+<div class="sub_section">
+<h3><a href="http://www.youtube.com/watch?v=eX9m3g5J-XA">Google Tech Talk by Bram</a></h3>
+</div>
+
+
+[% PROCESS "footer.tt2" %]

vim-begin/jekyll-prototype/src/blogs/index.html

----
-layout: default
-title: Vim Blogs
----
-
-
-<h2 id="daily_vim"><a href="http://dailyvim.blogspot.com/">Daily Vim</a></h2>
-
-<p>
-“Text Editor Tips, Tricks, Tutorials and HOWTOs”.
-</p>
-
-<h2 id="vimcasts"><a href="http://vimcasts.org/">Vimcasts</a></h2>
-
-<p>
-Free screencasts about the Vim text editor.
-</p>
-
-<h2 id="of_vim_and_vigor"><a href="http://of-vim-and-vigor.blogspot.com/">Of Vim and Vigor</a></h2>
-
-<p>
-A tech blog mostly about Vim.
-</p>
-
-<h2 id="shlomif_vim_tips">Vim Tips Column in Shlomi Fish’s Weblog</h2>
-
-<p>
-On <a href="http://shlomif-tech.livejournal.com/tag/vim">his tech weblog</a>
-and an older one on his <a href="http://shlomif.livejournal.com/tag/vim">main
-blog</a>.
-</p>
-
-<h2>Microblogs (Twitter, Identi.ca, etc.)</h2>
-
-<h3><a href="http://twitter.com/be_vimmer_en">be_vimmer_en</a></h3>
-
-<p>
-<q>Tweets Vim commands every 3 hours. Let's be a good Vimmer!</q>
-</p>

vim-begin/jekyll-prototype/src/blogs/index.html.tt2

+[%- PROCESS "blocks.tt2" -%]
+[%- SET title = 'Vim Blogs' -%]
+[%- SET base_path = '../' -%]
+[%- PROCESS start_html -%]
+<h2 id="daily_vim"><a href="http://dailyvim.blogspot.com/">Daily Vim</a></h2>
+
+<p>
+“Text Editor Tips, Tricks, Tutorials and HOWTOs”.
+</p>
+
+<h2 id="vimcasts"><a href="http://vimcasts.org/">Vimcasts</a></h2>
+
+<p>
+Free screencasts about the Vim text editor.
+</p>
+
+<h2 id="of_vim_and_vigor"><a href="http://of-vim-and-vigor.blogspot.com/">Of Vim and Vigor</a></h2>
+
+<p>
+A tech blog mostly about Vim.
+</p>
+
+<h2 id="shlomif_vim_tips">Vim Tips Column in Shlomi Fish’s Weblog</h2>
+
+<p>
+On <a href="http://shlomif-tech.livejournal.com/tag/vim">his tech weblog</a>
+and an older one on his <a href="http://shlomif.livejournal.com/tag/vim">main
+blog</a>.
+</p>
+
+<h2>Microblogs (Twitter, Identi.ca, etc.)</h2>
+
+<h3><a href="http://twitter.com/be_vimmer_en">be_vimmer_en</a></h3>
+
+<p>
+<q>Tweets Vim commands every 3 hours. Let's be a good Vimmer!</q>
+</p>
+
+
+[% PROCESS "footer.tt2" %]

vim-begin/jekyll-prototype/src/books/index.html

----
-layout: default
-title: Recommended Books for Learning Vim
----
-
-<div id="home">
-
-
-<h2 id="byte_of_vim"><a href="http://www.swaroopch.com/notes/vim/">A Byte of Vim</a></h2>
-
-<p>
-An open content book (under the Creative Commons Attribution-Share Alike
-3.0 licence) that can get you up and running. Available as online
-HTML and as a PDF.
-</p>
-
-<h2 id="the_vim_book"><a href="ftp://ftp.vim.org/pub/vim/doc/book/vimbook-OPL.pdf"><i>The Vim Book</i></a></h2>
-
-<p>
-The first book about Vim by Steve Oualline, available as a PDF (HTML version
-no longer available). Covers Vim 5.
-</p>
-
-<h2 id="learn_vimscript_the_hard_way"><a href="http://learnvimscriptthehardway.stevelosh.com/"><i>Learn Vimscript the Hard Way</i></a></h2>
-
-<p>
-Not really exclusively about Vimscript, <i>Learn Vimscript the Hard Way</i>
-is a book about customising Vim, primarily useful for people who are already
-quite comfortable with it. Available online with sources, under a restrictive
-(“All Rights Reserved”) licence.
-</p>
-
-<h2 id="oreilly_vi_vim"><a href="http://shop.oreilly.com/product/9780596529833.do">O’Reilly’s <i>Learning the vi and Vim Editors</i></a></h2>
-
-<p>
-A non-gratis book from O’Reilly and Associates (available as a paid Ebook
-download in several popular formats, or as a paper book) that covers both
-vi, with a focus on Vim.
-</p>
-
-</div>

vim-begin/jekyll-prototype/src/books/index.html.tt2

+[%- PROCESS "blocks.tt2" -%]
+[%- SET title = 'Recommended Books for Learning Vim' -%]
+[%- SET base_path = '../' -%]
+[%- PROCESS start_html -%]
+<div id="home">
+
+
+<h2 id="byte_of_vim"><a href="http://www.swaroopch.com/notes/vim/">A Byte of Vim</a></h2>
+
+<p>
+An open content book (under the Creative Commons Attribution-Share Alike
+3.0 licence) that can get you up and running. Available as online
+HTML and as a PDF.
+</p>
+
+<h2 id="the_vim_book"><a href="ftp://ftp.vim.org/pub/vim/doc/book/vimbook-OPL.pdf"><i>The Vim Book</i></a></h2>
+
+<p>
+The first book about Vim by Steve Oualline, available as a PDF (HTML version
+no longer available). Covers Vim 5.
+</p>
+
+<h2 id="learn_vimscript_the_hard_way"><a href="http://learnvimscriptthehardway.stevelosh.com/"><i>Learn Vimscript the Hard Way</i></a></h2>
+
+<p>
+Not really exclusively about Vimscript, <i>Learn Vimscript the Hard Way</i>
+is a book about customising Vim, primarily useful for people who are already
+quite comfortable with it. Available online with sources, under a restrictive
+(“All Rights Reserved”) licence.
+</p>
+
+<h2 id="oreilly_vi_vim"><a href="http://shop.oreilly.com/product/9780596529833.do">O’Reilly’s <i>Learning the vi and Vim Editors</i></a></h2>
+
+<p>
+A non-gratis book from O’Reilly and Associates (available as a paid Ebook
+download in several popular formats, or as a paper book) that covers both
+vi, with a focus on Vim.
+</p>
+
+</div>
+
+
+[% PROCESS "footer.tt2" %]

vim-begin/jekyll-prototype/src/contact/index.html

----
-layout: default
-title: Contact Us
----
-
-<p>
-The chief webmaster of this site is
-<a href="http://www.shlomifish.org/">Shlomi Fish</a> and his
-<a href="http://www.shlomifish.org/me/contact-me/"><b>contact information</b>
-can be found on his home site</a>.
-</p>
-
-<p>
-Furthermore, the site has <a href="contribute">information for contributors</a>
-including an issue tracker (a.k.a “bug tracker”).
-</p>

vim-begin/jekyll-prototype/src/contact/index.html.tt2

+[%- PROCESS "blocks.tt2" -%]
+[%- SET title = 'Contact Us' -%]
+[%- SET base_path = '../' -%]
+[%- PROCESS start_html -%]
+<p>
+The chief webmaster of this site is
+<a href="http://www.shlomifish.org/">Shlomi Fish</a> and his
+<a href="http://www.shlomifish.org/me/contact-me/"><b>contact information</b>
+can be found on his home site</a>.
+</p>
+
+<p>
+Furthermore, the site has <a href="contribute">information for contributors</a>
+including an issue tracker (a.k.a “bug tracker”).
+</p>
+
+
+[% PROCESS "footer.tt2" %]

vim-begin/jekyll-prototype/src/contribute/index.html

----
-layout: default
-title: Contribute to Vim-Begin
----
-
-<p>
-You can contribute to Vim-Begin by:
-</p>
-
-<ol>
-
-<li>
-<p>
-Filing bugs or feature requests (suggestions) on its
-<a href="https://bitbucket.org/shlomif/vim-begin/issues?status=new&amp;status=open">issue tracker</a>.
-</p>
-</li>
-
-<li>
-<p>
-Translating its content to other languages.
-</p>
-</li>
-
-<li>
-<p>
-Cloning the repository’s <a href="source/">source</a> and sending pull
-requests (or less preferably patches).
-</p>
-</li>
-</ol>

vim-begin/jekyll-prototype/src/contribute/index.html.tt2

+[%- PROCESS "blocks.tt2" -%]
+[%- SET title = 'Contribute to Vim-Begin' -%]
+[%- SET base_path = '../' -%]
+[%- PROCESS start_html -%]
+<p>
+You can contribute to Vim-Begin by:
+</p>
+
+<ol>
+
+<li>
+<p>
+Filing bugs or feature requests (suggestions) on its
+<a href="https://bitbucket.org/shlomif/vim-begin/issues?status=new&amp;status=open">issue tracker</a>.
+</p>
+</li>
+
+<li>
+<p>
+Translating its content to other languages.
+</p>
+</li>
+
+<li>
+<p>
+Cloning the repository’s <a href="source/">source</a> and sending pull
+requests (or less preferably patches).
+</p>
+</li>
+</ol>
+
+
+[% PROCESS "footer.tt2" %]

vim-begin/jekyll-prototype/src/contribute/list/index.html

----
-layout: default
-title: Contributors’ List
----
-
-<ul>
-
-<li>
-<p>
-<a href="http://www.shlomifish.org/">Shlomi Fish</a> - created Vim-Begin
-based on the earlier <a href="http://perl-begin.org/">Perl Beginners’
-Site</a> and is the primary maintainer.
-</p>
-</li>
-
-<li>
-<p>
-<b>bairui</b> from <a href="irc://irc.freenode.net/#vim">#vim</a>:
-giving some comments, suggestions, and encouragements.
-</p>
-</li>
-
-<li>
-<p>
-<b>romainl</b> from <a href="irc://irc.freenode.net/#vim">#vim</a>:
-giving some comments, suggestions, and encouragements, and providing some
-MacVim screenshots for <a href="screenshots/">the screenshots page</a>.
-</p>
-</li>
-
-<li>
-<p>
-<a href="http://en.wikipedia.org/wiki/File:Vimlogo.svg">Wikipedia’s SVG
-Vim Logo</a> - was used for the creation of the
-<a href="http://bitbucket.org/shlomif/vim-begin/src/f449338833c637411215bba37422373dfe25631d/vim-begin/vim-begin-logo?at=default">Vim-Begin Logo</a>. Under
-the GNU General Public Licence version 2-or-later.
-</p>
-</li>
-
-</ul>

vim-begin/jekyll-prototype/src/contribute/list/index.html.tt2

+[%- PROCESS "blocks.tt2" -%]
+[%- SET title = 'Contributors’ List' -%]
+[%- SET base_path = '../../' -%]
+[%- PROCESS start_html -%]
+<ul>
+
+<li>
+<p>
+<a href="http://www.shlomifish.org/">Shlomi Fish</a> - created Vim-Begin
+based on the earlier <a href="http://perl-begin.org/">Perl Beginners’
+Site</a> and is the primary maintainer.
+</p>
+</li>
+
+<li>
+<p>
+<b>bairui</b> from <a href="irc://irc.freenode.net/#vim">#vim</a>:
+giving some comments, suggestions, and encouragements.
+</p>
+</li>
+
+<li>
+<p>
+<b>romainl</b> from <a href="irc://irc.freenode.net/#vim">#vim</a>:
+giving some comments, suggestions, and encouragements, and providing some
+MacVim screenshots for <a href="screenshots/">the screenshots page</a>.
+</p>
+</li>
+
+<li>
+<p>
+<a href="http://en.wikipedia.org/wiki/File:Vimlogo.svg">Wikipedia’s SVG
+Vim Logo</a> - was used for the creation of the
+<a href="http://bitbucket.org/shlomif/vim-begin/src/f449338833c637411215bba37422373dfe25631d/vim-begin/vim-begin-logo?at=default">Vim-Begin Logo</a>. Under
+the GNU General Public Licence version 2-or-later.
+</p>
+</li>
+
+</ul>
+
+
+[% PROCESS "footer.tt2" %]

vim-begin/jekyll-prototype/src/core-doc/index.html

----
-layout: default
-title: Core Documentation
----
-
-
-<h2 id="core_doc"><a href="http://vimdoc.sourceforge.net/">Vim Core Documentation</a></h2>
-
-<p>
-The Vim core documentation can be read online or using Vim by typing
-<kbd>:help</kbd> and later on <kbd>Ctrl+]</kbd> to access
-a hyperlink and <kbd>Ctrl+T</kbd> to return to the position before the last
-link.
-</p>

vim-begin/jekyll-prototype/src/core-doc/index.html.tt2

+[%- PROCESS "blocks.tt2" -%]
+[%- SET title = 'Core Documentation' -%]
+[%- SET base_path = '../' -%]
+[%- PROCESS start_html -%]
+<h2 id="core_doc"><a href="http://vimdoc.sourceforge.net/">Vim Core Documentation</a></h2>
+
+<p>
+The Vim core documentation can be read online or using Vim by typing
+<kbd>:help</kbd> and later on <kbd>Ctrl+]</kbd> to access
+a hyperlink and <kbd>Ctrl+T</kbd> to return to the position before the last
+link.
+</p>
+
+
+[% PROCESS "footer.tt2" %]

vim-begin/jekyll-prototype/src/exercises/index.html

----
-layout: default
-title: Vim Exercises
----
-
-
-<h2 id="vim_golf">Vim Golf</h2>
-
-<p>
-In <a href="http://en.wikipedia.org/wiki/Code_golf">code golf</a>
-one has to solve a given problem using the shortest amount of code (usually
-measured in bytes). Golf can teach you many interesting and useful tricks,
-but can be incredibly addictive (you have been warned).
-</p>
-
-<p>
-Here are some site for playing Vim Golf:
-</p>
-
-<ul>
-
-<li>
-<p>
-<a href="http://vimgolf.com/">VimGolf</a> - “Real Vim ninjas count
-<b>every</b> keystroeke — do you?”
-</p>
-</li>
-
-<li>
-<p>
-<a href="http://golf.shinh.org/">Anarcy Golf</a> - a multi-language golf,
-which also supports vim.
-</p>
-</li>
-
-</ul>

vim-begin/jekyll-prototype/src/exercises/index.html.tt2

+[%- PROCESS "blocks.tt2" -%]
+[%- SET title = 'Vim Exercises' -%]
+[%- SET base_path = '../' -%]
+[%- PROCESS start_html -%]
+<h2 id="vim_golf">Vim Golf</h2>
+
+<p>
+In <a href="http://en.wikipedia.org/wiki/Code_golf">code golf</a>
+one has to solve a given problem using the shortest amount of code (usually
+measured in bytes). Golf can teach you many interesting and useful tricks,
+but can be incredibly addictive (you have been warned).
+</p>
+
+<p>
+Here are some site for playing Vim Golf:
+</p>
+
+<ul>
+
+<li>
+<p>
+<a href="http://vimgolf.com/">VimGolf</a> - “Real Vim ninjas count
+<b>every</b> keystroeke — do you?”
+</p>
+</li>
+
+<li>
+<p>
+<a href="http://golf.shinh.org/">Anarcy Golf</a> - a multi-language golf,
+which also supports vim.
+</p>
+</li>
+
+</ul>
+
+
+[% PROCESS "footer.tt2" %]

vim-begin/jekyll-prototype/src/games/index.html

----
-layout: default
-title: Games that Teach Vim
----
-
-
-<h2 id="vim_adventures"><a href="http://vim-adventures.com/">Vim
-Adventures</a></h2>
-
-<p>
-A JavaScript (so-called “HTML 5”) game that teaches Vim basics.
-Attractive graphics, and an intresting concept, but lacks a saved game
-feature, and the levels above the third require payment.
-</p>

vim-begin/jekyll-prototype/src/games/index.html.tt2

+[%- PROCESS "blocks.tt2" -%]
+[%- SET title = 'Games that Teach Vim' -%]
+[%- SET base_path = '../' -%]
+[%- PROCESS start_html -%]
+<h2 id="vim_adventures"><a href="http://vim-adventures.com/">Vim
+Adventures</a></h2>
+
+<p>
+A JavaScript (so-called “HTML 5”) game that teaches Vim basics.
+Attractive graphics, and an intresting concept, but lacks a saved game
+feature, and the levels above the third require payment.
+</p>
+
+
+[% PROCESS "footer.tt2" %]

vim-begin/jekyll-prototype/src/humour/index.html

----
-layout: default
-title: Vim Humour
----
-
-
-<h2 id="vi_humour"><a href="http://www.texteditors.org/cgi-bin/wiki.pl?ViHumor">Vi Humor</a> on the Text Editors Wiki</h2>

vim-begin/jekyll-prototype/src/humour/index.html.tt2

+[%- PROCESS "blocks.tt2" -%]
+[%- SET title = 'Vim Humour' -%]
+[%- SET base_path = '../' -%]
+[%- PROCESS start_html -%]
+<h2 id="vi_humour"><a href="http://www.texteditors.org/cgi-bin/wiki.pl?ViHumor">Vi Humor</a> on the Text Editors Wiki</h2>
+
+
+[% PROCESS "footer.tt2" %]

vim-begin/jekyll-prototype/src/index.html

----
-layout: about_page
-title: The Vim Beginners’ Site
----

vim-begin/jekyll-prototype/src/index.html.tt2

+[%- PROCESS "blocks.tt2" -%]
+[%- SET title = 'The Vim Beginners’ Site' -%]
+[%- SET base_path = '' -%]
+[%- PROCESS start_html -%]
+
+<p>
+<a href="http://www.vim.org/">The Vim Text Editor</a> is an open-source
+(and free-of-charge) text editor, which is cross-platform, powerful,
+configurable, and yet not too difficult to become productive with. It has
+been gaining popularity, many of its users profess they love it, and has
+been the subject of several clones and emulation modes.
+</p>
+
+<p>
+The Vim Beginners’ Site aims to link to (and sometimes host or mirror)
+the best online and offline resources for learning Vim.
+Due to the proliferation of various resources on the Internet, this site
+is, while open content/free content (under the Creative Commons Attribution
+Licence), centrally managed and controlled, in order to make sure it refers
+to resources that are of good quality. It aims to be for Vim what
+<a href="http://perl-begin.org/">The Perl Beginners’ Site</a> is for the
+Perl programming language.
+</p>
+
+[% PROCESS "footer.tt2" %]

vim-begin/jekyll-prototype/src/irc/index.html

----
-layout: default
-title: IRC Channels for Perl Questions and Answers
----
-
-
-<h2 id="what-is-irc">What is the IRC?</h2>
-
-<p>
-IRC stands for <b>Internet Relay Chat</b>, and it is a distributed, real-time
-form
-of communication, that was common from relatively early in the history of
-the Internet, and is still very popular. IRC servers form networks of servers
-- each network is separated from the other networks and the servers of each
-network share the same chat-rooms, user profiles and messages. Each network
-has different rules and conventions and a different culture. This allows
-chat-rooms (called channels in IRC-jargon) with the same name to exist in
-different networks.
-</p>
-
-<p>
-Some popular IRC clients include the cross-platform
-<a href="http://www.mozilla.org/projects/rt-messaging/chatzilla/">Chatzilla</a>
-(which is part of <a href="http://www.mozilla.org/">the Mozilla project</a>
-and can be installed on top of Firefox),
-the Windows-based <a href="http://www.mirc.com/">mIRC</a> (which is shareware
-and not open-source) and <a href="http://www.xchat.org/">XChat</a>, a
-cross-platform IRC client for all UNIX systems including Linux and Mac OS X,
-and with a free-of-charge
-<a href="http://www.hexchat.org/">port
-for Windows</a>. By
-downloading one, you can log in to an IRC network and start chatting.
-</p>
-
-<p>
-IRC is a great way to get answers to questions quickly and easily. Just note
-that some networks are not recommended for asking Vim questions on, due to
-the treatment of beginner question, or general unfriendliness.
-</p>
-
-<h2 id="links">Links for More Information</h2>
-
-<ul>
-
-<li>
-<a href="http://en.wikipedia.org/wiki/Internet_Relay_Chat">Wikipedia page
-on the "Internet Relay Chat"</a>
-</li>
-
-<li>
-<a href="http://www.irchelp.org/">IRC Help</a> - comprehensive helps and FAQs
-about IRC.
-</li>
-
-<li>
-<a href="http://en.wikipedia.org/wiki/List_of_IRC_clients">The Wikipedia's
-List/Comparison of IRC Clients</a>
-</li>
-
-</ul>
-
-<h2 id="freenode"><a href="http://freenode.net/">FreeNode</a></h2>
-
-<p>
-This is most probably the best network for getting help in Perl and
-technical matters in general.
-</p>
-
-<p>
-Check the channel <a href="irc://irc.freenode.net/#vim">#vim</a>.
-</p>
-
-<h2 id="oftc"><a href="http://www.oftc.net/">OFTC</a></h2>
-
-<p>
-The channel <a href="irc://irc.oftc.net/#vim">#vim</a> accepts beginner
-questions.
-</p>
-
-

vim-begin/jekyll-prototype/src/irc/index.html.tt2

+[%- PROCESS "blocks.tt2" -%]
+[%- SET title = 'IRC Channels for Perl Questions and Answers' -%]
+[%- SET base_path = '../' -%]
+[%- PROCESS start_html -%]
+<h2 id="what-is-irc">What is the IRC?</h2>
+
+<p>
+IRC stands for <b>Internet Relay Chat</b>, and it is a distributed, real-time
+form
+of communication, that was common from relatively early in the history of
+the Internet, and is still very popular. IRC servers form networks of servers
+- each network is separated from the other networks and the servers of each
+network share the same chat-rooms, user profiles and messages. Each network
+has different rules and conventions and a different culture. This allows
+chat-rooms (called channels in IRC-jargon) with the same name to exist in
+different networks.
+</p>
+
+<p>
+Some popular IRC clients include the cross-platform
+<a href="http://www.mozilla.org/projects/rt-messaging/chatzilla/">Chatzilla</a>
+(which is part of <a href="http://www.mozilla.org/">the Mozilla project</a>
+and can be installed on top of Firefox),
+the Windows-based <a href="http://www.mirc.com/">mIRC</a> (which is shareware
+and not open-source) and <a href="http://www.xchat.org/">XChat</a>, a
+cross-platform IRC client for all UNIX systems including Linux and Mac OS X,
+and with a free-of-charge
+<a href="http://www.hexchat.org/">port
+for Windows</a>. By
+downloading one, you can log in to an IRC network and start chatting.
+</p>
+
+<p>
+IRC is a great way to get answers to questions quickly and easily. Just note
+that some networks are not recommended for asking Vim questions on, due to
+the treatment of beginner question, or general unfriendliness.
+</p>
+
+<h2 id="links">Links for More Information</h2>
+
+<ul>
+
+<li>