Repo for my website
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 lines
842 B

5 years ago
{{ define "main" }}
<main role="main" style="">
5 years ago
<div>
{{- if .Site.Params.Portrait.Path }}
{{- $img := imageConfig (printf "static/%s" .Site.Params.Portrait.Path) }}
5 years ago
<img src="{{ .Site.Params.Portrait.Path }}" class="circle" alt="{{ .Site.Params.Portrait.Alt }}"
width="{{ $img.Width }}" height="{{ $img.Height }}" style="max-width:{{ .Site.Params.Portrait.Size }}" />
{{- end }}
5 years ago
<h1>{{ .Site.Title }}</h1>
{{- with .Site.Params.homeSubtitle }}
<p>{{.}}</p>
{{- end }}
{{- with .Site.Params.social }}
<div class="socials">
{{ partial "social-icons.html" . }}
</div>
{{- end }}
<div class="spacer" style="max-height: 5vh; height: calc({{ .Site.Params.Portrait.Size }} / 2)"></div>
5 years ago
</div>
</main>
{{ end }}