11{{ define "main" }}
22< div class ="container ">
3- < section class ="section hero ">
4- < div class ="hero-info ">
5- < h1 class ="hero-title "> {{ .Title }}</ h1 >
6- {{ with .Params.subtitle }}
7- < p class ="hero-subtitle "> {{. | markdownify}}</ p >
8- {{ end }}
9- < div class ="btn-group ">
10- {{ $p_cta := "" }}
11- {{ with .Params.primary_cta_page }}
12- {{ $p_cta = . }}
13- {{ end }}
14- {{ $s_cta := "" }}
15- {{ with .Params.secondary_cta_page }}
16- {{ $s_cta = . }}
17- {{ end }}
18- < a class ="btn-primary "
19- href ="{{ with $p_cta }}{{ . | relURL }}{{ else }}{{ "about " | relURL }}{{ end }}">
20- {{ if $p_cta }}{{ with .Site.GetPage $p_cta }}{{ .LinkTitle }}{{ end }}{{ else }}About{{ end }}
21- </ a >
22- < a class ="btn-secondary "
23- href ="{{ with $s_cta }}{{ . | relURL }}{{ else }}{{ "projects " | relURL }}{{ end }}">
24- {{ if $s_cta }}{{ with .Site.GetPage $s_cta }}{{ .LinkTitle }}{{ end }}{{ else }}Projects{{ end }}
25- </ a >
26- </ div >
27- </ div >
28- < div class ="hero-owner ">
29- {{ $avatar := .Site.Params.avatar }}
30- {{ $default_image := "images/default.png" }}
31- {{ $image := "" }}
32- {{ with $avatar }}
33- {{ $image = resources.Get $avatar }}
34- {{ else }}
35- {{ $image = resources.Get $default_image }}
36- {{ end }}
37- {{ if eq .Site.Params.grayscale_avatar true }}
38- {{ $image = $image | images.Filter (images.Grayscale) }}
39- {{ end }}
40- < img class ="hero-avatar "
41- src ="{{ $image.RelPermalink }} "
42- width ="{{- $image.Width -}} " height ="{{- $image.Height -}} "
43- alt ="Headshot or avatar belonging to the website owner "/>
44- {{ if eq .Site.Params.home_hero_socials true }}
45- {{ partial "general/social-links.html" . }}
46- {{ end }}
47- </ div >
48- </ section >
49- {{/* Shortcodes from page content */}}
50- {{ .Content }}
3+ < section class ="section hero ">
4+ < div class ="hero-info ">
5+ < h1 class ="hero-title "> {{ .Title }}</ h1 >
6+ {{ with .Params.subtitle }}
7+ < p class ="hero-subtitle "> {{. | markdownify}}</ p >
8+ {{ end }}
9+ <!-- <div class="btn-group">
10+ {{ $p_cta := "" }}
11+ {{ with .Params.primary_cta_page }}
12+ {{ $p_cta = . }}
13+ {{ end }}
14+ {{ $s_cta := "" }}
15+ {{ with .Params.secondary_cta_page }}
16+ {{ $s_cta = . }}
17+ {{ end }}
18+ <a class="btn-primary"
19+ href="{{ with $p_cta }}{{ . | relURL }}{{ else }}{{ "about" | relURL }}{{ end }}">
20+ {{ if $p_cta }}{{ with .Site.GetPage $p_cta }}{{ .LinkTitle }}{{ end }}{{ else }}About{{ end }}
21+ </a>
22+ <a class="btn-secondary"
23+ href="{{ with $s_cta }}{{ . | relURL }}{{ else }}{{ "projects" | relURL }}{{ end }}">
24+ {{ if $s_cta }}{{ with .Site.GetPage $s_cta }}{{ .LinkTitle }}{{ end }}{{ else }}Projects{{ end }}
25+ </a>
26+ </div> -->
27+ </ div >
28+ < div class ="hero-owner ">
29+ {{ $avatar := .Site.Params.avatar }}
30+ {{ $default_image := "images/default.png" }}
31+ {{ $image := "" }}
32+ {{ with $avatar }}
33+ {{ $image = resources.Get $avatar }}
34+ {{ else }}
35+ {{ $image = resources.Get $default_image }}
36+ {{ end }}
37+ {{ if eq .Site.Params.grayscale_avatar true }}
38+ {{ $image = $image | images.Filter (images.Grayscale) }}
39+ {{ end }}
40+ < img class ="hero-avatar " src ="{{ $image.RelPermalink }} " width ="{{- $image.Width -}} "
41+ height ="{{- $image.Height -}} " alt ="Headshot or avatar belonging to the website owner " />
42+ {{ if eq .Site.Params.home_hero_socials true }}
43+ {{ partial "general/social-links.html" . }}
44+ {{ end }}
45+ </ div >
46+ </ section >
47+ {{/* Shortcodes from page content */}}
48+ {{ .Content }}
5149</ div >
5250{{ end }}
0 commit comments