Sfoglia il codice sorgente

single page interview layout

master
Sean Dockray 3 anni fa
parent
commit
65e78c7f9e
1 ha cambiato i file con 22 aggiunte e 0 eliminazioni
  1. +22
    -0
      layouts/interview/single.html

+ 22
- 0
layouts/interview/single.html Vedi File

@@ -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 }}

Caricamento…
Annulla
Salva