Add baseurl to src and href attributes

pull/1/head
Max White 2015-09-07 21:27:39 +01:00
parent c1bd7fc254
commit 4c047c775d
6 changed files with 25 additions and 25 deletions

View File

@ -10,18 +10,18 @@
<meta http-equiv="content-type" content="text/html; charset=utf-8" /> <meta http-equiv="content-type" content="text/html; charset=utf-8" />
<meta name="description" content="" /> <meta name="description" content="" />
<meta name="keywords" content="" /> <meta name="keywords" content="" />
<!--[if lte IE 8]><script src="/assets/css/ie/html5shiv.js"></script><![endif]--> <!--[if lte IE 8]><script src="{{ site.baseurl }}/assets/css/ie/html5shiv.js"></script><![endif]-->
<script src="/assets/js/jquery.min.js"></script> <script src="{{ site.baseurl }}/assets/js/jquery.min.js"></script>
<script src="/assets/js/jquery.dropotron.min.js"></script> <script src="{{ site.baseurl }}/assets/js/jquery.dropotron.min.js"></script>
<script src="/assets/js/skel.min.js"></script> <script src="{{ site.baseurl }}/assets/js/skel.min.js"></script>
<script src="/assets/js/skel-layers.min.js"></script> <script src="{{ site.baseurl }}/assets/js/skel-layers.min.js"></script>
<script src="/assets/js/init.js"></script> <script src="{{ site.baseurl }}/assets/js/init.js"></script>
<noscript> <noscript>
<link rel="stylesheet" href="/assets/css/skel.css" /> <link rel="stylesheet" href="{{ site.baseurl }}/assets/css/skel.css" />
<link rel="stylesheet" href="/assets/css/style.css" /> <link rel="stylesheet" href="{{ site.baseurl }}/assets/css/style.css" />
<link rel="stylesheet" href="/assets/css/style-wide.css" /> <link rel="stylesheet" href="{{ site.baseurl }}/assets/css/style-wide.css" />
</noscript> </noscript>
<!--[if lte IE 8]><link rel="stylesheet" href="/assets/css/ie/v8.css" /><![endif]--> <!--[if lte IE 8]><link rel="stylesheet" href="{{ site.baseurl }}/assets/css/ie/v8.css" /><![endif]-->
</head> </head>
<body> <body>
@ -29,13 +29,13 @@
<div id="header"> <div id="header">
<!-- Logo --> <!-- Logo -->
<h1><a href="/index.html" id="logo">Arcana <em>by HTML5 UP</em></a></h1> <h1><a href="{{ site.baseurl }}/index.html" id="logo">Arcana <em>by HTML5 UP</em></a></h1>
<!-- Nav --> <!-- Nav -->
<nav id="nav"> <nav id="nav">
<ul> <ul>
{% assign current = page.url | downcase | split: '/' %} {% assign current = page.url | downcase | split: '/' %}
<li {% if current[1] == 'index.html' %}class="current"{% endif %}><a href="/index.html">Home</a></li> <li {% if current[1] == 'index.html' %}class="current"{% endif %}><a href="{{ site.baseurl }}/index.html">Home</a></li>
<li> <li>
<a href="">Dropdown</a> <a href="">Dropdown</a>
<ul> <ul>
@ -55,11 +55,11 @@
<li><a href="#">Veroeros feugiat</a></li> <li><a href="#">Veroeros feugiat</a></li>
</ul> </ul>
</li> </li>
<li {% if current[1] == 'blog' %}class="current"{% endif %}><a href="/blog">Blog</a></li> <li {% if current[1] == 'blog' %}class="current"{% endif %}><a href="{{ site.baseurl }}/blog">Blog</a></li>
<li {% if current[1] == 'left-sidebar.html' %}class="current"{% endif %}><a href="/left-sidebar.html">Left Sidebar</a></li> <li {% if current[1] == 'left-sidebar.html' %}class="current"{% endif %}><a href="{{ site.baseurl }}/left-sidebar.html">Left Sidebar</a></li>
<li {% if current[1] == 'right-sidebar.html' %}class="current"{% endif %}><a href="/right-sidebar.html">Right Sidebar</a></li> <li {% if current[1] == 'right-sidebar.html' %}class="current"{% endif %}><a href="{{ site.baseurl }}/right-sidebar.html">Right Sidebar</a></li>
<li {% if current[1] == 'two-sidebar.html' %}class="current"{% endif %}><a href="/two-sidebar.html">Two Sidebar</a></li> <li {% if current[1] == 'two-sidebar.html' %}class="current"{% endif %}><a href="{{ site.baseurl }}/two-sidebar.html">Two Sidebar</a></li>
<li {% if current[1] == 'no-sidebar.html' %}class="current"{% endif %}><a href="/no-sidebar.html">No Sidebar</a></li> <li {% if current[1] == 'no-sidebar.html' %}class="current"{% endif %}><a href="{{ site.baseurl }}/no-sidebar.html">No Sidebar</a></li>
</ul> </ul>
</nav> </nav>

View File

