Browse Source

simplify author page layout

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

26
layouts/authors/list.html

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

Loading…
Cancel
Save