diff --git a/layouts/_default/single.html b/layouts/_default/single.html index 53f64c5..9b22a5f 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -4,30 +4,6 @@ {{ .Content }} -{{ $author := index .Site.Data.authors (.Params.author | default "default") }} -{{- if $author -}} -

Contributor(s)

- -{{- end -}} +{{ partial "contributor.html" . }} {{ partial "footer.html" . }} diff --git a/layouts/partials/contributor.html b/layouts/partials/contributor.html new file mode 100644 index 0000000..25c14bc --- /dev/null +++ b/layouts/partials/contributor.html @@ -0,0 +1,25 @@ +{{ $author := index .Site.Data.authors (.Params.author | default "default") }} +{{- if $author -}} +

Contributor(s)

+ +{{- end -}} \ No newline at end of file