diff options
Diffstat (limited to 'layouts/_default/about.html')
-rw-r--r-- | layouts/_default/about.html | 37 |
1 files changed, 1 insertions, 36 deletions
diff --git a/layouts/_default/about.html b/layouts/_default/about.html index 3aaa361..a88a9b1 100644 --- a/layouts/_default/about.html +++ b/layouts/_default/about.html @@ -1,40 +1,5 @@ {{ define "hero" }} - <div - style="background: linear-gradient( rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.15) ){{ with resources.Get (index .Params.images 0) }} - , url('{{ .RelPermalink }}') - {{ end }}; background-position: center;" - class="pv5" - > - <div id="hero" class="mw7 center ph2 near-white lh-copy tc"> - {{ $avatar := index .Params.images 1 }} - {{ if hasPrefix $avatar "http" }} - {{ $avatar = resources.GetRemote $avatar }} - {{ else }} - {{ $avatar = resources.Get $avatar }} - {{ end }} - {{ with $avatar }} - <img src="{{ .RelPermalink }}" class="br-100 w5" /> - {{ end }} - <h1 class="f1 mv1"> - {{ .Title }} - </h1> - - {{ with .Params.Subtitle }} - <h2 class="f3 fw3 mv1"> - {{ . | markdownify }} - </h2> - {{ end }} - - - <div class="f2 mt3"> - {{ if .Params.personal }} - {{ partial "social_links" .Site.Author }} - {{ else }} - {{ partial "social_links" .Site.Params }} - {{ end }} - </div> - </div> - </div> + {{ partial "hero.html" . }} {{ end }} {{ define "main" }} |