Commits

Shlomi Fish  committed 07e637f

Convert away from the <base /> tag.

  • Participants
  • Parent commits db27b78

Comments (0)

Files changed (10)

File vim-begin/jekyll-prototype/blocks.tt2

 <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" />
+   <link rel="stylesheet" href="[% base_path %]css/syntax.css" type="text/css" />
 
    <!-- Homepage CSS -->
-   <link rel="stylesheet" href="css/style.css" type="text/css" media="screen, projection" />
+   <link rel="stylesheet" href="[% base_path %]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>
+<link rel="stylesheet" href="[% base_path %]css/print.css" type="text/css" media="print" />
+<script type="text/javascript" src="[% base_path %]js/jq.js"></script>
+<script type="text/javascript" src="[% base_path %]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>
+<a href="http://bitbucket.org/shlomif/vim-begin"><img src="[% base_path %]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>
+<h1><a href="[% base_path %]">Vim Beginners' Site</a></h1>
 </div>
 <div class="site-slogan" id="js-site-slogan">
 Vim - type less ; edit more.
 <div class="nav-main">
 <h3 class="hide">Breadcrumbs Trail</h3>
 <p class="breadcrumbs">
-<a href="">Vim Beginner’s Site</a>
+<a href="[% base_path %]">Vim Beginner’s Site</a>
-<a class="extra" href="">Home</a>
+<a class="extra" href="[% base_path %]">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="[% base_path %]about.html">About Us</a></li>
 
-<li><a href="contact/">Contact</a></li>
+<li><a href="[% base_path %]contact/">Contact</a></li>
 
 </ul>
 
 <h3 class="hide">Main Navigation</h3>
 <div id="left-sidebar">
 
-<a href=""><img class="logo" src="images/vim-begin.png"
+<a href="[% base_path %]"><img class="logo" src="[% base_path %]images/vim-begin.png"
     alt="Vim Begin Logo" /></a>
 
 <div id="main_nav_menu">
 <ul class="navbarmain">
 <li>
-<a href="">Home</a>
+<a href="[% base_path %]">Home</a>
 </li>
 <li>
-<a href="about.html">About</a>
+<a href="[% base_path %]about.html">About</a>
 </li>
 <li>
-<a href="news/" title="Previous News Item">News</a>
+<a href="[% base_path %]news/" title="Previous News Item">News</a>
 </li>
 <li>
-<a href="screenshots/" title="Screenshots of Vim in Action">Screenshots</a>
+<a href="[% base_path %]screenshots/" title="Screenshots of Vim in Action">Screenshots</a>
 </li>
 <li>
-<a href="links/" title="External Links to Other Resources">Links</a>
+<a href="[% base_path %]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>
+<a href="[% base_path %]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>
+<a href="[% base_path %]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>
+<a href="[% base_path %]resources/" title="Links to Online and Offline Resources for Learning Vim">Resources</a>
 </h2>
 <ul class="navbarnested">
 <li>
-<a href="tutorials/">Online Tutorials</a>
+<a href="[% base_path %]tutorials/">Online Tutorials</a>
 </li>
 <li>
-<a href="books/">Books</a>
+<a href="[% base_path %]books/">Books</a>
 </li>
 <li>
-<a href="core-doc/">Core Docs</a>
+<a href="[% base_path %]core-doc/">Core Docs</a>
 </li>
 <li>
-<a href="articles/">Article Collections</a>
+<a href="[% base_path %]articles/">Article Collections</a>
 </li>
 <li>
-<a href="training/" title="Take paid courses for learning Vim">Training</a>
+<a href="[% base_path %]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>
+<a href="[% base_path %]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>
+<a href="[% base_path %]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>
+<a href="[% base_path %]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>
+<a href="[% base_path %]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>
+<a href="[% base_path %]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>
+<a href="[% base_path %]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>
+<a href="[% base_path %]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>
+<a href="[% base_path %]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>
+<a href="[% base_path %]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>
+<a href="[% base_path %]platforms/">Platforms</a>
 </h2>
 <h2>
-<a href="contribute/" title="Contribute new content or corrections to this site">Contribute</a>
+<a href="[% base_path %]contribute/" title="Contribute new content or corrections to this site">Contribute</a>
 </h2>
 <ul class="navbarmain">
 <li>
