summaryrefslogtreecommitdiff
path: root/_includes
diff options
context:
space:
mode:
authorJade Dominguez <plusjade@gmail.com>2012-01-21 18:15:00 -0800
committerJade Dominguez <plusjade@gmail.com>2012-01-21 18:15:00 -0800
commitb01624b217f54246efc999787d60ed789d5105f2 (patch)
tree310e59532b09cbbad4bfaa979af3a2c96bd7d7eb /_includes
parent71278b8a3a1d7674349a4ff2b386818851a8661e (diff)
Update themes and pages to new paths api
Diffstat (limited to '_includes')
-rw-r--r--_includes/helpers/categories_list.html4
-rw-r--r--_includes/helpers/pages_list.html4
-rw-r--r--_includes/helpers/posts_collate.html2
-rw-r--r--_includes/helpers/tags_list.html4
-rw-r--r--_includes/themes/mark-reid/default.html12
-rw-r--r--_includes/themes/mark-reid/post.html2
-rw-r--r--_includes/themes/the-minimum/default.html4
-rw-r--r--_includes/themes/tom/default.html6
-rw-r--r--_includes/themes/twitter/default.html6
-rw-r--r--_includes/themes/twitter/post.html6
10 files changed, 25 insertions, 25 deletions
diff --git a/_includes/helpers/categories_list.html b/_includes/helpers/categories_list.html
index 2ced2d2..ae5e6b5 100644
--- a/_includes/helpers/categories_list.html
+++ b/_includes/helpers/categories_list.html
@@ -19,13 +19,13 @@ Usage:
{% if categories_list.first[0] == null %}
{% for category in categories_list %}
- <li><a href="{{ site.var.categories_path }}#{{ category }}-ref">
+ <li><a href="{{ BASE_PATH }}{{ site.var.categories_path }}#{{ category }}-ref">
{{ category | join: "/" }} <span>{{ site.categories[category].size }}</span>
</a></li>
{% endfor %}
{% else %}
{% for category in categories_list %}
- <li><a href="{{ site.var.categories_path }}#{{ category[0] }}-ref">
+ <li><a href="{{ BASE_PATH }}{{ site.var.categories_path }}#{{ category[0] }}-ref">
{{ category[0] | join: "/" }} <span>{{ category[1].size }}</span>
</a></li>
{% endfor %}
diff --git a/_includes/helpers/pages_list.html b/_includes/helpers/pages_list.html
index 0e42820..0e9ba87 100644
--- a/_includes/helpers/pages_list.html
+++ b/_includes/helpers/pages_list.html
@@ -25,9 +25,9 @@ Usage:
{% if group == null or group == node.group %}
{% if page.url == node.url %}
- <li class="active"><a href="{{node.url}}" class="active">{{node.title}}</a></li>
+ <li class="active"><a href="{{ BASE_PATH }}{{node.url}}" class="active">{{node.title}}</a></li>
{% else %}
- <li><a href="{{node.url}}">{{node.title}}</a></li>
+ <li><a href="{{ BASE_PATH }}{{node.url}}">{{node.title}}</a></li>
{% endif %}
{% endif %}
diff --git a/_includes/helpers/posts_collate.html b/_includes/helpers/posts_collate.html
index 210bd03..42adef7 100644
--- a/_includes/helpers/posts_collate.html
+++ b/_includes/helpers/posts_collate.html
@@ -29,7 +29,7 @@ Usage:
<ul>
{% endif %}
- <li><span>{{ post.date | date: "%B %e, %Y" }}</span> &raquo; <a href="{{ post.url }}">{{ post.title }}</a></li>
+ <li><span>{{ post.date | date: "%B %e, %Y" }}</span> &raquo; <a href="{{ BASE_PATH }}{{ post.url }}">{{ post.title }}</a></li>
{% if forloop.last %}
</ul>
diff --git a/_includes/helpers/tags_list.html b/_includes/helpers/tags_list.html
index d2518e0..f0ee45f 100644
--- a/_includes/helpers/tags_list.html
+++ b/_includes/helpers/tags_list.html
@@ -19,11 +19,11 @@ Usage:
{% if tags_list.first[0] == null %}
{% for tag in tags_list %}
- <li><a href="{{ site.var.tags_path }}#{{ tag }}-ref">{{ tag }} <span>{{ site.tags[tag].size }}</span></a></li>
+ <li><a href="{{ BASE_PATH }}{{ site.var.tags_path }}#{{ tag }}-ref">{{ tag }} <span>{{ site.tags[tag].size }}</span></a></li>
{% endfor %}
{% else %}
{% for tag in tags_list %}
- <li><a href="{{ site.var.tags_path }}#{{ tag[0] }}-ref">{{ tag[0] }} <span>{{ tag[1].size }}</span></a></li>
+ <li><a href="{{ BASE_PATH }}{{ site.var.tags_path }}#{{ tag[0] }}-ref">{{ tag[0] }} <span>{{ tag[1].size }}</span></a></li>
{% endfor %}
{% endif %}
diff --git a/_includes/themes/mark-reid/default.html b/_includes/themes/mark-reid/default.html
index b8a0482..8702b44 100644
--- a/_includes/themes/mark-reid/default.html
+++ b/_includes/themes/mark-reid/default.html
@@ -7,7 +7,7 @@
<title>{{ page.title }} &larr; {{ page.top }}</title>
<meta name="author" content="{{ site.author.name }}" />
- <link rel="start" href="/" />
+ <link rel="start" href="{{ HOME_URL }}" />
{% if page.keywords %}
<meta name="keywords" content="{{ page.keywords }}">
@@ -18,10 +18,10 @@
{% endif %}
<!-- syntax highlighting CSS -->
- <link rel="stylesheet" href="{{ theme_asset_path }}/css/syntax.css" type="text/css" />
+ <link rel="stylesheet" href="{{ ASSET_PATH }}/css/syntax.css" type="text/css" />
<!-- Homepage CSS -->
- <link rel="stylesheet" href="{{ theme_asset_path }}/css/screen.css" type="text/css" />
+ <link rel="stylesheet" href="{{ ASSET_PATH }}/css/screen.css" type="text/css" />
</head>
<body id="{{ page.section }}">
@@ -29,11 +29,11 @@
<div id="header">
<h1>
- <a href="/" title="{{ site.title }}">{{ site.title }}</a>
- <span class="byline">&larr; <a href="/">{{ site.author.name }}</a></span>
+ <a href="{{ HOME_URL }}" title="{{ site.title }}">{{ site.title }}</a>
+ <span class="byline">&larr; <a href="{{ HOME_URL }}">{{ site.author.name }}</a></span>
</h1>
<ul class="nav">
- <li><a class="home" href="/">Home</a></li>
+ <li><a class="home" href="{{ HOME_URL }}">Home</a></li>
<li><a href="/archive.html">Archive</a></li>
<li><a href="/pages.html">Pages</a></li>
<li><a href="/categories.html">Categories</a></li>
diff --git a/_includes/themes/mark-reid/post.html b/_includes/themes/mark-reid/post.html
index af7ffd3..6e3396f 100644
--- a/_includes/themes/mark-reid/post.html
+++ b/_includes/themes/mark-reid/post.html
@@ -9,7 +9,7 @@
{{ content }}
<address class="signature">
- <a class="author" href="/">{{ site.author.name }}</a>
+ <a class="author" href="{{ HOME_URL }}">{{ site.author.name }}</a>
<span class="date">{{ page.date | date_to_long_string }}</span>
<span class="location">{{ page.location }}</span>
</address>
diff --git a/_includes/themes/the-minimum/default.html b/_includes/themes/the-minimum/default.html
index 95b0404..6099d59 100644
--- a/_includes/themes/the-minimum/default.html
+++ b/_includes/themes/the-minimum/default.html
@@ -8,7 +8,7 @@
<meta name="viewport" content="width=device-width,initial-scale=1">
<title>{{ page.title }}</title>
<meta name="author" content="{{ site.author.name }}">
- <link href='{{ theme_asset_path }}/css/style.css' rel="stylesheet" media="all">
+ <link href='{{ ASSET_PATH }}/css/style.css' rel="stylesheet" media="all">
<link href="http://feeds.feedburner.com/{{ site.author.feedbaname }}" rel="alternate" title="{{ page.title }}" type="application/atom+xml">
<script src="http://cdnjs.cloudflare.com/ajax/libs/modernizr/2.0.6/modernizr.min.js"></script>
</head>
@@ -18,7 +18,7 @@
<header class="the-header">
<div class="unit-head">
<div class="unit-inner unit-head-inner">
- <p class="logo"><a href="/">{{ site.title }}</a></p>
+ <p class="logo"><a href="{{ HOME_URL }}">{{ site.title }}</a></p>
<nav class="nav-global">
<ul>
<li class="archive"><a href="/archive.html">archive</a></li>
diff --git a/_includes/themes/tom/default.html b/_includes/themes/tom/default.html
index bbd019f..0dedd8e 100644
--- a/_includes/themes/tom/default.html
+++ b/_includes/themes/tom/default.html
@@ -7,10 +7,10 @@
<link href="http://feeds.feedburner.com/username" rel="alternate" title="your title" type="application/atom+xml" />
<!-- syntax highlighting CSS -->
- <link rel="stylesheet" href="{{ theme_asset_path }}/css/syntax.css" type="text/css" />
+ <link rel="stylesheet" href="{{ ASSET_PATH }}/css/syntax.css" type="text/css" />
<!-- Homepage CSS -->
- <link rel="stylesheet" href="{{ theme_asset_path }}/css/screen.css" type="text/css" media="screen, projection" />
+ <link rel="stylesheet" href="{{ ASSET_PATH }}/css/screen.css" type="text/css" media="screen, projection" />
<!-- Typekit -->
<script type="text/javascript" src="http://use.typekit.com/jpd0pfm.js"></script>
@@ -20,7 +20,7 @@
<div class="site">
<div class="title">
- <a href="/">{{ site.title }}</a>
+ <a href="{{ HOME_URL }}">{{ site.title }}</a>
<a class="extra" href="/archive.html">Archive</a>
<a class="extra" href="/pages.html">Pages</a>
<a class="extra" href="/categories.html">Categories</a>
diff --git a/_includes/themes/twitter/default.html b/_includes/themes/twitter/default.html
index df70385..b45cf22 100644
--- a/_includes/themes/twitter/default.html
+++ b/_includes/themes/twitter/default.html
@@ -12,8 +12,8 @@
<![endif]-->
<!-- Le styles -->
- <link href="{{ theme_asset_path }}/css/1.4.0/bootstrap.css" rel="stylesheet">
- <link href="{{ theme_asset_path }}/css/style.css?body=1" rel="stylesheet" type="text/css" media="all">
+ <link href="{{ ASSET_PATH }}/css/1.4.0/bootstrap.css" rel="stylesheet">
+ <link href="{{ ASSET_PATH }}/css/style.css?body=1" rel="stylesheet" type="text/css" media="all">
<!-- Le fav and touch icons -->
<!-- Update these with your own images
@@ -29,7 +29,7 @@
<div class="topbar">
<div class="fill">
<div class="container">
- <a class="brand" href="/">{{ site.title }}</a>
+ <a class="brand" href="{{ HOME_URL }}">{{ site.title }}</a>
<ul class="nav">
{% assign pages_list = site.pages %}
{% assign group = 'navigation' %}
diff --git a/_includes/themes/twitter/post.html b/_includes/themes/twitter/post.html
index 591cbca..ebf66ca 100644
--- a/_includes/themes/twitter/post.html
+++ b/_includes/themes/twitter/post.html
@@ -9,13 +9,13 @@
<div class="pagination">
<ul>
{% if page.previous %}
- <li class="prev"><a href="{{ page.previous.url }}" title="{{ page.previous.title }}">&larr; Previous</a></li>
+ <li class="prev"><a href="{{ BASE_PATH }}{{ page.previous.url }}" title="{{ page.previous.title }}">&larr; Previous</a></li>
{% else %}
<li class="prev disabled"><a>&larr; Previous</a></li>
{% endif %}
- <li><a href="/archive.html">Archive</a></li>
+ <li><a href="{{ BASE_PATH }}{{site.var.archive_path}}">Archive</a></li>
{% if page.next %}
- <li class="next"><a href="{{ page.next.url }}" title="{{ page.next.title }}">Next &rarr;</a></li>
+ <li class="next"><a href="{{ BASE_PATH }}{{ page.next.url }}" title="{{ page.next.title }}">Next &rarr;</a></li>
{% else %}
<li class="next disabled"><a>Next &rarr;</a>
{% endif %}