ybbond

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

notes-item.html (1627B)


      1 {{ $dateformat := .Date.Format "2006-01-02 15:04" }}
      2 {{ $idslug := (print "date-" $dateformat "-") | urlize }}
      3 <div class="content notes h-entry" id={{ $idslug }}>
      4   <div id="h-card" class="hcard" hidden="">
      5     {{ $permalink := .Permalink }}
      6     {{ $title := .Title }}
      7     {{ with .Params.Image.Src }}
      8       {{ $filename := . | safeURL }}
      9       {{ $original := printf "%s%s" $permalink $filename }}
     10       <img class="u-photo" hidden="" src={{ $original }} alt="Illustration of {{ $title }}" />
     11     {{ end }}
     12     <a class="p-author h-card" href={{ .Site.Params.MainSiteURL }} rel="author">{{ substr .Site.Params.Author 0 20 }}.</a>
     13     <br>
     14     <a class="u-email" href="mailto:{{ .Site.Params.Email }}">{{ .Site.Params.Email }}</a>
     15     <br>
     16     <a rel="syndication" class="u-syndication" href={{ .Permalink }}>{{ .Title }}</a>
     17     <br>
     18     <span class="p-locality">Jakarta</span>, <span class="p-country-name">Indonesia</span>
     19     <br>
     20     <a class="p-category" href={{ "notes/" | absURL }}>notes</a>
     21   </div>
     22   <p class="notes__title">
     23     <span>
     24       <time title="{{ .Date.Format "Monday, 02 January 2006 on 15:04:05" }} GMT+7" class="notes__title__date dt-published" datetime="{{ .Date.Format "2006-01-02T15:04:05" }}+07:00">
     25         {{ .Date.Format "02 Jan 2006" }}
     26       </time>
     27         {{ if .Title }}
     28         {{ else }}
     29           <a data-goatcounter-click="cl-note-hash" class="u-url" href="/notes/#{{ $idslug }}">#</a> <a data-goatcounter-click="cl-note-full" href={{ .Permalink }}>ยป</a>
     30         {{ end }}
     31     </span>
     32   </p>
     33   <div class="notes__content e-content p-content p-name">
     34     {{ .Content }}
     35   </div>
     36 </div>