Made avatar optional. It will no longer render if it is commented out in the config. (#10)

Excellent. Thank you!
This commit is contained in:
Antonio Lanfranchi 2017-07-24 16:48:37 -07:00 committed by Vicky
parent 15c9ac3274
commit a4cb2a5de4

View file

@ -57,8 +57,11 @@
<h2 class="title is-2 has-text-centered">About</h2>
<div class="columns"><!-- Avatar and about.md side by side except mobile -->
<div class="column is-one-third has-text-centered"><img class="img-responsive avatar" src="/{{ .Site.Params.avatar }}" alt="My profile picture.">
{{ if .Site.Params.avatar }}
<div class="column is-one-third has-text-centered">
<img class="img-responsive avatar" src="/{{ .Site.Params.avatar }}" alt="My profile picture.">
</div>
{{ end }}
<div class="column markdown">
{{ range .Data.Pages }}
{{if eq .Title "about" }}