diff options
author | Nguyễn Gia Phong <mcsinyx@disroot.org> | 2022-06-28 17:49:14 +0900 |
---|---|---|
committer | Nguyễn Gia Phong <mcsinyx@disroot.org> | 2022-06-28 17:49:14 +0900 |
commit | a2abfc596965111c28ea43d9ab986732692e022f (patch) | |
tree | 5e60fe2d301a9e9e98af33ed953037db852e7da9 /templates/archive.html | |
parent | 5ba68fae053ccabc3161ee4f80963ac0c47ddaf2 (diff) | |
download | phylactery-a2abfc596965111c28ea43d9ab986732692e022f.tar.gz |
Write response as soon as data is ready
Previously the entire archive had to be read before the template is executed, thus large archives takes forever to render from slow backing FS.
Diffstat (limited to 'templates/archive.html')
-rw-r--r-- | templates/archive.html | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/templates/archive.html b/templates/archive.html deleted file mode 100644 index 619a5bc..0000000 --- a/templates/archive.html +++ /dev/null @@ -1,15 +0,0 @@ -{{template "base-head.html" -}} -<link rel=stylesheet href=/static/archive.css> -<title>{{.Title}}</title> -<body> - <nav>{{if .Prev}} - <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 | escape}}">NEXT</a>{{else}} - <a id=next></a>{{end}} - </nav> - <main>{{range .Entries}} - <img src="?entry={{.Index}}" alt="{{.Name}}">{{end}} - </main> -{{template "base-foot.html" -}} |