[www] menu padding behaviour changed
This commit is contained in:
1 parent
6fa1b2ec12
commit
67870d2705
6 files changed
+5
-10
No files matched your search
+1
-1
@@ -16,7 +16,7 @@ const config = require('../config')
|
||||
const defaultOptions = {
|
||||
commentsEnabled: false,
|
||||
showAuthor: false,
|
||||
menuPadding: true,
|
||||
menuPadding: false,
|
||||
}
|
||||
|
||||
const defaultMeta = {
|
||||
|
||||
@@ -120,7 +120,7 @@ async function renderArticle(id) {
|
||||
</div>
|
||||
)
|
||||
|
||||
return render(article.url, Component, getMeta(article), {commentsEnabled: true})
|
||||
return render(article.url, Component, getMeta(article), {commentsEnabled: true, menuPadding: true})
|
||||
}
|
||||
|
||||
exports.createArticleCardList = createArticleCardList
|
||||
|
||||
@@ -71,7 +71,7 @@ function getDocuments() {
|
||||
)
|
||||
|
||||
ctx.type = 'text/html'
|
||||
ctx.body = await render(path, Component, getDocumentsMeta())
|
||||
ctx.body = await render(path, Component, getDocumentsMeta(), {menuPadding: true})
|
||||
} else {
|
||||
ctx.status = 404
|
||||
}
|
||||
|
||||
@@ -80,7 +80,7 @@ function getGallery() {
|
||||
)
|
||||
|
||||
ctx.type = 'text/html'
|
||||
ctx.body = await render(path, Component, getMeta())
|
||||
ctx.body = await render(path, Component, getMeta(), {menuPadding: true})
|
||||
} else {
|
||||
ctx.status = 404
|
||||
}
|
||||
|
||||
@@ -36,6 +36,7 @@ module.exports = function () {
|
||||
path,
|
||||
getComponent(page),
|
||||
getPageMeta(page),
|
||||
{menuPadding: true},
|
||||
)
|
||||
} else {
|
||||
ctx.status = 404
|
||||
|
||||
@@ -19,14 +19,8 @@
|
||||
width: $content-thin;
|
||||
}
|
||||
|
||||
&.content--padding-top--double{
|
||||
padding-top: $double-margin;
|
||||
padding-bottom: $single-margin;
|
||||
}
|
||||
|
||||
&.content--padding-top--menu{
|
||||
padding-top: $menu-thickness;
|
||||
padding-bottom: $single-margin;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user