Преглед изворни кода

Updating index.html links to include baseurl

Barry Clark пре 11 година
родитељ
комит
b491bc61ea
1 измењених фајлова са 2 додато и 2 уклоњено
  1. 2 2
      index.html

+ 2 - 2
index.html

@@ -6,13 +6,13 @@ layout: default
   {% for post in site.posts %}
     <article class="post">    
       
-      <h1><a href="{{ post.url }}">{{ post.title }}</a></h1>
+      <h1><a href="{{ site.baseurl }}/{{ post.url }}">{{ post.title }}</a></h1>
 
       <div class="entry">
         {{ post.content | truncatewords:40}}
       </div>
       
-      <a href="{{ post.url }}" class="read-more">Read More</a>
+      <a href="{{ site.baseurl }}/{{ post.url }}" class="read-more">Read More</a>
     </article>
   {% endfor %}
 </div>