From 43b8a2b4d939cae81c932f6136a8714a404319d3 Mon Sep 17 00:00:00 2001 From: Sodbileg Gansukh Date: Wed, 27 Sep 2023 22:10:23 +0800 Subject: [PATCH] Added custom header text setting to Landing and Search styles --- package.json | 6 ++++++ partials/components/header-content.hbs | 4 ++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 6806184..c89c5df 100644 --- a/package.json +++ b/package.json @@ -143,6 +143,12 @@ "default": "Landing", "group": "homepage" }, + "header_text": { + "type": "text", + "group": "homepage", + "description": "Defaults to site description when empty", + "visibility": "header_style:[Landing, Search]" + }, "background_image": { "type": "boolean", "default": true, diff --git a/partials/components/header-content.hbs b/partials/components/header-content.hbs index ca2923d..ea2df92 100644 --- a/partials/components/header-content.hbs +++ b/partials/components/header-content.hbs @@ -63,13 +63,13 @@ {{!-- Landing layout --}} {{#match headerStyle "Landing"}} -

{{#if @custom.signup_heading}}{{@custom.signup_heading}}{{else}}{{@site.description}}{{/if}}

+

{{#if @custom.header_text}}{{@custom.header_text}}{{else}}{{@site.description}}{{/if}}

{{> "email-subscription"}} {{/match}} {{!-- Search layout --}} {{#match headerStyle "Search"}} -

{{#if @custom.signup_heading}}{{@custom.signup_heading}}{{else}}{{@site.description}}{{/if}}

+

{{#if @custom.header_text}}{{@custom.header_text}}{{else}}{{@site.description}}{{/if}}

{{> "icons/search"}}