mirror of
https://git.adityakumar.xyz/hugo-theme-introduction.git
synced 2024-11-13 00:39:45 +00:00
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:
parent
15c9ac3274
commit
a4cb2a5de4
1 changed files with 13 additions and 10 deletions
|
@ -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" }}
|
||||
|
|
Loading…
Reference in a new issue