hugo-ataru

Hugo theme with titleless posts and microformats2 support

git clone git://git.shimmy1996.com/hugo-ataru.git
commit 4adfa74724cf3b719c1fdb250335b4780fee0c41
parent fad952bcc1d1dc8439e5aa411c66843cd202ed84
Author: Shimmy Xu <shimmy.xu@shimmy1996.com>
Date:   Wed,  8 Apr 2020 22:26:26 -0500

Move h-card to top of homepage

Diffstat:
Mlayouts/partials/footer.html | 14++------------
Mlayouts/partials/header.html | 12++++++++++++
2 files changed, 14 insertions(+), 12 deletions(-)
diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html
@@ -1,14 +1,4 @@
 <hr/>
-{{ if .IsHome }}
-<footer class="h-card">
-  <img style="float:right;" src={{ .Site.Author.logo }}>
-  <a href="{{ .Site.Author.url }}" class="p-name u-url u-uid" rel="me">
-    {{ .Site.Author.name }}
-  </a><br/>
-  <a rel="me" class="u-email" href="mailto:{{ .Site.Author.email }}">
-    {{ .Site.Author.email }}
-  </a>
-</footer>
-{{ else }}
+<footer>
 &copy; {{ .Site.Author.name }}
-{{ end }}
+</footer>
diff --git a/layouts/partials/header.html b/layouts/partials/header.html
@@ -11,3 +11,15 @@
   &nbsp;|&nbsp;<a href="{{ .Permalink | relURL }}">{{ .Language.LanguageName }}</a>
   {{- end -}}
 </nav>
+{{ if .IsHome }}
+<hr/>
+<footer class="h-card">
+  <img style="float:right;" src={{ .Site.Author.logo }}>
+  <a href="{{ .Site.Author.url }}" class="p-name u-url u-uid" rel="me">
+    {{ .Site.Author.name }}
+  </a><br/>
+  <a rel="me" class="u-email" href="mailto:{{ .Site.Author.email }}">
+    {{ .Site.Author.email }}
+  </a>
+</footer>
+{{ end }}