Browse Source

Add missing "{{ SITEURL }}" back.

zhouji 11 years ago
parent
commit
4f5160c26f
4 changed files with 6 additions and 6 deletions
  1. 1 1
      templates/archives.html
  2. 2 2
      templates/article.html
  3. 1 1
      templates/categories.html
  4. 2 2
      templates/tags.html

+ 1 - 1
templates/archives.html

@@ -12,7 +12,7 @@ Full archives of {{ SITENAME|striptags }} blog.
 
 <div class="row-fluid">
     <header class="page_header span10 offset2">
-    <h1><a href="/archives.html">All Posts</a></h1>
+    <h1><a href="{{ SITEURL }}/archives.html">All Posts</a></h1>
     </header>
 </div>
 <div class="row-fluid">

+ 2 - 2
templates/article.html

@@ -90,13 +90,13 @@
             {% endif %}
             {% if article.category %}
             <h4>Category</h4>
-            <a class="category-link" href="/categories.html#{{ category|replace(' ', '-')|e }}-ref">{{ article.category }}</a> 
+            <a class="category-link" href="{{ SITEURL }}/categories.html#{{ category|replace(' ', '-')|e }}-ref">{{ article.category }}</a> 
             {% endif %}
             {% if article.tags %}
             <h4>Tags</h4>
             <ul class="list-of-tags tags-in-article"> 
                 {% for tag in article.tags|sort %}
-                <li><a href="/tags.html#{{ tag|replace(' ', '-')|e }}-ref">{{ tag }}
+                <li><a href="{{ SITEURL }}/tags.html#{{ tag|replace(' ', '-')|e }}-ref">{{ tag }}
                     {% for aTag, tagged_articles in tags if aTag == tag %}
                     <span>{{ tagged_articles|count }}</span>
                     {% endfor %}</a></li>

+ 1 - 1
templates/categories.html

@@ -16,7 +16,7 @@ All categories of the {{ SITENAME|striptags }} blog.
 {% block content %}
 <div class="row-fluid">
     <header class="page_header span10 offset2">
-    <h1><a href="/categories.html">All Categories</a></h1>
+    <h1><a href="{{ SITEURL }}/categories.html">All Categories</a></h1>
     </header>
 </div>
 

+ 2 - 2
templates/tags.html

@@ -17,7 +17,7 @@ All tags used in the {{ SITENAME|striptags }} blog.
 
 <div class="row-fluid">
     <header class="page_header span10 offset2">
-    <h1><a href="/tags.html">All Tags</a></h1>
+    <h1><a href="{{ SITEURL }}/tags.html">All Tags</a></h1>
     </header>
 </div>
 <div class="row-fluid">
@@ -29,7 +29,7 @@ All tags used in the {{ SITENAME|striptags }} blog.
             {% for tag, articles in tags|sort %}
             <li>
             {% set num = articles|count %}
-            <a href="/tags.html#{{ tag|replace(' ', '-')|e }}-ref">{{ tag }}<span>{{ num }}</span></a>
+            <a href="{{ SITEURL }}/tags.html#{{ tag|replace(' ', '-')|e }}-ref">{{ tag }}<span>{{ num }}</span></a>
             </li>
             {% endfor %}
         </ul>