Bläddra i källkod

Template tweak.

Brit Butler 13 år sedan
förälder
incheckning
558a04e696
1 ändrade filer med 11 tillägg och 12 borttagningar
  1. 11 12
      themes/hyde/index.tmpl

+ 11 - 12
themes/hyde/index.tmpl

1
 {namespace coleslaw.theme.hyde}
1
 {namespace coleslaw.theme.hyde}
2
 
2
 
3
 {template index}
3
 {template index}
4
+{foreach $post in $posts}
5
+  <div class="article-meta">
6
+    <a class="article-title" href="{$post.url}">{$post.title}</a>
7
+    <div class="date"> posted on {$post.date}</div>
8
+    <div class="article">{$post.contents |noAutoescape}</div>
9
+  </div>
10
+{/foreach}
11
+<div id="relative-nav">
12
+  {if $prev} <a href="{$prev}">Previous</a> {/if}
13
+  {if $next} <a href="{$next}">Next</a> {/if}
14
+</div>
4
 {if $taglinks}
15
 {if $taglinks}
5
 <div id="tagsoup">
16
 <div id="tagsoup">
6
   <p>This blog covers
17
   <p>This blog covers
19
     {/foreach}
30
     {/foreach}
20
 </div>
31
 </div>
21
 {/if}
32
 {/if}
22
-<h1>{$title}</h1>
23
-{foreach $post in $posts}
24
-  <div class="article-meta">
25
-    <a class="article-title" href="{$post.url}">{$post.title}</a>
26
-    <div class="date"> posted on {$post.date}</div>
27
-    <div class="article">{$post.contents |noAutoescape}</div>
28
-  </div>
29
-{/foreach}
30
-<div id="relative-nav">
31
-  {if $prev} <a href="{$prev}">Previous</a> {/if}
32
-  {if $next} <a href="{$next}">Next</a> {/if}
33
-</div>
34
 {/template}
33
 {/template}