summaryrefslogtreecommitdiff
path: root/views/index.pug
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2021-12-04 18:55:49 +0100
committerTor Andersson <tor@ccxvii.net>2021-12-04 18:57:24 +0100
commit1b9565fa2eeb2635f2233161f920963bf514b524 (patch)
tree63b1623f9575c8453d5348a9d9eeaa54e34e472d /views/index.pug
parent07c8263929fb5b46082d5c3b20a11edfb59a2b25 (diff)
downloadserver-1b9565fa2eeb2635f2233161f920963bf514b524.tar.gz
Use img srcset for cover images of differing resolutions.
Diffstat (limited to 'views/index.pug')
-rw-r--r--views/index.pug6
1 files changed, 3 insertions, 3 deletions
diff --git a/views/index.pug b/views/index.pug
index ba915b0..0a2262b 100644
--- a/views/index.pug
+++ b/views/index.pug
@@ -38,10 +38,10 @@ html
div.list
each title in titles
unless title.is_hidden
+ - let cover = "/" + title.title_id + "/cover"
div
- a(href="/info/"+title.title_id)
- img(src="/"+title.title_id+"/cover.jpg")
- | #{title.title_name}
+ +gamecover(title.title_id)
+ | #{title.title_name}
p: a(href="/games") List of all open and active games.