From ce43bb9a6aab445286afac54e5048b1547efa63d Mon Sep 17 00:00:00 2001 From: Jeffrey Tse Date: Fri, 20 Sep 2019 12:40:14 +0800 Subject: update: header transparent, animation, banner, etc --- _config.yml | 7 ++- _includes/extensions/trianglify.html | 13 +++-- _includes/views/banner.html | 15 +++--- _includes/views/header.html | 59 ++++++++++++++++++++++- _sass/yat.scss | 2 +- _sass/yat/_layout.scss | 93 +++++++++++++++++++++++++++++------- 6 files changed, 156 insertions(+), 33 deletions(-) diff --git a/_config.yml b/_config.yml index ba070b4..9e0f722 100644 --- a/_config.yml +++ b/_config.yml @@ -23,13 +23,16 @@ yat: date_format: "%b %-d, %Y" # If you want more debug log, you can set true -# debug: true +# debug: false + +# If you want transparent header, you can set true +# header_transparent: false # Google analytics # google_analytics: [Tracking ID] # If you want to generate website sitemap, you can set true -# sitemap: true +# sitemap: false # Translate languges # langs refer to https://cloud.google.com/translate/docs/languages diff --git a/_includes/extensions/trianglify.html b/_includes/extensions/trianglify.html index 22003dc..c11458e 100644 --- a/_includes/extensions/trianglify.html +++ b/_includes/extensions/trianglify.html @@ -8,16 +8,19 @@ diff --git a/_includes/views/banner.html b/_includes/views/banner.html index baa8465..45ea62c 100644 --- a/_includes/views/banner.html +++ b/_includes/views/banner.html @@ -44,12 +44,14 @@ {%- else -%} -

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

-

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

+
+

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

+

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

+
{%- endif -%}
@@ -72,6 +74,7 @@ {%- endif -%} + {%- assign zoom = 1.5 -%} {%- include extensions/trianglify.html -%} {%- endif -%} diff --git a/_includes/views/header.html b/_includes/views/header.html index 06a20ed..10637c2 100644 --- a/_includes/views/header.html +++ b/_includes/views/header.html @@ -1,4 +1,19 @@ -