Browse Source

format author layout

master
Alexander Avery 3 months ago
parent
commit
48fc714a76
  1. 55
      layouts/authors/list.html

55
layouts/authors/list.html

@ -1,25 +1,36 @@
{{ define "main" }}
<section>
{{if not .IsHome }}
<div class="article-meta">
<h1 class="center-text">{{ .Params.name }}</h1>
<p class="center-text">{{ .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" src="{{ .RelPermalink }}" alt="{{ .Params.alt }}"/>
{{ end }}
</div>
{{ end }}
{{ .Content }}
<h2>Posts:</h2>
</section>
<section class="article-list">
{{ range .Data.Pages }}
{{ partial "article-card.html" . }}
{{ end }}
</section>
<main>
<section class="article-header">
{{if not .IsHome }}
<h1>{{ .Params.name }}</h1>
<p class="center-text">{{ .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 }}
{{ .Content }}
</section>
</main>
<section>
<h2>Posts:</h2>
</section>
<section class="article-list">
{{ range .Data.Pages }}
{{ partial "article-card.html" . }}
{{ end }}
</section>
{{ end }}

Loading…
Cancel
Save