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" }} {{ define "main" }}
<main> <section>
<section class="article-header">
{{if not .IsHome }} {{ with .Resources.GetMatch "avatar" }}
<img class="shadow featured" src="{{ .RelPermalink }}" alt="{{ .Params.alt }}"/>
{{ end }}
<h1>{{ .Params.name }}</h1> <h1>{{ .Params.name }}</h1>
<p class="center-text">{{ .Params.bio }}</p> <p>{{ .Params.bio }}</p>
<a class="small-text" href={{ .Params.projects}}>Projects</a> <a class="small-text" href={{ .Params.projects}}>Projects</a>
<span> | </span> <span> | </span>
<a class="small-text" href="mailto:{{ .Params.email }}">{{ .Params.email}}</a> <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> </section>
</main>
<section> <section>

Loading…
Cancel
Save