ybbond

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

single.html (3223B)


      1 {{ define "main" }}
      2   {{ if eq .Type "notes" }}
      3     <article class="single__micro">
      4       {{- partial "post/notes-item.html" . -}}
      5       {{ partial "components/webmentions-form.html" . }}
      6       {{ partial "post/webmentions-handler.html" . }}
      7     </article>
      8   {{ else if eq .Type "responses" }}
      9     <article class="single__micro">
     10       {{- partial "post/responses-item.html" . -}}
     11       {{ partial "components/webmentions-form.html" . }}
     12       {{ partial "post/webmentions-handler.html" . }}
     13     </article>
     14   {{ else }}
     15     <article class="content h-entry">
     16       <h1 class="p-name">{{ .Title }}</h1>
     17       <div id="h-card" class="h-card u-author" hidden="">
     18         <data class="u-photo" value={{ "logo.png" | absURL }}></data>
     19         <a class="p-author" href={{ .Site.Params.MainSiteURL }} rel="author">{{ substr .Site.Params.Author 0 20 }}.</a>
     20         <a class="u-email" href="mailto:{{ .Site.Params.Email }}">{{ .Site.Params.Email }}</a>
     21         <a rel="syndication" class="u-syndication" href={{ .Permalink }}>{{ .Title }}</a>
     22         <span class="p-locality">Jakarta</span>, <span class="p-country-name">Indonesia</span>
     23         {{ with .Params.tags }}
     24           {{ range . }}
     25             <a class="p-category" href={{ (printf  "tags/%s" .) | urlize | absURL }}>{{ . }}</a>
     26           {{ end }}
     27         {{ end }}
     28       </div>
     29       <div class="e-content">
     30         {{ partial "components/content.html" .Content }}
     31       </div>
     32 
     33       <div class="bottom-hcard-container" {{ if eq .Type "page" }} hidden=""{{ end }}>
     34         <p class="hcard-top hcard">
     35           Published on
     36           <time title="{{ .Date.Format "Monday, 02 January 2006 on 15:04:05" }} GMT+7" class="dt-published" datetime="{{ .Date.Format "2006-01-02T15:04:05" }}+07:00">
     37             {{ .Date.Format "02 January 2006" }}</time> <a class="u-url link-white" href={{ .Permalink }}>🔗</a>,
     38           tagged:
     39           {{ with .Params.tags }}
     40             <span class="hcard-tags">
     41               {{ range . }}
     42                 {{- partial "components/tagitem.html" . -}}
     43               {{ end }}
     44             </span>
     45           {{ end }}
     46         </p>
     47         {{ if ne .Type "page" -}}
     48           <p class="hcard-bottom">If you have any feedback, please comment below or contact me at <a title="Open default mail client and add my email as recipient" href="mailto:hi@ybbond.id">hi@ybbond.id</a></p>
     49           {{- if isset .Params.Twitter "link" }}
     50           <p class="twitter-link">You can also reply this tweet, that will be linked to this post: <a target="_blank" rel="nofollow noreferrer" href={{ .Params.Twitter.Link }}>»Twitter Link«&nbsp;<i class="fab fa-twitter"></i></a></p>
     51             {{ if isset .Params.Mastodon "link" -}}
     52             <p class="mastodon-link">If you prefer fediverse, you can reply this Toot instead: <a target="_blank" rel="nofollow noreferrer" href={{ .Params.Mastodon.Link }}>»Mastodon Link«</a></p>
     53             {{ end -}}
     54           {{- end }}
     55         {{ end -}}
     56       </div>
     57 
     58       {{- if ne .Type "page" }}
     59         {{ partial "components/webmentions-form.html" . }}
     60         {{ partial "post/webmentions-handler.html" . }}
     61       {{- else }}
     62         <br>
     63         <br>
     64       {{- end }}
     65     </article>
     66   {{ end }}
     67 {{ end }}