@ -56,7 +56,7 @@ layout: default
<div class="row"> <div class="row">
<section class="6u"> <section class="6u">
<div class="box post"> <div class="box post">
<a href="#" class="image left"><img src="/assets/images/pic01.jpg" alt="" /></a> <a href="#" class="image left"><img src="{{ site.baseurl }}/assets/images/pic01.jpg" alt="" /></a>
<div class="inner"> <div class="inner">
<h3>The First Thing</h3> <h3>The First Thing</h3>
<p>Duis neque nisi, dapibus sed mattis et quis, nibh. Sed et dapibus nisl amet mattis, sed a rutrum accumsan sed. Suspendisse eu.</p> <p>Duis neque nisi, dapibus sed mattis et quis, nibh. Sed et dapibus nisl amet mattis, sed a rutrum accumsan sed. Suspendisse eu.</p>
@ -65,7 +65,7 @@ layout: default
</section> </section>
<section class="6u"> <section class="6u">
<div class="box post"> <div class="box post">
<a href="#" class="image left"><img src="/assets/images/pic02.jpg" alt="" /></a> <a href="#" class="image left"><img src="{{ site.baseurl }}/assets/images/pic02.jpg" alt="" /></a>
<div class="inner"> <div class="inner">
<h3>The Second Thing</h3> <h3>The Second Thing</h3>
<p>Duis neque nisi, dapibus sed mattis et quis, nibh. Sed et dapibus nisl amet mattis, sed a rutrum accumsan sed. Suspendisse eu.</p> <p>Duis neque nisi, dapibus sed mattis et quis, nibh. Sed et dapibus nisl amet mattis, sed a rutrum accumsan sed. Suspendisse eu.</p>
@ -76,7 +76,7 @@ layout: default
<div class="row"> <div class="row">
<section class="6u"> <section class="6u">
<div class="box post"> <div class="box post">
<a href="#" class="image left"><img src="/assets/images/pic03.jpg" alt="" /></a> <a href="#" class="image left"><img src="{{ site.baseurl }}/assets/images/pic03.jpg" alt="" /></a>
<div class="inner"> <div class="inner">
<h3>The Third Thing</h3> <h3>The Third Thing</h3>
<p>Duis neque nisi, dapibus sed mattis et quis, nibh. Sed et dapibus nisl amet mattis, sed a rutrum accumsan sed. Suspendisse eu.</p> <p>Duis neque nisi, dapibus sed mattis et quis, nibh. Sed et dapibus nisl amet mattis, sed a rutrum accumsan sed. Suspendisse eu.</p>
@ -85,7 +85,7 @@ layout: default
</section> </section>
<section class="6u"> <section class="6u">
<div class="box post"> <div class="box post">
<a href="#" class="image left"><img src="/assets/images/pic04.jpg" alt="" /></a> <a href="#" class="image left"><img src="{{ site.baseurl }}/assets/images/pic04.jpg" alt="" /></a>
<div class="inner"> <div class="inner">
<h3>The Fourth Thing</h3> <h3>The Fourth Thing</h3>
<p>Duis neque nisi, dapibus sed mattis et quis, nibh. Sed et dapibus nisl amet mattis, sed a rutrum accumsan sed. Suspendisse eu.</p> <p>Duis neque nisi, dapibus sed mattis et quis, nibh. Sed et dapibus nisl amet mattis, sed a rutrum accumsan sed. Suspendisse eu.</p>

View File

@ -21,7 +21,7 @@ layout: default
<p>Sidebar on the left, content on the right.</p> <p>Sidebar on the left, content on the right.</p>
</header> </header>
<span class="image featured"><img src="/assets/images//banner.jpg" alt="" /></span> <span class="image featured"><img src="{{ site.baseurl }}/assets/images//banner.jpg" alt="" /></span>
<p>Phasellus quam turpis, feugiat sit amet ornare in, hendrerit in lectus. <p>Phasellus quam turpis, feugiat sit amet ornare in, hendrerit in lectus.
Praesent semper mod quis eget mi. Etiam eu ante risus. Aliquam erat volutpat. Praesent semper mod quis eget mi. Etiam eu ante risus. Aliquam erat volutpat.

View File

@ -16,7 +16,7 @@ layout: default
<p>All content, all the time.</p> <p>All content, all the time.</p>
</header> </header>
<span class="image featured"><img src="/assets/images/banner.jpg" alt="" /></span> <span class="image featured"><img src="{{ site.baseurl }}/assets/images/banner.jpg" alt="" /></span>
<p>Phasellus quam turpis, feugiat sit amet ornare in, hendrerit in lectus. <p>Phasellus quam turpis, feugiat sit amet ornare in, hendrerit in lectus.
Praesent semper mod quis eget mi. Etiam eu ante risus. Aliquam erat volutpat. Praesent semper mod quis eget mi. Etiam eu ante risus. Aliquam erat volutpat.

View File

@ -18,7 +18,7 @@ layout: default
<p>Sidebar on the right, content on the left.</p> <p>Sidebar on the right, content on the left.</p>
</header> </header>
<span class="image featured"><img src="/assets/images/banner.jpg" alt="" /></span> <span class="image featured"><img src="{{ site.baseurl }}/assets/images/banner.jpg" alt="" /></span>
<p>Phasellus quam turpis, feugiat sit amet ornare in, hendrerit in lectus. <p>Phasellus quam turpis, feugiat sit amet ornare in, hendrerit in lectus.
Praesent semper mod quis eget mi. Etiam eu ante risus. Aliquam erat volutpat. Praesent semper mod quis eget mi. Etiam eu ante risus. Aliquam erat volutpat.

View File

@ -25,7 +25,7 @@ layout: default
<p>Yup. Two sidebars at the same time.</p> <p>Yup. Two sidebars at the same time.</p>
</header> </header>
<span class="image featured"><img src="/assets/images/banner.jpg" alt="" /></span> <span class="image featured"><img src="{{ site.baseurl }}/assets/images/banner.jpg" alt="" /></span>
<p>Phasellus quam turpis, feugiat sit amet ornare in, hendrerit in lectus. <p>Phasellus quam turpis, feugiat sit amet ornare in, hendrerit in lectus.
Praesent semper mod quis eget mi. Etiam eu ante risus. Aliquam erat volutpat. Praesent semper mod quis eget mi. Etiam eu ante risus. Aliquam erat volutpat.