diff options
author | Robert Austin <rob@jugglerdigital.com> | 2021-12-26 07:11:51 +0300 |
---|---|---|
committer | Robert Austin <rob@jugglerdigital.com> | 2021-12-26 07:11:51 +0300 |
commit | 8b97c4ab49722c35f0595b92ec9424dc14f693f0 (patch) | |
tree | 81f6487ebccbd019cce5bdfa3837046ad46d5d93 | |
parent | e4c2b7f9f7f111d99baa3a9dad672d869e088507 (diff) |
update logo and add configv1.1.0
-rw-r--r-- | exampleSite/config.toml | 9 | ||||
-rw-r--r-- | layouts/partials/hamburger.html | 2 | ||||
-rw-r--r-- | layouts/partials/header.html | 4 | ||||
-rw-r--r-- | layouts/partials/hero-image-fullscreen.html | 2 |
4 files changed, 13 insertions, 4 deletions
diff --git a/exampleSite/config.toml b/exampleSite/config.toml index b170d24..d401f45 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -12,6 +12,15 @@ theme = "hugo-hero-theme" [params] google_analytics_id="" + [params.logo] + mobile = "images/logo-mobile.svg" + mobile_height = "36px" + mobile_width = "36px" + desktop = "images/logo.svg" + desktop_height = "29px" + desktop_width = "217px" + alt = "Hugo Hero" + [params.homepage_meta_tags] meta_description = "Hero is a multipurpose Hugo theme with fullscreen hero images and page sections. It contains content types for a business or portfolio site." meta_og_title = "Hugo Hero Theme" diff --git a/layouts/partials/hamburger.html b/layouts/partials/hamburger.html index a6d7de9..b0141ad 100644 --- a/layouts/partials/hamburger.html +++ b/layouts/partials/hamburger.html @@ -1,4 +1,4 @@ -<button id="toggle-main-menu-mobile" class="hamburger hamburger--slider" type="button"> +<button id="toggle-main-menu-mobile" class="hamburger hamburger--slider" type="button" aria-label="Toggle Menu"> <span class="hamburger-box"> <span class="hamburger-inner"></span> </span> diff --git a/layouts/partials/header.html b/layouts/partials/header.html index 7bae80e..d481209 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -1,10 +1,10 @@ <div class='header header-absolute'> <div class="container"> <div class="logo"> - <a href="{{ .Site.BaseURL }}"><img alt="Figurit Homepage" src="{{ .Site.BaseURL }}images/logo.svg" /></a> + <a href="{{ .Site.BaseURL }}"><img height={{ .Site.Params.logo.desktop_height }} width={{ .Site.Params.logo.mobile_width }} alt="{{ .Site.Params.logo.alt }}" src="{{ .Site.Params.logo.desktop | relURL }}" /></a> </div> <div class="logo-mobile"> - <a href="{{ .Site.BaseURL }}"><img alt="Figurit Homepage" src="{{ .Site.BaseURL }}images/logo-mobile.svg" /></a> + <a href="{{ .Site.BaseURL }}"><img height={{ .Site.Params.logo.mobile_height }} width={{ .Site.Params.logo.mobile_width }} alt="{{ .Site.Params.logo.alt }}" src="{{ .Site.Params.logo.mobile | relURL }}" /></a> </div> {{ partial "main-menu.html" . }} {{ partial "hamburger.html" . }} diff --git a/layouts/partials/hero-image-fullscreen.html b/layouts/partials/hero-image-fullscreen.html index 949736b..02360b0 100644 --- a/layouts/partials/hero-image-fullscreen.html +++ b/layouts/partials/hero-image-fullscreen.html @@ -7,7 +7,7 @@ </div> <div class="hero-down"> <a href="#home"> - <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="60" height="60"> + <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="60" height="60" alt="Scroll Down"> <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 898.75 533.751" transform="matrix(.69 0 0 .69 15.5 15.5)" fill="#fff"> <path |