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/head.pug | |
parent | 07c8263929fb5b46082d5c3b20a11edfb59a2b25 (diff) | |
download | server-1b9565fa2eeb2635f2233161f920963bf514b524.tar.gz |
Use img srcset for cover images of differing resolutions.
Diffstat (limited to 'views/head.pug')
-rw-r--r-- | views/head.pug | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/views/head.pug b/views/head.pug index 294a911..d5350ac 100644 --- a/views/head.pug +++ b/views/head.pug @@ -12,6 +12,10 @@ link(rel="preload" as="font" type="font/woff2" crossorigin href="/fonts/SourceSa //- link(rel="preload" as="font" type="font/woff2" crossorigin href="/fonts/Dingbats.woff2") //- link(rel="preload" as="font" type="font/woff2" crossorigin href="/fonts/NotoEmoji.woff2") +mixin gamecover(title_id) + a(href="/info/"+title_id) + img(src=`/${title_id}/cover.1x.jpg` srcset=`/${title_id}/cover.2x.jpg 2x`) + mixin forumpost(row,show_buttons) .post .head |