Commit 6df4217e authored by Kaushal Modi's avatar Kaushal Modi

Add author meta-data

parent d3e6e686
......@@ -25,6 +25,8 @@
{{ partial "series.html" . }}
{{ partial "author.html" . }}
<div class="e-content">
{{ partial "headline-hash.html" .Content }}
</div>
......
<!-- Embedded author h-cards -->
{{ with .Params.author | default .Site.Author.name }}
{{ $author_type := (printf "%T" .) }}
{{ $author_is_list := (eq "[]string" $author_type) }}
{{ if $author_is_list }}
{{ range . }}
<p rel="author" class="p-author h-card">{{ . }}</p>
{{ end }}
{{ else }}
<p rel="author" class="p-author h-card">{{ . }}</p>
{{ end }}
{{ end }}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment