[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 = {
|
const defaultOptions = {
|
||||||
commentsEnabled: false,
|
commentsEnabled: false,
|
||||||
showAuthor: false,
|
showAuthor: false,
|
||||||
menuPadding: true,
|
menuPadding: false,
|
||||||
}
|
}
|
||||||
|
|
||||||
const defaultMeta = {
|
const defaultMeta = {
|
||||||
|
|||||||
@@ -120,7 +120,7 @@ async function renderArticle(id) {
|
|||||||
</div>
|
</div>
|
||||||
)
|
)
|
||||||
|
|
||||||
return render(article.url, Component, getMeta(article), {commentsEnabled: true})
|
return render(article.url, Component, getMeta(article), {commentsEnabled: true, menuPadding: true})
|
||||||
}
|
}
|
||||||
|
|
||||||
exports.createArticleCardList = createArticleCardList
|
exports.createArticleCardList = createArticleCardList
|
||||||
|
|||||||
@@ -71,7 +71,7 @@ function getDocuments() {
|
|||||||
)
|
)
|
||||||
|
|
||||||
ctx.type = 'text/html'
|
ctx.type = 'text/html'
|
||||||
ctx.body = await render(path, Component, getDocumentsMeta())
|
ctx.body = await render(path, Component, getDocumentsMeta(), {menuPadding: true})
|
||||||
} else {
|
} else {
|
||||||
ctx.status = 404
|
ctx.status = 404
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -80,7 +80,7 @@ function getGallery() {
|
|||||||
)
|
)
|
||||||
|
|
||||||
ctx.type = 'text/html'
|
ctx.type = 'text/html'
|
||||||
ctx.body = await render(path, Component, getMeta())
|
ctx.body = await render(path, Component, getMeta(), {menuPadding: true})
|
||||||
} else {
|
} else {
|
||||||
ctx.status = 404
|
ctx.status = 404
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -36,6 +36,7 @@ module.exports = function () {
|
|||||||
path,
|
path,
|
||||||
getComponent(page),
|
getComponent(page),
|
||||||
getPageMeta(page),
|
getPageMeta(page),
|
||||||
|
{menuPadding: true},
|
||||||
)
|
)
|
||||||
} else {
|
} else {
|
||||||
ctx.status = 404
|
ctx.status = 404
|
||||||
|
|||||||
@@ -19,14 +19,8 @@
|
|||||||
width: $content-thin;
|
width: $content-thin;
|
||||||
}
|
}
|
||||||
|
|
||||||
&.content--padding-top--double{
|
|
||||||
padding-top: $double-margin;
|
|
||||||
padding-bottom: $single-margin;
|
|
||||||
}
|
|
||||||
|
|
||||||
&.content--padding-top--menu{
|
&.content--padding-top--menu{
|
||||||
padding-top: $menu-thickness;
|
padding-top: $menu-thickness;
|
||||||
padding-bottom: $single-margin;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user