renamed theme and first modifications
This commit is contained in:
58
themes/naej-ananke/layouts/_default/single.html
Normal file
58
themes/naej-ananke/layouts/_default/single.html
Normal file
@@ -0,0 +1,58 @@
|
||||
{{ define "header" }}
|
||||
{{/* We can override any block in the baseof file be defining it in the template */}}
|
||||
{{ partial "page-header.html" . }}
|
||||
{{ end }}
|
||||
{{/* used to show posts */}}
|
||||
{{ define "main" }}
|
||||
{{ $section := .Site.GetPage "section" .Section }}
|
||||
<article class="flex flex-wrap center light-gray flex-column tc flex-align:center">
|
||||
<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>
|
||||
{{/* {{ partial "social-share.html" . }} */}}
|
||||
<h1 class="f1 avenir mt3 mb1">
|
||||
{{- .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 */}}
|
||||
<time class="f6 mv4 dib tracked" datetime="{{ .Date.Format "2006-01-02T15:04:05Z07:00" }} ">
|
||||
{{- .Date.Format "January 2, 2006" -}}
|
||||
</time>
|
||||
|
||||
</header>
|
||||
<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">
|
||||
{{- .Content -}}
|
||||
{{- partial "tags.html" . -}}
|
||||
|
||||
<div class="mt6 instapaper_ignoref flex">
|
||||
{{ if .Site.DisqusShortname }}
|
||||
{{ template "_internal/disqus.html" . }}
|
||||
{{ end }}
|
||||
{{ if .Site.Params.commentoEnable }}
|
||||
{{- partial "commento.html" . -}}
|
||||
{{ end }}
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<aside class="w-30-l mt6-l">
|
||||
{{- partial "menu-contextual.html" . -}}
|
||||
</aside>
|
||||
|
||||
</article>
|
||||
{{ end }}
|
Reference in New Issue
Block a user