Pārlūkot izejas kodu

Base template cleanup, flesh out config sitenav handling.

Brit Butler 12 gadi atpakaļ
vecāks
revīzija
e57f350cb4
1 mainītis faili ar 10 papildinājumiem un 6 dzēšanām
  1. 10 6
      themes/hyde/base.tmpl

+ 10 - 6
themes/hyde/base.tmpl

@@ -4,25 +4,29 @@
4 4
 <!doctype html>{\n}
5 5
 <html>
6 6
   <head>
7
-    <title>{$title}</title>
7
+    <title>{$config.title}</title>
8 8
     <meta http-equiv="content-type" content="application/xhtml+xml; charset=UTF-8" />
9 9
     <link href="http://fonts.googleapis.com/css?family=Vollkorn:regular,italic,bold,bolditalic" rel="stylesheet" type="text/css" />
10 10
     <link href="http://fonts.googleapis.com/css?family=Inconsolata" rel="stylesheet" type="text/css" />
11
-    <link href= "{$siteroot}/css/style.css" rel="stylesheet" type="text/css" />
12
-    <link rel="alternate" href="{$siteroot}/rss.xml" type="application/rss+xml" />
11
+    <link href= "{$config.domain}/css/style.css" rel="stylesheet" type="text/css" />
12
+    <link rel="alternate" href="{$config.domain}/rss.xml" type="application/rss+xml" />
13 13
     {if $headInject} {$headInject |noAutoescape} {/if}
14 14
   </head>
15 15
   <body>
16 16
     <div class="navigation">
17
-      {$navigation |noAutoescape}
18
-      <a href="{$siteroot}">{$title}</a>
17
+      {foreach $link in $config.sitenav}
18
+        <a href="{$link.url}">{$link.name}</a>
19
+        {sp} | {sp}
20
+      {/foreach}
21
+      <a href="{$config.domain}">{$config.title}</a>
19 22
     </div>
20 23
     <div id="content">
21 24
       {$content |noAutoescape}
22 25
     </div>
23 26
     {if $bodyInject} {$bodyInject |noAutoescape} {/if}
24 27
     <div class="fineprint">
25
-      Unless otherwise credited all material {if $license} {$license} {else} © {/if} {$credits}
28
+      Unless otherwise credited all material {if $config.license} {$config.license} {else} © {/if}
29
+      {$config.credits}
26 30
     </div>
27 31
   </body>
28 32
 </html>