diff --git a/layouts/partials/author-date.html b/layouts/partials/author-date.html
index fd51344..f6355a7 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 $.Param "author" }}{{ . }}{{ end -}}
+{{ if and .Date ($.Param "author") }} - {{ end -}}
{{ with .Date }}{{ end }}
\ No newline at end of file