| <article class="blog doc"> |
| |
| <header> |
| {{ if .Params.categories }} |
| {{ range .Params.categories }}<a class="category" href="{{ "/categories/" | relURL }}{{ . | urlize }}/">{{ upper . }}</a>{{ end }} |
| {{ end }} |
| <h1><a href="{{.Page.Permalink}}">{{ .Title }}</a></h1> |
| </header> |
| <div class="post"> |
| <aside> |
| <div class="summary">{{ .Params.preview }}</div> |
| <time itemprop="published" datetime="{{ dateFormat "2006-01-02" .PublishDate }}" title="{{ dateFormat "Monday, January 2, 2006" .PublishDate }}">{{ dateFormat "January 2, 2006" .PublishDate }}</time> |
| <p>by <span rel="author">{{ .Params.author }}</span></p> |
| <p> |
| {{ if .PrevInSection }} |
| <a class="arrow prev" href="{{ .PrevInSection.RelPermalink }}" title="Previous post: {{ .PrevInSection.Title }}">❮</a> |
| {{ end }} |
| {{ if .NextInSection }} |
| <a class="arrow next" href="{{ .NextInSection.RelPermalink }}" title="Next post: {{ .NextInSection.Title }}">❯</a> |
| {{ end }} |
| </p> |
| </aside> |
| <div class="post-content"> |
| {{ $featured := (.Resources.ByType "image").GetMatch "*featured*" }} |
| {{ with $featured }} |
| {{ $featured := .Resize "800x q95 Gaussian" }} |
| <img class="featured" alt="Blog post featured image" src="{{ $featured.RelPermalink }}" width="{{ $featured.Width }}" height="{{ $featured.Height }}"> |
| {{ end }} |
| {{ .Content }} |
| </div> |
| </div> |
| |
| </article> |