diff options
author | jeffreytse <jeffreytse.mail@gmail.com> | 2021-06-25 14:16:44 +0800 |
---|---|---|
committer | jeffreytse <jeffreytse.mail@gmail.com> | 2021-06-25 14:16:44 +0800 |
commit | 404a26e6a9be6785e45f52367f0068eaaa33b3bd (patch) | |
tree | f394dc0d70ac5aac075aba6859499af712623f26 /_includes/views/banner.html | |
parent | 245fe2a0479819543e3f71499daada138c43377c (diff) |
feat: support banner heading and subheading styles
Diffstat (limited to '_includes/views/banner.html')
-rw-r--r-- | _includes/views/banner.html | 14 |
1 files changed, 14 insertions, 0 deletions
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 @@ } </style> {% endif %} + {%- if banner_heading_style -%} + <style> + html .page-banner .page-banner-inner > *:first-child > *:nth-child(1) { + {{ banner_heading_style }} + } + </style> + {%- endif -%} + {%- if banner_subheading_style -%} + <style> + html .page-banner .page-banner-inner > *:first-child > *:nth-child(2) { + {{ banner_subheading_style }} + } + </style> + {%- endif -%} <section class="page-banner"> <div class="page-banner-img"> <div style="background-image: url({{ banner_image }})"></div> |