mirror of
https://github.com/discourse/discourse-category-banners
synced 2025-03-09 13:02:25 +00:00
setting names, css adjustment
This commit is contained in:
parent
02f0f05e90
commit
7f440532fc
@ -6,7 +6,7 @@
|
|||||||
justify-content: center;
|
justify-content: center;
|
||||||
.category-title-contents {
|
.category-title-contents {
|
||||||
max-width: 500px;
|
max-width: 500px;
|
||||||
padding: 40px 0;
|
padding: 40px;
|
||||||
h1 {
|
h1 {
|
||||||
text-transform: capitalize;
|
text-transform: capitalize;
|
||||||
}
|
}
|
||||||
|
@ -17,8 +17,8 @@
|
|||||||
|
|
||||||
if(/^\/c\//.test(path)) {
|
if(/^\/c\//.test(path)) {
|
||||||
const hideMobile = (!settings.show_mobile && this.site.mobileView) ? "true" : hideMobile;
|
const hideMobile = (!settings.show_mobile && this.site.mobileView) ? "true" : hideMobile;
|
||||||
const subCat = (!settings.show_subcat && category.parentCategory) ? "true" : subCat;
|
const subCat = (!settings.show_subcategory && category.parentCategory) ? "true" : subCat;
|
||||||
const noDesc = (settings.show_nodesc && !category.description_text) ? "true" : noDesc;
|
const noDesc = (settings.hide_if_no_description && !category.description_text) ? "true" : noDesc;
|
||||||
|
|
||||||
if(!isException && !noDesc && !subCat && !hideMobile) {
|
if(!isException && !noDesc && !subCat && !hideMobile) {
|
||||||
$("body").addClass("category-header");
|
$("body").addClass("category-header");
|
||||||
|
@ -6,13 +6,13 @@ show_mobile:
|
|||||||
default: true
|
default: true
|
||||||
description: 'Show banners on mobile'
|
description: 'Show banners on mobile'
|
||||||
|
|
||||||
show_subcat:
|
show_subcategory:
|
||||||
default: true
|
default: true
|
||||||
description: 'Show banners for subcategories'
|
description: 'Show banners for subcategories'
|
||||||
|
|
||||||
show_nodesc:
|
hide_if_no_description:
|
||||||
default: false
|
default: true
|
||||||
description: 'Hide banners if description is not set'
|
description: 'Hide banners if category description is not set'
|
||||||
|
|
||||||
exceptions:
|
exceptions:
|
||||||
default: ""
|
default: ""
|
||||||
|
Loading…
x
Reference in New Issue
Block a user