소스 검색

fix silly archive template

 we don't need to render all entries twice
Oz N Tiram 9 년 전
부모
커밋
aa7e36d3b8
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      templates/archive_index.html

+ 2 - 2
templates/archive_index.html

@@ -1,10 +1,10 @@
 {% extends "base.html" %}
-{% block title %} Archive » oz123.github.com {% endblock %}
+{% block title %} Archive » {{ site_url }} {% endblock %}
 {% block content %}
 <div class="archive index">
 <h2>This is an archive of everything posted here ...</h2>
   {% for entry in entries %}
-    <p>{{ entry.published_html }}<a title="{{ entry.permalink }}" href="{{entry.permalink}}"> {{ entry.title }}</a></p>
+    <p><a title="../{{ entry.permalink }}" href="../{{entry.permalink}}">{{entry.title }}</a></p>
   {% endfor %}
 </div>
 {% endblock content %}