commit b780a176b97e12630efb00b66c545ec055bdc60e
parent 68d67007ba8adc8458312ccb561387a4063f466d
Author: Oscar Benedito <oscar@oscarbenedito.com>
Date: Thu, 3 Sep 2020 14:25:06 +0200
Add h-card
Diffstat:
4 files changed, 8 insertions(+), 0 deletions(-)
diff --git a/layouts/_default/list.html b/layouts/_default/list.html
@@ -46,5 +46,6 @@
{{- end }}
</div>
{{- end }}
+ {{ partial "h-card.html" . -}}
</main>
{{ end }}
diff --git a/layouts/_default/single.html b/layouts/_default/single.html
@@ -7,6 +7,7 @@
</div>
</header>
<div class="content e-content">{{ .Content }}</div>
+ {{ partial "h-card.html" . -}}
</article>
{{- if or .NextInSection .PrevInSection }}
diff --git a/layouts/index.html b/layouts/index.html
@@ -11,4 +11,5 @@
<div class="content">{{ .Content }}</div>
</article>
</main>
+{{ partial "h-card.html" . -}}
{{ end }}
diff --git a/layouts/partials/h-card.html b/layouts/partials/h-card.html
@@ -0,0 +1,5 @@
+<div class="p-author h-card" style="display: none;">
+ <a rel="me" class="p-name u-url" href="https://oscarbenedito.com">Oscar Benedito</a>
+ {{- $favicon := resources.Get "img/favicon.min.svg" | fingerprint }}
+ <img class="u-photo" src="{{ $favicon.RelPermalink }}"/>
+</div>