ybbond

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

list.html (1751B)


      1 {{ define "main" }}
      2   <div class="h-feed">
      3     <div id="h-card" class="hcard" hidden="">
      4       <img class="u-photo" src={{ "logo.png" | absURL }} alt="Weird photo of yohanes bandung" />
      5       <a class="p-author h-card" href={{ .Site.Params.MainSiteURL }} rel="author">{{ substr .Site.Params.Author 0 20 }}.</a>
      6       <a class="u-email" href="mailto:{{ .Site.Params.Email }}">{{ .Site.Params.Email }}</a>
      7       <a rel="syndication" class="u-syndication" href={{ .Permalink }}>{{ .Title }}</a>
      8       <span class="p-locality">Jakarta</span>, <span class="p-country-name">Indonesia</span>
      9       {{ with .Params.tags }}
     10         {{ range . }}
     11           <a class="p-category" href={{ (printf  "tags/%s" .) | urlize | absURL }}>{{ . }}</a>
     12         {{ end }}
     13       {{ end }}
     14     </div>
     15   {{ $selflink := .Permalink }}
     16   {{ if or .Title .Content }}
     17     <div class="list__header content">
     18       {{ $isTag := eq .Type "tags" }}
     19       {{ with .Title }}
     20         <a href={{ $selflink }} class="u-url no-outline">
     21           <h1 class="p-name">
     22               {{ cond $isTag "Tag «" nil}}{{ . }}{{ cond $isTag "»" nil}}
     23           </h1>
     24         </a>
     25       {{ end }}
     26       {{ with .Content }}<div>{{ . }}</div>{{ end }}
     27     </div>
     28     <hr class="list__subtitle">
     29   {{ end }}
     30 
     31   {{ if  eq .Type "notes" }}
     32     {{ range (where .Site.RegularPages "Type" "notes") }}
     33       {{ partial "post/notes-item.html" . }}
     34     {{ end }}
     35   {{ else if  eq .Type "responses" }}
     36     {{ range (where .Site.RegularPages "Type" "responses") }}
     37       {{ partial "post/responses-item.html" . }}
     38     {{ end }}
     39   {{ else }}
     40     {{ range .Paginator.Pages }}
     41       {{ partial "post/summary.html" . }}
     42       <hr>
     43     {{ end }}
     44     {{ partial "post/pagination.html" . }}
     45   {{ end }}
     46 </div>
     47 {{ end }}