diff options
author | Tor Andersson <tor@ccxvii.net> | 2021-12-04 18:55:49 +0100 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2021-12-04 18:57:24 +0100 |
commit | 1b9565fa2eeb2635f2233161f920963bf514b524 (patch) | |
tree | 63b1623f9575c8453d5348a9d9eeaa54e34e472d /views/index.pug | |
parent | 07c8263929fb5b46082d5c3b20a11edfb59a2b25 (diff) | |
download | server-1b9565fa2eeb2635f2233161f920963bf514b524.tar.gz |
Use img srcset for cover images of differing resolutions.
Diffstat (limited to 'views/index.pug')
-rw-r--r-- | views/index.pug | 6 |
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. |