portfolio/themes/naej-ananke/layouts/_default/single.html

62 lines
2.0 KiB
HTML
Raw Normal View History

2020-07-07 22:23:48 +00:00
{{/* used to show posts */}}
2020-07-05 19:29:18 +00:00
{{ define "header" }}
{{/* We can override any block in the baseof file be defining it in the template */}}
{{ partial "page-header.html" . }}
{{ end }}
{{ define "main" }}
{{ $section := .Site.GetPage "section" .Section }}
2020-07-07 08:58:39 +00:00
<article class="flex flex-wrap center light-gray flex-column tc flex-align:center">
2020-07-05 19:29:18 +00:00
<header class="mt4 w-100">
<aside class="instapaper_ignoref b helvetica tracked">
{{/*
CurrentSection allows us to use the section title instead of inferring from the folder.
https://gohugo.io/variables/page/#section-variables-and-methods
*/}}
{{with .CurrentSection.Title }}{{. | upper }}{{end}}
</aside>
2020-07-07 08:58:39 +00:00
{{/* {{ partial "social-share.html" . }} */}}
<h1 class="f1 avenir mt3 mb1">
2020-07-05 19:29:18 +00:00
{{- .Title -}}
</h1>
{{ with .Params.author }}
<p class="tracked">
By <strong>
{{ if reflect.IsSlice . }}
{{ delimit . ", " | markdownify }}
{{else}}
{{ . | markdownify }}
{{ end }}
</strong>
</p>
{{ end }}
{{/* Hugo uses Go's date formatting is set by example. Here are two formats */}}
2020-07-07 08:58:39 +00:00
<time class="f6 mv4 dib tracked" datetime="{{ .Date.Format "2006-01-02T15:04:05Z07:00" }} ">
2020-07-05 19:29:18 +00:00
{{- .Date.Format "January 2, 2006" -}}
</time>
</header>
2020-07-07 08:58:39 +00:00
<div class="flex nested-copy-line-height lh-copy {{ $.Param "post_content_classes" | default "serif"}} f4 nested-links nested-img pr4-l flex-column tc flex-align:center">
2020-07-05 19:29:18 +00:00
{{- .Content -}}
{{- partial "tags.html" . -}}
2020-07-07 08:58:39 +00:00
<div class="mt6 instapaper_ignoref flex">
2020-07-05 19:29:18 +00:00
{{ if .Site.DisqusShortname }}
{{ template "_internal/disqus.html" . }}
{{ end }}
{{ if .Site.Params.commentoEnable }}
{{- partial "commento.html" . -}}
{{ end }}
</div>
2020-07-07 08:58:39 +00:00
2020-07-05 19:29:18 +00:00
</div>
<aside class="w-30-l mt6-l">
{{- partial "menu-contextual.html" . -}}
</aside>
</article>
{{ end }}