Permalink
Browse files

baseurl, fixes #38

  • Loading branch information...
1 parent 32a86a8 commit 802cbd1debc931719a3383324796772a58d7e3eb @mdo mdo committed Jun 23, 2014
Showing with 13 additions and 12 deletions.
  1. +1 −1 404.html
  2. +3 −2 _config.yml
  3. +5 −5 _includes/head.html
  4. +1 −1 _includes/sidebar.html
  5. +3 −3 index.html
View
@@ -5,5 +5,5 @@
<div class="page">
<h1 class="page-title">404: Page not found</h1>
- <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>
+ <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>
</div>
View
@@ -1,6 +1,6 @@
# Dependencies
markdown: redcarpet
-highlighter: pygments
+pygments: true
# Permalinks
permalink: pretty
@@ -10,6 +10,7 @@ title: Hyde
tagline: 'A Jekyll theme'
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>.'
url: http://hyde.getpoole.com
+baseurl: /
author:
name: 'Mark Otto'
@@ -18,7 +19,7 @@ author:
paginate: 5
# Custom vars
-version: 2.0.0
+version: 2.1.0
github:
repo: https://github.com/poole/hyde
View
@@ -14,14 +14,14 @@
</title>
<!-- CSS -->
- <link rel="stylesheet" href="/public/css/poole.css">
- <link rel="stylesheet" href="/public/css/syntax.css">
- <link rel="stylesheet" href="/public/css/hyde.css">
+ <link rel="stylesheet" href="{{ site.baseurl }}public/css/poole.css">
+ <link rel="stylesheet" href="{{ site.baseurl }}public/css/syntax.css">
+ <link rel="stylesheet" href="{{ site.baseurl }}public/css/hyde.css">
<link rel="stylesheet" href="http://fonts.googleapis.com/css?family=PT+Sans:400,400italic,700|Abril+Fatface">
<!-- Icons -->
- <link rel="apple-touch-icon-precomposed" sizes="144x144" href="/public/apple-touch-icon-144-precomposed.png">
- <link rel="shortcut icon" href="/public/favicon.ico">
+ <link rel="apple-touch-icon-precomposed" sizes="144x144" href="{{ site.baseurl }}public/apple-touch-icon-144-precomposed.png">
+ <link rel="shortcut icon" href="{{ site.baseurl }}public/favicon.ico">
<!-- RSS -->
<link rel="alternate" type="application/rss+xml" title="RSS" href="/atom.xml">
@@ -7,7 +7,7 @@
<ul class="sidebar-nav">
<li class="sidebar-nav-item{% if page.title == "Home" %} active{% endif %}">
- <a href="/">Home</a>
+ <a href="{{ site.baseurl }}">Home</a>
</li>
{% comment %}
View
@@ -21,15 +21,15 @@ <h1 class="post-title">
<div class="pagination">
{% if paginator.next_page %}
- <a class="pagination-item older" href="/page{{paginator.next_page}}">Older</a>
+ <a class="pagination-item older" href="{{ site.baseurl }}page{{paginator.next_page}}">Older</a>
{% else %}
<span class="pagination-item older">Older</span>
{% endif %}
{% if paginator.previous_page %}
{% if paginator.page == 2 %}
- <a class="pagination-item newer" href="/">Newer</a>
+ <a class="pagination-item newer" href="{{ site.baseurl }}">Newer</a>
{% else %}
- <a class="pagination-item newer" href="/page{{paginator.previous_page}}">Newer</a>
+ <a class="pagination-item newer" href="{{ site.baseurl }}page{{paginator.previous_page}}">Newer</a>
{% endif %}
{% else %}
<span class="pagination-item newer">Newer</span>

4 comments on commit 802cbd1

@ctamisier

this commit affects: "+pygments: true", I am not sure it is correct..

@hnrch02

It is, because GitHub Pages doesn't yet support Jekyll 2.0.

@lkuczborski

Github Pages already support Jekyll 2.0. See: github/pages-gem#63

Please sign in to comment.