2021-08-25 15:58:19 +00:00
|
|
|
{{ define "main" }}
|
|
|
|
{{ $content_class := $.Page.Params.title | lower }}
|
|
|
|
{{ if eq (.Title | lower) "about" }}
|
|
|
|
<div class="column is-one-third">
|
|
|
|
<div class="headshot">
|
2022-12-27 00:31:14 +00:00
|
|
|
{{ $img := relURL "img/headshot_example.png" }}
|
|
|
|
{{ if isset $.Site.Params.about "headshot" }}
|
2021-08-26 14:09:09 +00:00
|
|
|
{{ if fileExists ( printf "static/img/%s" $.Site.Params.about.headshot ) }}
|
2021-08-25 16:29:31 +00:00
|
|
|
{{ $img := relURL ( printf "img/%s" $.Site.Params.about.headshot )}}
|
|
|
|
<img src='{{ $img }}'>
|
|
|
|
{{ else }}
|
|
|
|
<img src='{{ $img }}'>
|
|
|
|
{{ end }}
|
|
|
|
{{ else }}
|
|
|
|
<img src='{{ $img }}'>
|
|
|
|
{{ end }}
|
2021-08-25 15:58:19 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
2022-12-23 09:12:05 +00:00
|
|
|
<div id="content" class='section {{ $content_class }}'>
|
|
|
|
{{.Content}}
|
2021-08-25 15:58:19 +00:00
|
|
|
</div>
|
|
|
|
{{ else }}
|
|
|
|
<div id="content" class='section {{ $content_class }}'>
|
|
|
|
{{.Content}}
|
|
|
|
</div>
|
|
|
|
{{ end }}
|
2021-08-25 22:55:50 +00:00
|
|
|
{{ end }}
|