From 74dfcb269f1650d004937a6cc7516bed58101ad4 Mon Sep 17 00:00:00 2001 From: vimux Date: Sat, 3 Nov 2018 10:42:19 -0400 Subject: [PATCH] Use `no-js -> js` script instead of Modernizr --- layouts/_default/baseof.html | 3 ++- static/css/main.css | 8 ++++---- static/js/modernizr.js | 3 --- 3 files changed, 6 insertions(+), 8 deletions(-) delete mode 100644 static/js/modernizr.js diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index b0cc70d..20d34be 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -1,11 +1,12 @@ - + {{ if not .IsHome }}{{ .Title }} | {{ end }}{{ .Site.Title }} + {{ with .Site.Params.author }}{{ end }} {{ if .Site.Params.opengraph }}{{ template "_internal/opengraph.html" . }}{{ end }} diff --git a/static/css/main.css b/static/css/main.css index 15beb6f..035dda7 100644 --- a/static/css/main.css +++ b/static/css/main.css @@ -532,11 +532,11 @@ mark { list-style: none; } -.classlist .main-nav__list { +.js .main-nav__list { display: none; } -.classlist .main-nav__btn { +.js .main-nav__btn { display: block; } @@ -556,11 +556,11 @@ mark { background-color: #444; } - .classlist .main-nav__list { + .js .main-nav__list { display: block; } - .classlist .main-nav__btn { + .js .main-nav__btn { display: none; } diff --git a/static/js/modernizr.js b/static/js/modernizr.js deleted file mode 100644 index ca7d1d9..0000000 --- a/static/js/modernizr.js +++ /dev/null @@ -1,3 +0,0 @@ -/* eslint-disable */ -/* modernizr 3.6.0 | MIT | https://modernizr.com/download/?-classlist-setclasses */ -!function(n,e,s){function o(n,e){return typeof n===e}function a(){var n,e,s,a,i,f,r;for(var c in l)if(l.hasOwnProperty(c)){if(n=[],e=l[c],e.name&&(n.push(e.name.toLowerCase()),e.options&&e.options.aliases&&e.options.aliases.length))for(s=0;s