Fix base url

This commit is contained in:
Michael Rose 2013-05-24 11:37:44 -04:00
parent fe92ba4b1c
commit 6ac94c6ab4
10 changed files with 16 additions and 17 deletions

View file

@ -6,7 +6,7 @@ url: http://mmistakes.github.io/minimal-mistakes
# Owner/author information goes here.
owner:
name: Michael Rose
avatar: "/images/bio-photo.jpg"
avatar: bio-photo.jpg
bio: "Just another boring, time traveling, tattooed, designer from Buffalo New York."
email: michael@mademistakes.com
twitter: "@mmistakes"
@ -23,7 +23,6 @@ pygments: true
markdown: kramdown
# https://github.com/mojombo/jekyll/wiki/Permalinks
permalink: /:categories/:title
maruku:
use_tex: false

View file

@ -1,3 +1,3 @@
<img src="{{ site.owner.avatar }}" class="bio-photo" alt="{{ site.owner.name }} bio photo" width="100" height="100"></a>
<img src="{{ site.url }}/images/{{ site.owner.avatar }}" class="bio-photo" alt="{{ site.owner.name }} bio photo" width="100" height="100"></a>
<h4>{{ site.owner.name }}</h4>
<p>{{ site.owner.bio }}</p>

View file

@ -24,7 +24,7 @@
<meta name="msvalidate.01" content="{{ site.bing_verify }}">
{% capture canonical %}{{ site.url }}{% if site.permalink contains '.html' %}{{ page.url }}{% else %}{{ page.url | remove:'index.html' | strip_slash }}{% endif %}{% endcapture %}
<link rel="canonical" href="{{ canonical }}">
<link href="/feed.xml" type="application/atom+xml" rel="alternate" title="{{ site.title }} Feed">
<link href="{{ site.url }}/feed.xml" type="application/atom+xml" rel="alternate" title="{{ site.title }} Feed">
<link rel="author" href="{{ site.owner.google_plus }}">
<!-- http://t.co/dKP3o1e -->
@ -35,13 +35,13 @@
<!-- Google Webfonts -->
<link href='http://fonts.googleapis.com/css?family=PT+Sans+Narrow:400,700|PT+Serif:400,700,400italic' rel='stylesheet' type='text/css'>
<!-- For all browsers -->
<link rel="stylesheet" href="/assets/css/main.css">
<link rel="stylesheet" href="{{ site.url }}/assets/css/main.css">
<!--[if (lt IE 9) & (!IEMobile)]>
<link rel="stylesheet" href="/assets/css/ie.css">
<link rel="stylesheet" href="{{ site.url }}/assets/css/ie.css">
<![endif]-->
<meta http-equiv="cleartype" content="on">
<!-- Load Modernizr -->
<script src="/assets/js/vendor/modernizr-2.6.2.custom.min.js"></script>
<script src="{{ site.url }}/assets/js/vendor/modernizr-2.6.2.custom.min.js"></script>

View file

@ -5,9 +5,9 @@
<div class="top-navigation">
<nav role="navigation">
<ul>
<li><a href="/about">About</a></li>
<li><a href="/articles">Sample Posts</a></li>
<li><a href="/theme-setup">Theme Setup</a></li>
<li><a href="{{ site.url }}/about">About</a></li>
<li><a href="{{ site.url }}/articles">Sample Posts</a></li>
<li><a href="{{ site.url }}/theme-setup">Theme Setup</a></li>
</ul>
</nav>
</div><!-- /.top-navigation -->

View file

@ -1,6 +1,6 @@
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
<script>window.jQuery || document.write('<script src="/assets/js/vendor/jquery-1.9.1.min.js"><\/script>')</script>
<script src="/assets/js/main.min.js"></script>
<script>window.jQuery || document.write('<script src="{{ site.url }}/assets/js/vendor/jquery-1.9.1.min.js"><\/script>')</script>
<script src="{{ site.url }}/assets/js/main.min.js"></script>
<!-- Asynchronous Google Analytics snippet -->
<script>
var _gaq = _gaq || [];

View file

@ -18,7 +18,7 @@
<h1>{{ page.title }}</h1>
{% if page.tagline %}<h2>{{ page.tagline }}</h2>{% endif %}
</div><!--/ .headline-wrap -->
<img src="/images/{{ page.image.feature }}" alt="{{ page.title }} feature image">
<img src="{{ site.url }}/images/{{ page.image.feature }}" alt="{{ page.title }} feature image">
</div><!-- /.image-wrap -->
<div class="article-author-top">

View file

@ -14,7 +14,7 @@
{% include navigation.html %}
{% if page.image.feature %}<div class="image-wrap">
<img src="/images/{{ page.image.feature }}" alt="{{ page.title }} feature image">
<img src="{{ site.url }}/images/{{ page.image.feature }}" alt="{{ page.title }} feature image">
</div><!-- /.image-wrap -->{% endif %}
<div id="main" role="main">

View file

@ -18,7 +18,7 @@
<h1>{{ page.title }}</h1>
{% if page.tagline %}<h2>{{ page.tagline }}</h2>{% endif %}
</div><!--/ .headline-wrap -->
<img src="/images/{{ page.image.feature }}" alt="{{ page.title }} feature image">
<img src="{{ site.url }}/images/{{ page.image.feature }}" alt="{{ page.title }} feature image">
</div><!-- /.image-wrap -->
<div class="article-author-top">

View file

@ -14,7 +14,7 @@
{% include navigation.html %}
{% if page.image.feature %}<div class="image-wrap">
<img src="/images/{{ page.image.feature }}" alt="{{ page.title }} feature image">
<img src="{{ site.url }}/images/{{ page.image.feature }}" alt="{{ page.title }} feature image">
</div><!-- /.image-wrap -->{% endif %}
<div id="main" role="main" itemscope itemtype="http://schema.org/BlogPosting">

View file

@ -100,4 +100,4 @@ Not sure if this only effects Kramdown or if it's an issue with Markdown in gene
<iframe width="560" height="315" src="http://www.youtube.com/embed/PWf4WUoMXwg" frameborder="0"> </iframe>
~~~
[^1]: Used to generate absolute urls in *sitemap.xml*, *feed.xml*, and for canonical urls in *head.html*. Don't include a trailing `\` in your base url ie: http://mademistakes.com
[^1]: Used to generate absolute urls in *sitemap.xml*, *feed.xml*, and for canonical urls in *head.html*. Don't include a trailing `\` in your base url ie: http://mademistakes.com. When developing locally remove or comment out this line so local css, js, and images are used.