summary refs log tree commit diff homepage
path: root/templates
diff options
context:
space:
mode:
Diffstat (limited to 'templates')
-rw-r--r--templates/archive.html4
-rw-r--r--templates/directory.html2
2 files changed, 3 insertions, 3 deletions
diff --git a/templates/archive.html b/templates/archive.html
index fbd2f7a..ee5d2b3 100644
--- a/templates/archive.html
+++ b/templates/archive.html
@@ -3,10 +3,10 @@
 <title>{{.Title}}</title>
 <body>
   <nav>{{if .Prev}}
-    <a id=prev href="{{.Prev}}">PREV</a>{{else}}
+    <a id=prev href="{{.Prev | escape}}">PREV</a>{{else}}
     <a id=prev></a>{{end}}
     <a id=up href=.>UP</a>{{if .Next}}
-    <a id=next href="{{.Next}}">NEXT</a>{{else}}
+    <a id=next href="{{.Next | escape}}">NEXT</a>{{else}}
     <a id=next></a>{{end}}
   </nav>
   <main>{{range .Entries}}
diff --git a/templates/directory.html b/templates/directory.html
index 6fc35fa..a04637e 100644
--- a/templates/directory.html
+++ b/templates/directory.html
@@ -4,7 +4,7 @@
 <body>
   <main>
     <a href=../><p>../</p></a>{{range .Entries}}
-    <a href="./{{.}}"><p>{{.}}</p></a>{{end}}
+    <a href="./{{. | escape}}"><p>{{.}}</p></a>{{end}}
   </main>
 </body>
 </html>