Skip to content

Commit 802cbd1

Browse files
committed
baseurl, fixes #38
1 parent 32a86a8 commit 802cbd1

File tree

5 files changed

+13
-12
lines changed

5 files changed

+13
-12
lines changed

404.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,5 @@
55

66
<div class="page">
77
<h1 class="page-title">404: Page not found</h1>
8-
<p class="lead">Sorry, we've misplaced that URL or it's pointing to something that doesn't exist. <a href="/">Head back home</a> to try finding it again.</p>
8+
<p class="lead">Sorry, we've misplaced that URL or it's pointing to something that doesn't exist. <a href="{{ site.baseurl }}">Head back home</a> to try finding it again.</p>
99
</div>

_config.yml

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Dependencies
22
markdown: redcarpet
3-
highlighter: pygments
3+
pygments: true
44

55
# Permalinks
66
permalink: pretty
@@ -10,6 +10,7 @@ title: Hyde
1010
tagline: 'A Jekyll theme'
1111
description: 'A brazen two-column <a href="http://jekyllrb.com" target="_blank">Jekyll</a> theme that pairs a prominent sidebar with uncomplicated content. Made by <a href="https://twitter.com/mdo" target="_blank">@mdo</a>.'
1212
url: http://hyde.getpoole.com
13+
baseurl: /
1314

1415
author:
1516
name: 'Mark Otto'
@@ -18,7 +19,7 @@ author:
1819
paginate: 5
1920

2021
# Custom vars
21-
version: 2.0.0
22+
version: 2.1.0
2223

2324
github:
2425
repo: https://github.com/poole/hyde

_includes/head.html

+5-5
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,14 @@
1414
</title>
1515

1616
<!-- CSS -->
17-
<link rel="stylesheet" href="/public/css/poole.css">
18-
<link rel="stylesheet" href="/public/css/syntax.css">
19-
<link rel="stylesheet" href="/public/css/hyde.css">
17+
<link rel="stylesheet" href="{{ site.baseurl }}public/css/poole.css">
18+
<link rel="stylesheet" href="{{ site.baseurl }}public/css/syntax.css">
19+
<link rel="stylesheet" href="{{ site.baseurl }}public/css/hyde.css">
2020
<link rel="stylesheet" href="http://fonts.googleapis.com/css?family=PT+Sans:400,400italic,700|Abril+Fatface">
2121

2222
<!-- Icons -->
23-
<link rel="apple-touch-icon-precomposed" sizes="144x144" href="/public/apple-touch-icon-144-precomposed.png">
24-
<link rel="shortcut icon" href="/public/favicon.ico">
23+
<link rel="apple-touch-icon-precomposed" sizes="144x144" href="{{ site.baseurl }}public/apple-touch-icon-144-precomposed.png">
24+
<link rel="shortcut icon" href="{{ site.baseurl }}public/favicon.ico">
2525

2626
<!-- RSS -->
2727
<link rel="alternate" type="application/rss+xml" title="RSS" href="/atom.xml">

_includes/sidebar.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ <h1>{{ site.title }}</h1>
77

88
<ul class="sidebar-nav">
99
<li class="sidebar-nav-item{% if page.title == "Home" %} active{% endif %}">
10-
<a href="/">Home</a>
10+
<a href="{{ site.baseurl }}">Home</a>
1111
</li>
1212

1313
{% comment %}

index.html

+3-3
Original file line numberDiff line numberDiff line change
@@ -21,15 +21,15 @@ <h1 class="post-title">
2121

2222
<div class="pagination">
2323
{% if paginator.next_page %}
24-
<a class="pagination-item older" href="/page{{paginator.next_page}}">Older</a>
24+
<a class="pagination-item older" href="{{ site.baseurl }}page{{paginator.next_page}}">Older</a>
2525
{% else %}
2626
<span class="pagination-item older">Older</span>
2727
{% endif %}
2828
{% if paginator.previous_page %}
2929
{% if paginator.page == 2 %}
30-
<a class="pagination-item newer" href="/">Newer</a>
30+
<a class="pagination-item newer" href="{{ site.baseurl }}">Newer</a>
3131
{% else %}
32-
<a class="pagination-item newer" href="/page{{paginator.previous_page}}">Newer</a>
32+
<a class="pagination-item newer" href="{{ site.baseurl }}page{{paginator.previous_page}}">Newer</a>
3333
{% endif %}
3434
{% else %}
3535
<span class="pagination-item newer">Newer</span>

0 commit comments

Comments
 (0)