responses-item.html (1822B)
1 {{ $dateformat := .Date.Format "2006-01-02 15:04" }} 2 {{ $idslug := (print "date-" $dateformat "-") | urlize }} 3 {{ $author := ""}} 4 {{ if isset .Params.Destination "author" }} 5 {{ $author = print " by «" .Params.Destination.Author "»" }} 6 {{ end }} 7 {{ $title := print "In response to " "«" .Params.Destination.Title "»" $author }} 8 <div class="content responses h-entry" id={{ $idslug }}> 9 <div id="h-card" class="h-card u-author" hidden=""> 10 <data class="u-photo" value={{ "logo.png" | absURL }}></data> 11 <a class="p-name" href={{ .Permalink }}>{{ $title }}</a> 12 <a class="p-author" href={{ .Site.Params.MainSiteURL }} rel="author">{{ substr .Site.Params.Author 0 20 }}.</a> 13 <a class="u-email" href="mailto:{{ .Site.Params.Email }}">{{ .Site.Params.Email }}</a> 14 <a rel="syndication" class="u-syndication" href={{ .Permalink }}>{{ .Title }}</a> 15 <span class="p-locality">Jakarta</span>, <span class="p-country-name">Indonesia</span> 16 </div> 17 <p class="responses__title"> 18 <a data-goatcounter-click="cl-response-full" class="u-url" href={{ .Permalink }}> 19 <span> 20 <time title="{{ .Date.Format "Monday, 02 January 2006 on 15:04:05" }} GMT+7" class="responses__title__date dt-published" datetime="{{ .Date.Format "2006-01-02T15:04:05" }}+07:00"> 21 {{ .Date.Format "02 Jan 2006" }} 22 </time> 23 » 24 </span> 25 </a> 26 </p> 27 <div class="responses__content"> 28 <p class="responses__original"><a class="u-in-reply-to" href={{ .Params.Destination.Url }} rel="noopenner noreferrer nofollow">{{ $title }}</a></p> 29 <div class="e-content"> 30 {{ if eq ($.Scratch.Get "scope") "single" }} 31 {{ partial "components/content.html" .Content }} 32 {{ else }} 33 {{ partial "components/preview.html" .Content }} 34 {{ end }} 35 </div> 36 </div> 37 </div>