-<a href="contribute/list/">Contributors List</a>
+<a href="[% base_path %]contribute/list/">Contributors List</a>
 </li>
 <li>
-<a href="source/">Site’s Source Code</a>
+<a href="[% base_path %]source/">Site’s Source Code</a>
 </li>
 </ul>
 

File vim-begin/jekyll-prototype/footer.tt2

 <h2>Testimonials</h2>
 <b>TODO : Add more</b>
 <p>
-<a href="learn/who-is-using/">More…</a>
+<a href="[% base_path %]learn/who-is-using/">More…</a>
 </p>
 </div>
 <div class="news-box">
-<h2><a href="news/">News</a></h2>
+<h2><a href="[% base_path %]news/">News</a></h2>
 <ul>
 <li>
-<a href="news/">More news…</a>
+<a href="[% base_path %]news/">More news…</a>
 </li>
 </ul>
 </div>
 | <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>
+<script type="text/javascript" src="[% base_path %]js/selfl.js"></script>
 </div>
 
 </body>

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

 </p>
 
 <p>
-Furthermore, the site has <a href="contribute">information for contributors</a>
+Furthermore, the site has <a href="[% base_path %]contribute">information for contributors</a>
 including an issue tracker (a.k.a “bug tracker”).
 </p>
 

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

 
 <li>
 <p>
-Cloning the repository’s <a href="source/">source</a> and sending pull
+Cloning the repository’s <a href="[% base_path %]source/">source</a> and sending pull
 requests (or less preferably patches).
 </p>
 </li>

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

 <h2 id="how_to_learn">How to Learn Vim?</h2>
 
 <p>
-See <a href="resources/">our resources page</a> for some options.
+See <a href="[% base_path %]resources/">our resources page</a> for some options.
 </p>
 
 

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

 Currently, the pages of the site are incomplete and there are many broken
 internal links, but we hope to fix most of the low-hanging fruit in the next
 few days. That put aside, one can help us by
-<a href="contribute/">contributing</a>.
+<a href="[% base_path %]contribute/">contributing</a>.
 </p>
 
 <p>

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

 
 <p class="mswin_download_button">
 <a href="ftp://ftp.vim.org/pub/vim/pc/gvim73_46.exe">Microsoft Windows Download<img
-src="images/Windows_logo_-_2006.svg" style="width: 80px"
+src="[% base_path %]images/Windows_logo_-_2006.svg" style="width: 80px"
 alt="Microsoft Windows Logo" /></a>
 </p>
 

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

 <dl>
 
 <dt id="tutorials">
-<a href="tutorials/">Tutorials</a>
+<a href="[% base_path %]tutorials/">Tutorials</a>
 </dt>
 <dd>
 A list of recommended online tutorials for learning Vim and getting up to
 </dd>
 
 <dt id="books">
