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;
|
||||
.category-title-contents {
|
||||
max-width: 500px;
|
||||
padding: 40px 0;
|
||||
padding: 40px;
|
||||
h1 {
|
||||
text-transform: capitalize;
|
||||
}
|
||||
|
@ -17,8 +17,8 @@
|
||||
|
||||
if(/^\/c\//.test(path)) {
|
||||
const hideMobile = (!settings.show_mobile && this.site.mobileView) ? "true" : hideMobile;
|
||||
const subCat = (!settings.show_subcat && category.parentCategory) ? "true" : subCat;
|
||||
const noDesc = (settings.show_nodesc && !category.description_text) ? "true" : noDesc;
|
||||
const subCat = (!settings.show_subcategory && category.parentCategory) ? "true" : subCat;
|
||||
const noDesc = (settings.hide_if_no_description && !category.description_text) ? "true" : noDesc;
|
||||
|
||||
if(!isException && !noDesc && !subCat && !hideMobile) {
|
||||
$("body").addClass("category-header");
|
||||
|
@ -6,13 +6,13 @@ show_mobile:
|
||||
default: true
|
||||
description: 'Show banners on mobile'
|
||||
|
||||
show_subcat:
|
||||
show_subcategory:
|
||||
default: true
|
||||
description: 'Show banners for subcategories'
|
||||
|
||||
show_nodesc:
|
||||
default: false
|
||||
description: 'Hide banners if description is not set'
|
||||
hide_if_no_description:
|
||||
default: true
|
||||
description: 'Hide banners if category description is not set'
|
||||
|
||||
exceptions:
|
||||
default: ""
|
||||
|
Loading…
x
Reference in New Issue
Block a user