diff options
Diffstat (limited to 'layouts/page.html')
| -rw-r--r-- | layouts/page.html | 38 |
1 files changed, 6 insertions, 32 deletions
diff --git a/layouts/page.html b/layouts/page.html index 8fb2903..44073b2 100644 --- a/layouts/page.html +++ b/layouts/page.html @@ -1,35 +1,9 @@ {{ define "main" }} - <article class="page-page"> - <div class="container-narrow"> - <h1>{{ .Title }}</h1> - <div class="post-card-meta" style="margin-bottom: 2rem;"> - <span>{{ dateFormat "Jan 2, 2006" .Date }}</span> - {{ if .Params.type }}<span class="post-type-badge {{ .Params.type }}">{{ .Params.type }}</span>{{ end }} - </div> - - <div class="post-content"> - {{ .Content }} - </div> - </div> - </article> - - {{ if eq .Type "is" }} - <div class="container-narrow" style="margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--border);"> - <nav class="page-nav"> - <h3 style="margin-bottom: 1rem;">Other pages</h3> - <ul style="list-style: none; margin: 0;"> - {{ $section := .Site.GetPage "/is" }} - {{ if $section }} - {{ range $section.Pages }} - <li style="margin-bottom: 0.5rem;"> - <a href="{{ .RelPermalink }}" {{ if eq $.RelPermalink .RelPermalink }}class="active"{{ end }}> - {{ .Title }} - </a> - </li> - {{ end }} - {{ end }} - </ul> - </nav> - </div> + {{ if eq .Params.type "photo" }} + {{ partial "photo-article.html" . }} + {{ else if eq .Section "is" }} + {{ partial "static-page.html" . }} + {{ else }} + {{ partial "article-single.html" . }} {{ end }} {{ end }} |
