diff options
author | Nguyễn Gia Phong <mcsinyx@disroot.org> | 2022-06-28 12:17:25 +0900 |
---|---|---|
committer | Nguyễn Gia Phong <mcsinyx@disroot.org> | 2022-06-28 12:17:25 +0900 |
commit | e405d3f244d074f00658e020795a90ec3f69add7 (patch) | |
tree | 6f83f87d024ec64596d87032dfe45e33d559f8b8 /templates/archive.html | |
parent | 4fa6f1621b406ce58b91a4ae9a58b392d78b7008 (diff) | |
download | phylactery-e405d3f244d074f00658e020795a90ec3f69add7.tar.gz |
Escape question marks in path
Fixes: https://todo.sr.ht/~cnx/phylactery/1
Diffstat (limited to 'templates/archive.html')
-rw-r--r-- | templates/archive.html | 4 |
1 files changed, 2 insertions, 2 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}} |