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"}}