]> git.xolatile.top Git - emil-3chen.org.git/commitdiff
--
authorEmil Williams <emilemilemil@cock.li>
Thu, 8 May 2025 03:35:09 +0000 (21:35 -0600)
committerEmil Williams <emilemilemil@cock.li>
Thu, 8 May 2025 03:35:09 +0000 (21:35 -0600)
perl/Triple.pm
tt/index

index 224eb640db888ca94068ec0cf574a6577588f593..f53b8e34a2df60775455924e1c1538610bde0e13 100644 (file)
@@ -95,7 +95,7 @@ sub init {
             my @set = @{$page{$key}};
             next if $set[0] != STATIC_PAGE;
             syslog("info", "Marking Static '$key'");
-            $vars->{"uri"} = "$key";
+            $vars->{"uri"} = "$key";
             my $temporary;
             $template->process($set[1], $vars, \$temporary) or syslog("info", $template->error());
             $static{$key} = $temporary;
index e69de29bb2d1d6434b8b29ae775ad8c2e48c5391..296271e12759df84e3e3b3865d2bfc47ab1d6ea2 100644 (file)
--- a/tt/index
+++ b/tt/index
@@ -0,0 +1,24 @@
+<!DOCTYPE html>
+<html>
+[% INCLUDE header %]
+<body>
+<div id="index">
+<div id="title">[% sitename %]</div>
+<div id="boards">
+  <table>
+    <tr>
+      <th>Board</th>
+      <th>Desc.</th>
+    </tr>
+    [% FOREACH board IN boards %]
+    <tr>
+      <td><a href="[% board %]">[% titles.${board} %]</a></td>
+      <td>[% descriptions.${board} %]</td>
+    </tr>
+    [% END %]
+  </table>
+</div>
+[% INCLUDE footer %]
+</div>
+</body>
+</html>