pratik.paste.lol / layouts-now-single.html · 5 months ago·

{{ define "body_class" }}post-template{{ end }}

{{ define "main" }}

{{ $now := .Site.Taxonomies.categories.now }}
{{ range first 1 $now }}
<main class="content" role="main">
  <article class="post h-entry">
    <header class="post-header">
      {{ with .Params.image }}
        <img src="{{ . }}"></img>
      {{ end }}

      <h2 class="post-title p-name">{{ .Title }}</h2>

      <section class="post-meta">

        <time class="post-date dt-published" datetime="{{ .Date.Format "2006-01-02 15:04:05 -0700" }}">{{ .Date.Format (.Site.Params.dateFormatToUse | default "January 02, 2006") }}</time>

 		<a class="u-url" href="{{ .Permalink }}" style="display: none;"></a>

      </section>
    </header>

    <section class="post-content e-content">
    {{ if in .Content "--excerpt--" }}
    	{{ $body := replace .Content .Summary "" }}
    	{{ $body | safeHTML }}
    {{ else }}
    	{{ .Content }}
    {{ end }}
<br />
{{ end }}
<div align="right"><a href="https://microblog.pratikmhatre.com/categories/now/">Previous Now Updates →</a></div>

{{ partial "bookshelf.html" . }}
{{ partial "movies.html" . }}
{{ partial "pinboard.html" . }}

    </section>
  </article>

</main>
{{ end }}