commit 07f8ef452254c19c0c6ec4119f08084f683bdfe4
Author: tri <tri@thac.loan>
Date:   Mon Oct 13 18:52:33 2025 +0700

    add footer

diff --git a/sample/_loa/style.css b/sample/_loa/style.css
index f860f1a..3e0c59f 100644
--- a/sample/_loa/style.css
+++ b/sample/_loa/style.css
@@ -57,6 +57,16 @@ p + ul {
   margin-top: -1rem;
 }
 
+footer {
+  margin-top: 3rem;
+  text-align: right;
+  border-top: 2px solid var(--fg);
+}
+
+a[target="_blank"]:after {
+  content: "↗";
+}
+
 @media (prefers-color-scheme: dark) {
   :root {
     --font-family: "Noto Sans", sans-serif;
diff --git a/sample/first/index.html b/sample/first/index.html
index fcbf4d3..30ed9be 100644
--- a/sample/first/index.html
+++ b/sample/first/index.html
@@ -106,5 +106,9 @@ Browse commits from main history
 <p>You should have received a copy of the GNU Affero General Public License along with this program (agpl-3.0.txt). If not, see <a href="https://www.gnu.org/licenses/">https://www.gnu.org/licenses/</a>.</p>
 </section>
     </main>
+  <footer>
+    <div><a href="/atom.xml">rss feed</a></div>
+    <div>made with <a href="https://khoe.thac.loan/_/loa/" target="_blank">loa</a></div>
+  </footer>
   </body>
 </html>
diff --git a/sample/index.html b/sample/index.html
index 5ddf7dd..5f879d6 100644
--- a/sample/index.html
+++ b/sample/index.html
@@ -30,5 +30,9 @@ Loa Sample Site</h1>
 </li>
 </ul>
     </main>
+  <footer>
+    <div><a href="/atom.xml">rss feed</a></div>
+    <div>made with <a href="https://khoe.thac.loan/_/loa/" target="_blank">loa</a></div>
+  </footer>
   </body>
 </html>
diff --git a/sample/second/index.html b/sample/second/index.html
index a775e13..baadf48 100644
--- a/sample/second/index.html
+++ b/sample/second/index.html
@@ -24,5 +24,9 @@
 </span>
 <h1 class="post--title">Second post</h1><p>Look ma, second post!</p>
     </main>
+  <footer>
+    <div><a href="/atom.xml">rss feed</a></div>
+    <div>made with <a href="https://khoe.thac.loan/_/loa/" target="_blank">loa</a></div>
+  </footer>
   </body>
 </html>
diff --git a/src/static/style.css b/src/static/style.css
index f860f1a..3e0c59f 100644
--- a/src/static/style.css
+++ b/src/static/style.css
@@ -57,6 +57,16 @@ p + ul {
   margin-top: -1rem;
 }
 
+footer {
+  margin-top: 3rem;
+  text-align: right;
+  border-top: 2px solid var(--fg);
+}
+
+a[target="_blank"]:after {
+  content: "↗";
+}
+
 @media (prefers-color-scheme: dark) {
   :root {
     --font-family: "Noto Sans", sans-serif;
diff --git a/src/templates.zig b/src/templates.zig
index 38a5958..af4ff26 100644
--- a/src/templates.zig
+++ b/src/templates.zig
@@ -51,10 +51,14 @@ pub fn base_start(arena: mem.Allocator, writer: *Io.Writer, args: struct {
 }
 
 pub fn base_end(writer: *Io.Writer) !void {
-    try writer.writeAll(
+    try writer.print(
         \\    </main>
+        \\  <footer>
+        \\    <div><a href="/{s}">rss feed</a></div>
+        \\    <div>made with <a href="https://khoe.thac.loan/_/loa/" target="_blank">loa</a></div>
+        \\  </footer>
         \\  </body>
         \\</html>
         \\
-    );
+    , .{feed.feed_path});
 }