Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/austingebauer/devise.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAustin Gebauer <agebauer@hashicorp.com>2020-04-05 05:21:02 +0300
committerAustin Gebauer <agebauer@hashicorp.com>2020-04-05 05:21:02 +0300
commit9876e9e37ae3378a54a2f62e5eb521653f73714e (patch)
tree0a08e14396398a6d3d6826ebf70713436a25f528
parentcd2a694c0db6040468cdb2e6995d83be6300dd0f (diff)
feat: adds default image for index page; feat: minify build
-rw-r--r--layouts/partials/header.html7
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">