diff options
author | Austin Gebauer <agebauer@hashicorp.com> | 2020-04-05 05:21:02 +0300 |
---|---|---|
committer | Austin Gebauer <agebauer@hashicorp.com> | 2020-04-05 05:21:02 +0300 |
commit | 9876e9e37ae3378a54a2f62e5eb521653f73714e (patch) | |
tree | 0a08e14396398a6d3d6826ebf70713436a25f528 | |
parent | cd2a694c0db6040468cdb2e6995d83be6300dd0f (diff) |
feat: adds default image for index page; feat: minify build
-rw-r--r-- | layouts/partials/header.html | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/layouts/partials/header.html b/layouts/partials/header.html index a39c728..0c72c6c 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -3,7 +3,12 @@ <div class="col-sm-4 col-12 text-sm-right text-center pt-sm-4"> <a href="/" class="text-decoration-none"> <img id="home-image" class="rounded-circle" - src="{{ .Site.Params.home_image }}" /> + {{ if (fileExists (printf "static/%s" (strings.TrimPrefix "/" .Site.Params.home_image))) }} + src="{{ .Site.Params.home_image }}" + {{ else }} + src="https://cdn.clipart.email/83451492858686fbb12fdf8df0957c94_lil-silhouettes-by-lil-squid_481-512.png" + {{ end }} + /> </a> </div> <div class="col-sm-8 col-12 text-sm-left text-center"> |