diff options
author | jeffreytse <jeffreytse.mail@gmail.com> | 2020-07-10 22:30:32 +0800 |
---|---|---|
committer | jeffreytse <jeffreytse.mail@gmail.com> | 2020-07-10 22:30:32 +0800 |
commit | b83c3ac2377deab05c7c80fb9c06718971e2bfb9 (patch) | |
tree | a5b23ecb06ae06318b7832e0047d0c0ab611a500 | |
parent | 9204cde3538fb8f1fc3defa6c3453f5cfcfb85fe (diff) |
chore: remove random banner
-rw-r--r-- | _includes/views/banner.html | 39 |
1 files 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 %} - <section class="page-banner"> <div class="page-banner-img"> - {%- if auto_banner == false -%} - <div style="background-image: url({{ banner }})"></div> - {%- endif -%} + <div style="background-image: url({{ banner }})"></div> </div> <div class="wrapper"> <div class="page-banner-inner"> @@ -48,36 +37,14 @@ <h1 class="page-banner-heading"> {{ heading | default: page.title | escape }} </h1> - <h3 class="page-banner-subheading"> + <h2 class="page-banner-subheading"> {{ subheading | default: page.subtitle | escape }} - </h3> + </h2> </div> {%- endif -%} </div> </div> </section> - - {%- 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 -%} |