-<a href="books/">Books</a>
+<a href="[% base_path %]books/">Books</a>
 </dt>
 <dd>
 A list of online and offline (or otherwise books that require pay to
 </dd>
 
 <dt id="core_doc">
-<a href="core-doc/">Core Documentation</a>
+<a href="[% base_path %]core-doc/">Core Documentation</a>
 </dt>
 <dd>
 The core documentation of Vim.
 </dd>
 
 <dt id="article_collections">
-<a href="articles/">Article Collections</a>
+<a href="[% base_path %]articles/">Article Collections</a>
 </dt>
 <dd>
 Collections of short, in-depth articles.
 </dd>
 
 <dt id="training">
-<a href="training/">Training</a>
+<a href="[% base_path %]training/">Training</a>
 </dt>
 <dd>
 Take courses for learning Vim.
 </dd>
 
 <dt id="exercises">
-<a href="exercises/">Exercises and Challenges</a>
+<a href="[% base_path %]exercises/">Exercises and Challenges</a>
 </dt>
 <dd>
 Collections of exercises and challenges to be solved.
 </dd>
 
 <dt id="games">
-<a href="games/">Exercises and Challenges</a>
+<a href="[% base_path %]games/">Exercises and Challenges</a>
 </dt>
 <dd>
 Vim Games and Recreations.
 
 <dl>
 
-<dt id="irc"><a href="irc/">IRC (Internet Relay Chat)</a></dt>
+<dt id="irc"><a href="[% base_path %]irc/">IRC (Internet Relay Chat)</a></dt>
 
 <dd>
 Internet Relay Chat is probably the fastest way to receive answers to most
-common beginner questions. Please visit <a href="irc/">the link</a> to
+common beginner questions. Please visit <a href="[% base_path %]irc/">the link</a> to
 learn more about it, and see where it is best to ask, what to avoid doing and
 what to expect.
 </dd>
 
-<dt id="mailing-lists"><a href="mailing-lists/">Mailing Lists</a></dt>
+<dt id="mailing-lists"><a href="[% base_path %]mailing-lists/">Mailing Lists</a></dt>
 
 <dd>
 Mailing lists allow you to ask questions by E-mail and also learn from
 discussions.
 </dd>
 
-<dt id="web-forums"><a href="web-forums/">Web Forums</a></dt>
+<dt id="web-forums"><a href="[% base_path %]web-forums/">Web Forums</a></dt>
 
 <dd>
 Web forums are similar to mailing lists, but all interaction is done through
 a web-browser, and one can use
-<a href="http://en.wikipedia.org/wiki/Web_feed">web feeds</a> to monitor them.
+<a href="[% base_path %]http://en.wikipedia.org/wiki/Web_feed">web feeds</a> to monitor them.
 We have concentrated a selection of Vim-related web forums on
-<a href="web-forums/">the Web Forums page</a>.
+<a href="[% base_path %]web-forums/">the Web Forums page</a>.
 </dd>
 
 </dl>
 
 <dl>
 
-<dt id="general_reference_resources"><a href="reference-resources/">General
+<dt id="general_reference_resources"><a href="[% base_path %]reference-resources/">General
 Reference Resources</a></dt>
 
 <dd>
 core Perl 5 documentation.
 </dd>
 
-<dt id="wikis"><a href="wikis/">Wikis</a></dt>
+<dt id="wikis"><a href="[% base_path %]wikis/">Wikis</a></dt>
 
 <dd>
 Wikis are dynamically editable web-sites that allow for collaborative editing
 help write useful knowledge.
 </dd>
 
-<dt id="blogs"><a href="blogs/">Blogs</a></dt>
+<dt id="blogs"><a href="[% base_path %]blogs/">Blogs</a></dt>
 
 <dd>
 Blogs, Weblogs or Online Journals where people write about Vim.

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

 [%- SET title = 'Vim Screenshots' -%]
 [%- SET base_path = '../' -%]
 [%- PROCESS start_html -%]
-<a href="screenshots/images/gvim-perl-256.png"><img
-    src="screenshots/images/gvim-perl-256-preview.png"
+<a href="[% base_path %]screenshots/images/gvim-perl-256.png"><img
+    src="[% base_path %]screenshots/images/gvim-perl-256-preview.png"
     alt="GVim Editing some perl code preview" /></a>
 
 <p>
 Screenshot of GVim editing some Perl code with NERD-Tree and split windows.
 </p>
 
-<a href="screenshots/images/romainl-macvim1.png"><img
-    src="screenshots/images/romainl-macvim1-preview.png"
+<a href="[% base_path %]screenshots/images/romainl-macvim1.png"><img
+    src="[% base_path %]screenshots/images/romainl-macvim1-preview.png"
     alt="MacVim preview No. 1" /></a>
 
 <p>
 MacVim editing Vimscript with a vertical split
 </p>
 
-<a href="screenshots/images/romainl-macvim2.png"><img
-    src="screenshots/images/romainl-macvim2-preview.png"
+<a href="[% base_path %]screenshots/images/romainl-macvim2.png"><img
+    src="[% base_path %]screenshots/images/romainl-macvim2-preview.png"
     alt="MacVim preview No. 2" /></a>
 
 <p>

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

 <h2 id="getting_started_with_vim"><a href="http://bilalquadri.com/blog/2012/12/17/getting-started-with-vim/">Getting Started with Vim</a></h2>
 
 <p>
-A very short tutorial covering the absolute basics. (<a href="tutorials/getting-started-with-vim/">Local mirror</a>).
+A very short tutorial covering the absolute basics. (<a href="[% base_path %]tutorials/getting-started-with-vim/">Local mirror</a>).
 </p>
 
 <h2 id="core_tutorial"><a href="http://vimdoc.sourceforge.net/htmldoc/usr_toc.html">Core Vim Tutorial</a></h2>