ybbond

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

list.html (2066B)


      1 {{ define "main" }}
      2   <div class="h-feed">
      3     <div id="h-card" class="h-card u-author" hidden="">
      4       <data class="u-photo" value={{ "logo.png" | absURL }}></data>
      5       <a class="p-author" 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="no-outline u-url">
     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 if  eq .Type "micro" }}
     40     {{ range (where .Site.RegularPages "Type" "in" (slice "notes" "responses")) }}
     41       {{ .Scratch.Set "scope" "list" }}
     42       {{ if eq .Type "responses" -}}
     43         {{ partial "post/responses-item.html" . }}
     44       {{ else -}}
     45         {{ partial "post/notes-item.html" . }}
     46       {{ end -}}
     47     {{ end }}
     48   {{ else }}
     49     {{ range .Paginator.Pages }}
     50       {{ partial "post/summary.html" . }}
     51       <hr>
     52     {{ end }}
     53     {{ partial "post/pagination.html" . }}
     54   {{ end }}
     55 </div>
     56 {{ end }}