summaryrefslogtreecommitdiff
path: root/_includes/views/banner.html
diff options
context:
space:
mode:
authorJeffrey Tse <jeffreytse.mail@gmail.com>2019-09-19 14:14:23 +0800
committerJeffrey Tse <jeffreytse.mail@gmail.com>2019-09-19 14:14:23 +0800
commitfc7e421ae280d7bb99d689d0ef740f3d0398ee26 (patch)
tree51983f52a46bcaf38c3deb86e9511b89036c9bfc /_includes/views/banner.html
parent563c82dd5201bef76f5a9fb683c097bc9127d001 (diff)
update: adjust header brand favicon, banner, etc
Diffstat (limited to '_includes/views/banner.html')
-rw-r--r--_includes/views/banner.html18
1 files changed, 16 insertions, 2 deletions
diff --git a/_includes/views/banner.html b/_includes/views/banner.html
index 7878997..baa8465 100644
--- a/_includes/views/banner.html
+++ b/_includes/views/banner.html
@@ -21,7 +21,7 @@
{% if banner %}
{% assign auto_banner = true %}
- {% assign array = banner | split: '//' %}
+ {% assign array = banner | split: '/' %}
{% assign protocol = array[0] %}
{% if array.size > 1 and (protocol == '' or protocol == 'http:' or protocol == 'https:') %}
@@ -57,9 +57,23 @@
</section>
{%- if auto_banner -%}
+
{%- assign selector = ".page-banner-img" -%}
- {%- assign seed = page.id | append: '-seed-' | append: banner -%}
+
+ {%- if banner == "default" -%}
+
+ {%- assign heading = page.heading | default: page.title | escape -%}
+ {%- assign subheading = page.subheading | default: page.subtitle | escape -%}
+ {%- assign seed = page.date | append: heading | append: subheading -%}
+
+ {%- else -%}
+
+ {%- assign seed = 'theme-' | append: banner -%}
+
+ {%- endif -%}
+
{%- include extensions/trianglify.html -%}
+
{%- endif -%}
{%- endif -%}