projects
/
blog
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7328f77
)
Enable relative permalinks and drop the site.baseurl from post links in index
author
Mark Otto
<markdotto@gmail.com>
Thu, 25 Sep 2014 17:55:36 +0000
(10:55 -0700)
committer
Mark Otto
<markdotto@gmail.com>
Thu, 25 Sep 2014 17:55:36 +0000
(10:55 -0700)
_config.yml
patch
|
blob
|
history
index.html
patch
|
blob
|
history
diff --git
a/_config.yml
b/_config.yml
index 8bd7786eb5dbb986f769ff8cb74c7517cf22a6df..5febafb761c3cf8ddaf93e7c6e9f81e93fb1a8b8 100644
(file)
--- a/
_config.yml
+++ b/
_config.yml
@@
-4,6
+4,7
@@
highlighter: pygments
# Permalinks
permalink: pretty
+relative_permalinks: true
# Setup
title: Poole
diff --git
a/index.html
b/index.html
index bdd4f4d7d085cfa0b36fe6c3d6e1390a1b981601..edbc6b1ff9da7e18c5a14341956ca515537f8cea 100644
(file)
--- a/
index.html
+++ b/
index.html
@@
-7,7
+7,7
@@
title: Home
{% for post in paginator.posts %}
<div class="post">
<h1 class="post-title">
- <a href="{{
site.baseurl }}{{
post.url }}">
+ <a href="{{ post.url }}">
{{ post.title }}
</a>
</h1>