From 714d3ca91cc5e77e1e81a87af2fa12466c6e8806 Mon Sep 17 00:00:00 2001 From: Bud Parr Date: Mon, 12 Nov 2018 09:29:05 -0500 Subject: [PATCH] Fix minification issues * Move Gopher SVG from partial to image In minification, Gopher gets wonked. This may also help build times with minification. fixes #604 * Add margin around external link icon In minification the links got pushed up against the nav item. ref #604 * Move Hugo logo in footer/hero to image from partial This may help with build-time when using minification. * Move gopher image from site to theme static folder I put this in the wrong directory in commit: 0e2f2f8f33588f826f26c3b3a581f1014a3d41ac * Add alt tag copy to Gopher image --- themes/gohugoioTheme/layouts/404.html | 2 +- themes/gohugoioTheme/layouts/partials/hero.html | 2 +- .../layouts/partials/home-page-sections/installation.html | 2 +- themes/gohugoioTheme/layouts/partials/site-footer.html | 2 +- themes/gohugoioTheme/layouts/partials/site-nav.html | 4 +++- .../{layouts/partials/svg => static/images}/gopher-hero.svg | 0 .../partials/svg => static/images}/hugo-logo-wide.svg | 0 7 files changed, 7 insertions(+), 5 deletions(-) rename themes/gohugoioTheme/{layouts/partials/svg => static/images}/gopher-hero.svg (100%) rename themes/gohugoioTheme/{layouts/partials/svg => static/images}/hugo-logo-wide.svg (100%) diff --git a/themes/gohugoioTheme/layouts/404.html b/themes/gohugoioTheme/layouts/404.html index 156db1452..9b0866d18 100644 --- a/themes/gohugoioTheme/layouts/404.html +++ b/themes/gohugoioTheme/layouts/404.html @@ -2,7 +2,7 @@

The page you're looking for doesn't exist. Perhaps you'd like to gopher something else? Sorry.

- {{ partial "svg/gopher-hero.svg" . }} +
{{ .Content }} diff --git a/themes/gohugoioTheme/layouts/partials/hero.html b/themes/gohugoioTheme/layouts/partials/hero.html index 18710141b..9e7240433 100644 --- a/themes/gohugoioTheme/layouts/partials/hero.html +++ b/themes/gohugoioTheme/layouts/partials/hero.html @@ -1,7 +1,7 @@