Alexander Avery
9 months ago
2 changed files with 24 additions and 42 deletions
@ -1,32 +1,25 @@ |
|||||
{{ define "main" }} |
{{ define "main" }} |
||||
<div class="article-meta"> |
|
||||
<h1 class="center-text">{{ .Title | markdownify }}</h1> |
|
||||
{{ $authors := .Params.authors | default (slice .Site.Params.defaultAuthor) }} |
|
||||
<a class="center-text" href={{ printf "/%s/%s" "authors" (index $authors 0 | urlize) }}><h2 class="center-text">{{ index $authors 0 }}</h2></a> |
|
||||
{{ if .Params.date }}<h2 class="small-text">{{ .Date.Format "Mon | Jan 2, 2006" }}</h2>{{ end }} |
|
||||
{{ range (.GetTerms "tags") }} |
|
||||
<a class="small-text" href="{{ .Permalink }}">{{ .LinkTitle }}</a> |
|
||||
{{ end}} |
|
||||
{{ partial "responsive-image.html" (dict "context" . "class" "shadow large-image") }} |
|
||||
</div> |
|
||||
|
|
||||
{{ if .Params.toc }} |
{{ partial "article-meta.html" . }} |
||||
{{ .TableOfContents }} |
|
||||
{{ end }} |
{{ if .Params.toc }} |
||||
<div class="content-wrapper"> |
{{ .TableOfContents }} |
||||
<main> |
{{ end }} |
||||
{{ .Content }} |
|
||||
<p> |
<div class="content-wrapper"> |
||||
{{ with .NextInSection }} |
<main> |
||||
<b>Next: </b><a href="{{ .Permalink }}">{{ .Title | markdownify }}</a> |
{{ .Content }} |
||||
<br> |
<p> |
||||
{{ end }} |
{{ with .NextInSection }} |
||||
{{ with .PrevInSection }} |
<b>Next: </b><a href="{{ .Permalink }}">{{ .Title | markdownify }}</a> |
||||
<b>Previous: </b><a href="{{ .Permalink }}">{{ .Title | markdownify }}</a> |
<br> |
||||
<br> |
{{ end }} |
||||
{{ end }} |
{{ with .PrevInSection }} |
||||
<b><a href="/"> >> Home</a></b> |
<b>Previous: </b><a href="{{ .Permalink }}">{{ .Title | markdownify }}</a> |
||||
</p> |
<br> |
||||
</main> |
{{ end }} |
||||
</div> |
<b><a href="/"> >> Home</a></b> |
||||
|
</p> |
||||
|
</main> |
||||
|
</div> |
||||
{{ end }} |
{{ end }} |
||||
|
Loading…
Reference in new issue