diff --git a/layouts/partials/author-date.html b/layouts/partials/author-date.html index f6355a7..eca4638 100644 --- a/layouts/partials/author-date.html +++ b/layouts/partials/author-date.html @@ -1,3 +1,3 @@ -{{ with $.Param "author" }}{{ end -}} -{{ if and .Date ($.Param "author") }} - {{ end -}} -{{ with .Date }}{{ end }} \ No newline at end of file +{{ with $.Param "author" | default site.Author.name }}{{ end -}} +{{ if and .Date (or ($.Param "author") site.Author.name) }} - {{ end -}} +{{ with .Date }}{{ end }}