diff --git a/common/common.scss b/common/common.scss index 099cf98..904ebb6 100644 --- a/common/common.scss +++ b/common/common.scss @@ -6,7 +6,7 @@ justify-content: center; .category-title-contents { max-width: 500px; - padding: 40px 0; + padding: 40px; h1 { text-transform: capitalize; } diff --git a/common/header.html b/common/header.html index 4302a57..ae9c9ce 100644 --- a/common/header.html +++ b/common/header.html @@ -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"); diff --git a/settings.yml b/settings.yml index 6a6613f..2a655e6 100644 --- a/settings.yml +++ b/settings.yml @@ -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: ""