This repository has been archived on 2023-01-31. You can view files and clone it, but cannot push or open issues or pull requests.
sophie-lewis-hugo/themes/sophie-lewis/layouts/_default/single.html

21 lines
587 B
HTML
Raw Normal View History

{{ define "main" }}
{{ $content_class := $.Page.Params.title | lower }}
{{ if eq (.Title | lower) "about" }}
<div class="columns">
<div class="column is-one-third">
<div class="headshot">
<img src='{{relURL "img/example_headshot-masterchief.png"}}'>
</div>
</div>
<div class="column">
<div id="content" class='section {{ $content_class }}'>
{{.Content}}
</div>
</div>
</div>
{{ else }}
<div id="content" class='section {{ $content_class }}'>
{{.Content}}
</div>
{{ end }}
{{ end }}