[www] update
This commit is contained in:
1 parent
69f9c1344e
commit
1efd23c403
5 files changed
+21
-13
No files matched your search
@@ -30,7 +30,7 @@ function getAlbum() {
|
||||
)
|
||||
|
||||
ctx.type = 'text/html'
|
||||
ctx.body = await render(path, Component, getMeta(album), {commentsEnabled: true})
|
||||
ctx.body = await render(path, Component, getMeta(album), {commentsEnabled: true, menuPadding: true})
|
||||
} else {
|
||||
ctx.status = 404
|
||||
}
|
||||
|
||||
@@ -29,7 +29,7 @@ const AlbumImage = ({data, alt}) => (
|
||||
src={data.src}
|
||||
width={data.width * m}
|
||||
height={data.height * m}
|
||||
srcSet={data.set.map(({url, density}) => `${url} ${density}x`)}
|
||||
srcSet={(data.set || []).map(({url, density}) => `${url} ${density}x`)}
|
||||
/>
|
||||
</picture>
|
||||
)
|
||||
|
||||
Reference in new issue
Block a user