From b83c3ac2377deab05c7c80fb9c06718971e2bfb9 Mon Sep 17 00:00:00 2001 From: jeffreytse Date: Fri, 10 Jul 2020 22:30:32 +0800 Subject: chore: remove random banner --- _includes/views/banner.html | 39 +++------------------------------------ 1 file changed, 3 insertions(+), 36 deletions(-) diff --git a/_includes/views/banner.html b/_includes/views/banner.html index b62181a..76e35a6 100644 --- a/_includes/views/banner.html +++ b/_includes/views/banner.html @@ -19,20 +19,9 @@ {% assign subheading = return %} {% if banner %} - - {% assign auto_banner = true %} - {% assign array = banner | split: '/' %} - {% assign protocol = array[0] %} - - {% if array.size > 1 and (protocol == '' or protocol == 'http:' or protocol == 'https:') %} - {% assign auto_banner = false %} - {% endif %} -
- {%- if auto_banner == false -%} -
- {%- endif -%} +
@@ -48,36 +37,14 @@

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

-

+

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

+
{%- endif -%}
- - {%- if auto_banner -%} - - {%- assign selector = ".page-banner-img" -%} - - {%- 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 -%} - - {%- assign zoom = 1.5 -%} - {%- include extensions/trianglify.html -%} - - {%- endif -%} - {%- endif -%} -- cgit v1.2.3