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

Loading…
Cancel
Save