From 404a26e6a9be6785e45f52367f0068eaaa33b3bd Mon Sep 17 00:00:00 2001 From: jeffreytse Date: Fri, 25 Jun 2021 14:16:44 +0800 Subject: feat: support banner heading and subheading styles --- _includes/functions/get_banner.html | 11 +++++++++++ _includes/views/banner.html | 14 ++++++++++++++ _includes/views/post-header.html | 2 +- 3 files changed, 26 insertions(+), 1 deletion(-) (limited to '_includes') diff --git a/_includes/functions/get_banner.html b/_includes/functions/get_banner.html index acfb4f4..6d07f10 100644 --- a/_includes/functions/get_banner.html +++ b/_includes/functions/get_banner.html @@ -31,3 +31,14 @@ {% assign name = 'banner.min_height' %} {%- include functions.html func='get_value' -%} {% assign banner_min_height = return %} + +{%- include functions.html func='log' level='debug' msg='Get banner_heading_style value' -%} +{% assign name = 'banner.heading_style' %} +{%- include functions.html func='get_value' -%} +{% assign banner_heading_style = return %} + +{%- include functions.html func='log' level='debug' msg='Get banner_subheading_style value' -%} +{% assign name = 'banner.subheading_style' %} +{%- include functions.html func='get_value' -%} +{% assign banner_subheading_style = return %} + diff --git a/_includes/views/banner.html b/_includes/views/banner.html index 32bb3cd..f26d06f 100644 --- a/_includes/views/banner.html +++ b/_includes/views/banner.html @@ -49,6 +49,20 @@ } {% endif %} + {%- if banner_heading_style -%} + + {%- endif -%} + {%- if banner_subheading_style -%} + + {%- endif -%}
diff --git a/_includes/views/post-header.html b/_includes/views/post-header.html index e59fd91..d5e3db3 100644 --- a/_includes/views/post-header.html +++ b/_includes/views/post-header.html @@ -1,6 +1,6 @@

{{ heading | default: page.title | escape }}

-

{{ subheading | default: page.subtitle | escape }}

+

{{ subheading | default: page.subtitle | escape }}