Skip to content

Commit b01624b

Browse files
committed
Update themes and pages to new paths api
1 parent 71278b8 commit b01624b

File tree

12 files changed

+28
-28
lines changed

12 files changed

+28
-28
lines changed

_includes/helpers/categories_list.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,13 @@
1919

2020
{% if categories_list.first[0] == null %}
2121
{% for category in categories_list %}
22-
<li><a href="{{ site.var.categories_path }}#{{ category }}-ref">
22+
<li><a href="{{ BASE_PATH }}{{ site.var.categories_path }}#{{ category }}-ref">
2323
{{ category | join: "/" }} <span>{{ site.categories[category].size }}</span>
2424
</a></li>
2525
{% endfor %}
2626
{% else %}
2727
{% for category in categories_list %}
28-
<li><a href="{{ site.var.categories_path }}#{{ category[0] }}-ref">
28+
<li><a href="{{ BASE_PATH }}{{ site.var.categories_path }}#{{ category[0] }}-ref">
2929
{{ category[0] | join: "/" }} <span>{{ category[1].size }}</span>
3030
</a></li>
3131
{% endfor %}

_includes/helpers/pages_list.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@
2525
{% if group == null or group == node.group %}
2626

2727
{% if page.url == node.url %}
28-
<li class="active"><a href="{{node.url}}" class="active">{{node.title}}</a></li>
28+
<li class="active"><a href="{{ BASE_PATH }}{{node.url}}" class="active">{{node.title}}</a></li>
2929
{% else %}
30-
<li><a href="{{node.url}}">{{node.title}}</a></li>
30+
<li><a href="{{ BASE_PATH }}{{node.url}}">{{node.title}}</a></li>
3131
{% endif %}
3232

3333
{% endif %}

_includes/helpers/posts_collate.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ <h3>{{this_month}}</h3>
2929
<ul>
3030
{% endif %}
3131

32-
<li><span>{{ post.date | date: "%B %e, %Y" }}</span> &raquo; <a href="{{ post.url }}">{{ post.title }}</a></li>
32+
<li><span>{{ post.date | date: "%B %e, %Y" }}</span> &raquo; <a href="{{ BASE_PATH }}{{ post.url }}">{{ post.title }}</a></li>
3333

3434
{% if forloop.last %}
3535
</ul>

_includes/helpers/tags_list.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,11 @@
1919

2020
{% if tags_list.first[0] == null %}
2121
{% for tag in tags_list %}
22-
<li><a href="{{ site.var.tags_path }}#{{ tag }}-ref">{{ tag }} <span>{{ site.tags[tag].size }}</span></a></li>
22+
<li><a href="{{ BASE_PATH }}{{ site.var.tags_path }}#{{ tag }}-ref">{{ tag }} <span>{{ site.tags[tag].size }}</span></a></li>
2323
{% endfor %}
2424
{% else %}
2525
{% for tag in tags_list %}
26-
<li><a href="{{ site.var.tags_path }}#{{ tag[0] }}-ref">{{ tag[0] }} <span>{{ tag[1].size }}</span></a></li>
26+
<li><a href="{{ BASE_PATH }}{{ site.var.tags_path }}#{{ tag[0] }}-ref">{{ tag[0] }} <span>{{ tag[1].size }}</span></a></li>
2727
{% endfor %}
2828
{% endif %}
2929

_includes/themes/mark-reid/default.html

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<title>{{ page.title }} &larr; {{ page.top }}</title>
88
<meta name="author" content="{{ site.author.name }}" />
99

10-
<link rel="start" href="/" />
10+
<link rel="start" href="{{ HOME_URL }}" />
1111

1212
{% if page.keywords %}
1313
<meta name="keywords" content="{{ page.keywords }}">
@@ -18,22 +18,22 @@
1818
{% endif %}
1919

2020
<!-- syntax highlighting CSS -->
21-
<link rel="stylesheet" href="{{ theme_asset_path }}/css/syntax.css" type="text/css" />
21+
<link rel="stylesheet" href="{{ ASSET_PATH }}/css/syntax.css" type="text/css" />
2222

2323
<!-- Homepage CSS -->
24-
<link rel="stylesheet" href="{{ theme_asset_path }}/css/screen.css" type="text/css" />
24+
<link rel="stylesheet" href="{{ ASSET_PATH }}/css/screen.css" type="text/css" />
2525

2626
</head>
2727
<body id="{{ page.section }}">
2828
<div id="site">
2929

3030
<div id="header">
3131
<h1>
32-
<a href="/" title="{{ site.title }}">{{ site.title }}</a>
33-
<span class="byline">&larr; <a href="/">{{ site.author.name }}</a></span>
32+
<a href="{{ HOME_URL }}" title="{{ site.title }}">{{ site.title }}</a>
33+
<span class="byline">&larr; <a href="{{ HOME_URL }}">{{ site.author.name }}</a></span>
3434
</h1>
3535
<ul class="nav">
36-
<li><a class="home" href="/">Home</a></li>
36+
<li><a class="home" href="{{ HOME_URL }}">Home</a></li>
3737
<li><a href="/archive.html">Archive</a></li>
3838
<li><a href="/pages.html">Pages</a></li>
3939
<li><a href="/categories.html">Categories</a></li>

