hugo-ataru

Hugo theme with titleless posts and microformats2 support

git clone git://git.shimmy1996.com/hugo-ataru.git

single.html (727B)

    1 {{ define "main" }}
    2 <main class="h-entry">
    3   <header>
    4     <nav>
    5       <span class="menu">
    6         <a class="entry u-url" href="{{ .RelPermalink }}">
    7           {{- if (eq .Params.date nil) }}&empty;{{ else -}}
    8           {{- $timestamp := .Date.Format "2006-01-02T15:04:05Z07:00" -}}
    9           <time class="dt-published" datetime="{{ $timestamp }}">{{ $timestamp }}</time>
   10           {{- end -}}
   11         </a>
   12         {{ partial "language.html" . }}
   13       </span>
   14       <a class="menu-right u-author" href="{{ "/" | relLangURL }}">⏎</a>
   15     </nav>
   16     {{ with .Title }}<h1 class="p-name">{{ . }}</h1>{{ end }}
   17   </header>
   18   <article class="e-content">{{ .Content }}</article>
   19   {{ partial "hyperskip.html" . }}
   20 </main>
   21 {{ end }}