From 3fd97a789b18310e4ea5e6c860a92d27285cfa7c Mon Sep 17 00:00:00 2001 From: Duncan Mackenzie Date: Sat, 20 Apr 2019 13:19:52 -0700 Subject: [PATCH 1/2] Adding media query for reduced motion to turn off animation in that case --- assets/scss/_logo.scss | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/assets/scss/_logo.scss b/assets/scss/_logo.scss index 126006b..af2d192 100644 --- a/assets/scss/_logo.scss +++ b/assets/scss/_logo.scss @@ -25,6 +25,13 @@ border-radius: 1px; animation: cursor 1s infinite; } + + @media (prefers-reduced-motion: reduce) { + &__cursor { + animation: none; + } + } + } @keyframes cursor { From c10530bcaf4f69802c55f5effb6cfbda0ed57a1c Mon Sep 17 00:00:00 2001 From: Duncan Mackenzie Date: Sat, 20 Apr 2019 13:40:30 -0700 Subject: [PATCH 2/2] switching to RelPermalink instead of Permalink for JS and CSS files --- layouts/partials/head.html | 2 +- layouts/partials/javascript.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/layouts/partials/head.html b/layouts/partials/head.html index 6f41e1b..2636acb 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -25,7 +25,7 @@ {{ $options := (dict "targetPath" "main.css" "outputStyle" "compressed" "enableSourceMap" true) }} {{ $style := resources.Get "scss/main.scss" | resources.ToCSS $options | resources.Minify | resources.Fingerprint }} - + {{ range $val := $.Site.Params.customCSS }} {{ if gt (len $val) 0 }} diff --git a/layouts/partials/javascript.html b/layouts/partials/javascript.html index 540b633..7cff6d1 100644 --- a/layouts/partials/javascript.html +++ b/layouts/partials/javascript.html @@ -3,7 +3,7 @@ {{ $prism := resources.Get "js/prism.js" }} {{ $theme := resources.Get "js/theme.js" }} {{ $secureJS := slice $main $menu $prism $theme | resources.Concat "bundle.js" | resources.Minify | resources.Fingerprint "sha512" }} - + {{- if .Site.GoogleAnalytics }}