_includes/themes/mark-reid/post.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ <h1 class="emphnext">{{ page.title }}</h1>
99
{{ content }}
1010

1111
<address class="signature">
12-
<a class="author" href="/">{{ site.author.name }}</a>
12+
<a class="author" href="{{ HOME_URL }}">{{ site.author.name }}</a>
1313
<span class="date">{{ page.date | date_to_long_string }}</span>
1414
<span class="location">{{ page.location }}</span>
1515
</address>

_includes/themes/the-minimum/default.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<meta name="viewport" content="width=device-width,initial-scale=1">
99
<title>{{ page.title }}</title>
1010
<meta name="author" content="{{ site.author.name }}">
11-
<link href='{{ theme_asset_path }}/css/style.css' rel="stylesheet" media="all">
11+
<link href='{{ ASSET_PATH }}/css/style.css' rel="stylesheet" media="all">
1212
<link href="http://feeds.feedburner.com/{{ site.author.feedbaname }}" rel="alternate" title="{{ page.title }}" type="application/atom+xml">
1313
<script src="http://cdnjs.cloudflare.com/ajax/libs/modernizr/2.0.6/modernizr.min.js"></script>
1414
</head>
@@ -18,7 +18,7 @@
1818
<header class="the-header">
1919
<div class="unit-head">
2020
<div class="unit-inner unit-head-inner">
21-
<p class="logo"><a href="/">{{ site.title }}</a></p>
21+
<p class="logo"><a href="{{ HOME_URL }}">{{ site.title }}</a></p>
2222
<nav class="nav-global">
2323
<ul>
2424
<li class="archive"><a href="/archive.html">archive</a></li>

_includes/themes/tom/default.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@
77
<link href="http://feeds.feedburner.com/username" rel="alternate" title="your title" type="application/atom+xml" />
88

99
<!-- syntax highlighting CSS -->
10-
<link rel="stylesheet" href="{{ theme_asset_path }}/css/syntax.css" type="text/css" />
10+
<link rel="stylesheet" href="{{ ASSET_PATH }}/css/syntax.css" type="text/css" />
1111

1212
<!-- Homepage CSS -->
13-
<link rel="stylesheet" href="{{ theme_asset_path }}/css/screen.css" type="text/css" media="screen, projection" />
13+
<link rel="stylesheet" href="{{ ASSET_PATH }}/css/screen.css" type="text/css" media="screen, projection" />
1414

1515
<!-- Typekit -->
1616
<script type="text/javascript" src="http://use.typekit.com/jpd0pfm.js"></script>
@@ -20,7 +20,7 @@
2020

2121
<div class="site">
2222
<div class="title">
23-
<a href="/">{{ site.title }}</a>
23+
<a href="{{ HOME_URL }}">{{ site.title }}</a>
2424
<a class="extra" href="/archive.html">Archive</a>
2525
<a class="extra" href="/pages.html">Pages</a>
2626
<a class="extra" href="/categories.html">Categories</a>

_includes/themes/twitter/default.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212
<![endif]-->
1313

1414
<!-- Le styles -->
15-
<link href="{{ theme_asset_path }}/css/1.4.0/bootstrap.css" rel="stylesheet">
16-
<link href="{{ theme_asset_path }}/css/style.css?body=1" rel="stylesheet" type="text/css" media="all">
15+
<link href="{{ ASSET_PATH }}/css/1.4.0/bootstrap.css" rel="stylesheet">
16+
<link href="{{ ASSET_PATH }}/css/style.css?body=1" rel="stylesheet" type="text/css" media="all">
1717

1818
<!-- Le fav and touch icons -->
1919
<!-- Update these with your own images
@@ -29,7 +29,7 @@
2929
<div class="topbar">
3030
<div class="fill">
3131
<div class="container">
32-
<a class="brand" href="/">{{ site.title }}</a>
32+
<a class="brand" href="{{ HOME_URL }}">{{ site.title }}</a>
3333
<ul class="nav">
3434
{% assign pages_list = site.pages %}
3535
{% assign group = 'navigation' %}

_includes/themes/twitter/post.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,13 @@ <h1>{{ page.title }} <small>Supporting tagline</small></h1>
99
<div class="pagination">
1010
<ul>
1111
{% if page.previous %}
12-
<li class="prev"><a href="{{ page.previous.url }}" title="{{ page.previous.title }}">&larr; Previous</a></li>
12+
<li class="prev"><a href="{{ BASE_PATH }}{{ page.previous.url }}" title="{{ page.previous.title }}">&larr; Previous</a></li>
1313
{% else %}
1414
<li class="prev disabled"><a>&larr; Previous</a></li>
1515
{% endif %}
16-
<li><a href="/archive.html">Archive</a></li>
16+
<li><a href="{{ BASE_PATH }}{{site.var.archive_path}}">Archive</a></li>
1717
{% if page.next %}
18-
<li class="next"><a href="{{ page.next.url }}" title="{{ page.next.title }}">Next &rarr;</a></li>
18+
<li class="next"><a href="{{ BASE_PATH }}{{ page.next.url }}" title="{{ page.next.title }}">Next &rarr;</a></li>
1919
{% else %}
2020
<li class="next disabled"><a>Next &rarr;</a>
2121
{% endif %}

0 commit comments

Comments
 (0)