Explorar el Código

single page interview layout

master
Sean Dockray hace 1 año
padre
commit
65e78c7f9e
Se han modificado 1 ficheros con 22 adiciones y 0 borrados
  1. +22
    -0
      layouts/interview/single.html

+ 22
- 0
layouts/interview/single.html Ver fichero

@@ -0,0 +1,22 @@
{{ define "singlebody" }}
{{- partialCached "header.html" . .RelPermalink -}}
<h1>{{ .Title }}</h1>
{{- partialCached "singlebody.html" . .RelPermalink -}}
<div class="content">
{{ $date := dateFormat "2 January, 2006" ($.Param "date") }}
{{ $audio := ($.Param "podcast_file") }}
<p>{{ with $.Param "Description" }}{{ . | $.RenderString }}{{ end }}</p>
<span class="soundcite" data-url="{{ $audio | safeURL }}">Interview conducted on {{ $date }}</span>
{{ with $.Param "transcript" }}
{{ $transcript := (printf "[Transcript](%s)" . ) }}
<p>{{ $transcript | $.RenderString }}</p>
{{ end }}
{{ .Content }}
</div>
{{ end }}

Cargando…
Cancelar
Guardar