Browse Source

Enable relative permalinks and drop the site.baseurl from post links in index

Mark Otto 10 years ago
parent
commit
406bb1dc6e
2 changed files with 2 additions and 1 deletions
  1. 1 0
      _config.yml
  2. 1 1
      index.html

+ 1 - 0
_config.yml

@@ -4,6 +4,7 @@ highlighter:      pygments
 
 # Permalinks
 permalink:        pretty
+relative_permalinks: true
 
 # Setup
 title:            Poole

+ 1 - 1
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>