acoeur/themes/acoeur/layouts/_default/single.html

25 lines
960 B
HTML

{{ define "main" }}
{{ $section := .Site.GetPage "section" .Section }}
<article class="flex-l flex-wrap justify-between mw8 center ph3">
<div class="nested-copy-line-height lh-copy {{ $.Param "post_content_classes" | default "serif"}} f4 nested-links {{ $.Param "text_color" | default "mid-gray" }} {{ cond (eq $.Site.Language.LanguageDirection "rtl") "pl4-l" "pr4-l" }} w-two-thirds-l">
<div id="content">{{- .Content -}}</div>
{{- partial "ac_choices.html" . -}}
{{- partial "tags.html" . -}}
</div>
<aside id="actions" class="w-30-l mt6-l">
{{- partial "menu-contextual.html" . -}}
{{ $user := eq .Section "users" }}
{{ if not $user }}
<button class="br-pill f6 link dim pa3 mb2 dib white bg-dark-gray pointer">
<label for="cover">{{ T (print .Section ".cover") }}</label>
</button>
<input id="cover" name="cover" type="file" data-section="{{ .Section }}"/>
{{ end }}
</aside>
</article>
{{ end }}