hugo-ataru

Hugo theme with titleless posts and microformats2 support

git clone git://git.shimmy1996.com/hugo-ataru.git
commit 1d770b91c48a40e69de7f826657d22f36dffe110
parent e016ca98b9302423fda9781158760b4f12bddd85
Author: Shimmy Xu <shimmy.xu@shimmy1996.com>
Date:   Tue,  1 Dec 2020 20:04:41 -0600

Adjust linebreak to get rid of unwanted whitespace

Diffstat:
Mlayouts/_default/single.html | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/layouts/_default/single.html b/layouts/_default/single.html
@@ -3,8 +3,8 @@
   <header>
     {{ $timestamp := .Date.Format "2006-01-02T15:04:05Z07:00" }}
     <a class="u-url" href="{{ .RelPermalink }}">
-      <time class="dt-published" datetime="{{ $timestamp }}">{{ $timestamp }}</time>
-    </a>{{ partial "language.html" . }}
+      <time class="dt-published" datetime="{{ $timestamp }}">{{- $timestamp -}}
+    </time></a>{{ partial "language.html" . }}
     <span style="float:right;"><a href="{{ "/" | relLangURL }}" class="u-author">⏎</a></span>
     {{ with .Title }}<h1 class="p-name">{{ . }}</h1>{{ end }}
   </header>