Browse Source

simplify author page layout

Alexander Avery 5 months ago
parent
commit
c5e8614005
  1. 18
      layouts/authors/list.html

18
layouts/authors/list.html

@ -1,24 +1,18 @@
{{ define "main" }}
<main>
<section class="article-header">
{{if not .IsHome }}
<section>
{{ with .Resources.GetMatch "avatar" }}
<img class="shadow featured" src="{{ .RelPermalink }}" alt="{{ .Params.alt }}"/>
{{ end }}
<h1>{{ .Params.name }}</h1>
<p class="center-text">{{ .Params.bio }}</p>
<p>{{ .Params.bio }}</p>
<a class="small-text" href={{ .Params.projects}}>Projects</a>
<span> | </span>
<a class="small-text" href="mailto:{{ .Params.email }}">{{ .Params.email}}</a>
<div class="break"></div>
{{ with .Resources.GetMatch "avatar" }}
<img class="shadow small-image featured" src="{{ .RelPermalink }}" alt="{{ .Params.alt }}"/>
{{ end }}
{{ end }}
</section>
</main>
<section>

Loading…
Cancel
Save