Bläddra i källkod

Merge branch 'pr/13'

Mark Otto 11 år sedan
förälder
incheckning
fb2a37180e
6 ändrade filer med 15 tillägg och 15 borttagningar
  1. 1 1
      404.html
  2. 5 5
      _includes/head.html
  3. 1 1
      _layouts/default.html
  4. 1 1
      _layouts/post.html
  5. 3 3
      atom.xml
  6. 4 4
      index.html

+ 1 - 1
404.html

@@ -6,5 +6,5 @@ permalink: 404.html
 
 
 <div class="page">
 <div class="page">
   <h1 class="page-title">404: Page not found</h1>
   <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>
 </div>

+ 5 - 5
_includes/head.html

@@ -14,13 +14,13 @@
   </title>
   </title>
 
 
   <!-- CSS -->
   <!-- CSS -->
-  <link rel="stylesheet" href="/public/css/poole.css">
-  <link rel="stylesheet" href="/public/css/syntax.css">
+  <link rel="stylesheet" href="{{ site.baseurl }}public/css/poole.css">
+  <link rel="stylesheet" href="{{ site.baseurl }}public/css/syntax.css">
 
 
   <!-- Icons -->
   <!-- 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 -->
   <!-- RSS -->
-  <link rel="alternate" type="application/rss+xml" title="RSS" href="/atom.xml">
+  <link rel="alternate" type="application/rss+xml" title="RSS" href="{{ site.baseurl }}atom.xml">
 </head>
 </head>

+ 1 - 1
_layouts/default.html

@@ -8,7 +8,7 @@
     <div class="container content">
     <div class="container content">
       <div class="masthead">
       <div class="masthead">
         <h3 class="masthead-title">
         <h3 class="masthead-title">
-          <a href="/" title="Home">{{ site.title }}</a>
+          <a href="{{ site.baseurl }}" title="Home">{{ site.title }}</a>
           <small>{{ site.tagline }}</small>
           <small>{{ site.tagline }}</small>
         </h3>
         </h3>
       </div>
       </div>

+ 1 - 1
_layouts/post.html

@@ -14,7 +14,7 @@ layout: default
     {% for post in site.related_posts limit:3 %}
     {% for post in site.related_posts limit:3 %}
       <li>
       <li>
         <h3>
         <h3>
-          <a href="{{ post.url }}">
+          <a href="{{ site.baseurl }}{{ post.url }}">
             {{ post.title }}
             {{ post.title }}
             <small>{{ post.date | date_to_string }}</small>
             <small>{{ post.date | date_to_string }}</small>
           </a>
           </a>

+ 3 - 3
atom.xml

@@ -6,8 +6,8 @@ layout: nil
 <feed xmlns="http://www.w3.org/2005/Atom">
 <feed xmlns="http://www.w3.org/2005/Atom">
 
 
  <title>{{ site.title }}</title>
  <title>{{ site.title }}</title>
- <link href="{{ site.url }}/atom.xml" rel="self"/>
- <link href="{{ site.url }}/"/>
+ <link href="{{ site.url }}{{ site.baseurl }}atom.xml" rel="self"/>
+ <link href="{{ site.url }}{{ site.baseurl }}"/>
  <updated>{{ site.time | date_to_xmlschema }}</updated>
  <updated>{{ site.time | date_to_xmlschema }}</updated>
  <id>{{ site.url }}</id>
  <id>{{ site.url }}</id>
  <author>
  <author>
@@ -18,7 +18,7 @@ layout: nil
  {% for post in site.posts %}
  {% for post in site.posts %}
  <entry>
  <entry>
    <title>{{ post.title }}</title>
    <title>{{ post.title }}</title>
-   <link href="{{ site.url }}{{ post.url }}"/>
+   <link href="{{ site.url }}{{ site.baseurl }}{{ post.url }}"/>
    <updated>{{ post.date | date_to_xmlschema }}</updated>
    <updated>{{ post.date | date_to_xmlschema }}</updated>
    <id>{{ site.url }}{{ post.id }}</id>
    <id>{{ site.url }}{{ post.id }}</id>
    <content type="html">{{ post.content | xml_escape }}</content>
    <content type="html">{{ post.content | xml_escape }}</content>

+ 4 - 4
index.html

@@ -7,7 +7,7 @@ title: Home
   {% for post in paginator.posts %}
   {% for post in paginator.posts %}
   <div class="post">
   <div class="post">
     <h1 class="post-title">
     <h1 class="post-title">
-      <a href="{{ post.url }}">
+      <a href="{{ site.baseurl }}{{ post.url }}">
         {{ post.title }}
         {{ post.title }}
       </a>
       </a>
     </h1>
     </h1>
@@ -21,15 +21,15 @@ title: Home
 
 
 <div class="pagination">
 <div class="pagination">
   {% if paginator.next_page %}
   {% 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 %}
   {% else %}
     <span class="pagination-item older">Older</span>
     <span class="pagination-item older">Older</span>
   {% endif %}
   {% endif %}
   {% if paginator.previous_page %}
   {% if paginator.previous_page %}
     {% if paginator.page == 2 %}
     {% if paginator.page == 2 %}
-      <a class="pagination-item newer" href="/">Newer</a>
+      <a class="pagination-item newer" href="{{ site.baseurl }}">Newer</a>
     {% else %}
     {% 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 %}
     {% endif %}
   {% else %}
   {% else %}
     <span class="pagination-item newer">Newer</span>
     <span class="pagination-item newer">Newer</span>