Alexander Avery
9 months ago
1 changed files with 33 additions and 22 deletions
@ -1,25 +1,36 @@ |
|||||
{{ define "main" }} |
{{ define "main" }} |
||||
<section> |
<main> |
||||
|
<section class="article-header"> |
||||
{{if not .IsHome }} |
{{if not .IsHome }} |
||||
<div class="article-meta"> |
|
||||
<h1 class="center-text">{{ .Params.name }}</h1> |
<h1>{{ .Params.name }}</h1> |
||||
<p class="center-text">{{ .Params.bio }}</p> |
<p class="center-text">{{ .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> |
<div class="break"></div> |
||||
{{ with .Resources.GetMatch "avatar" }} |
{{ with .Resources.GetMatch "avatar" }} |
||||
<img class="shadow small-image" src="{{ .RelPermalink }}" alt="{{ .Params.alt }}"/> |
<img class="shadow small-image featured" src="{{ .RelPermalink }}" alt="{{ .Params.alt }}"/> |
||||
{{ end }} |
{{ end }} |
||||
</div> |
|
||||
{{ end }} |
{{ end }} |
||||
|
|
||||
{{ .Content }} |
{{ .Content }} |
||||
|
|
||||
|
</section> |
||||
|
</main> |
||||
|
|
||||
|
<section> |
||||
<h2>Posts:</h2> |
<h2>Posts:</h2> |
||||
</section> |
</section> |
||||
|
|
||||
<section class="article-list"> |
<section class="article-list"> |
||||
{{ range .Data.Pages }} |
{{ range .Data.Pages }} |
||||
{{ partial "article-card.html" . }} |
{{ partial "article-card.html" . }} |
||||
{{ end }} |
{{ end }} |
||||
</section> |
</section> |
||||
|
|
||||
{{ end }} |
{{ end }} |
||||
|
|
||||
|
Loading…
Reference in new issue