ybbond

My site. The main domain
Log | Files | Refs | README | LICENSE | CC-LICENSE

summary.html (1256B)


      1 <article class="summary h-entry">
      2   {{ $permalink := .Permalink }}
      3   {{ $slug := .Slug }}
      4   {{ $title := .Title }}
      5   {{ with .Params.Image.Src }}
      6     {{ $filename := . | safeURL }}
      7     {{ $original := printf "%s%s" $permalink $filename }}
      8   {{ end }}
      9   <a data-goatcounter-click="{{ $slug }}" href="{{ $permalink }}" class="u-url no-outline">
     10     <h2 class="summary__title p-name">
     11       {{ $title }}
     12     </h2>
     13   </a>
     14   <time title="{{ .Date.Format "Monday, 02 January 2006 on 15:04:05" }} GMT+7">
     15     {{ .Date.Format "02 Jan 2006" }}
     16   </time>
     17   <span> - </span>
     18   {{ range .Params.tags }}
     19     {{- partial "components/tagitem.html" . -}}
     20   {{ end }}
     21 <!--   {{ with .Params.Image.Src }}
     22       <amp-img class="summary__image"
     23           src="{{ . }}"
     24           layout="responsive"
     25           width="1280"
     26           height="720"
     27           object-fit="contain"
     28           alt="{{ $.Title }}"></amp-img>
     29   {{ end }}
     30  -->
     31   {{ if .Params.Description }}
     32     <p> {{ .Params.Description | safeHTML }} </p>
     33     <a data-goatcounter-click="rmore-{{ $slug }}" href="{{ $permalink }}" class="no-outline">
     34       <p>Read More ยป</p>
     35     </a>
     36   {{ else }}
     37     <div class="content">
     38       {{ partial "components/summary-seo.html" .Content }}
     39     </div>
     40   {{ end }}
     41 </article>