diff --git a/layouts/micro/single.html b/layouts/micro/single.html index 20f180c..c8731e0 100644 --- a/layouts/micro/single.html +++ b/layouts/micro/single.html @@ -4,8 +4,7 @@

{{ .Title }}

-{{ with $.Param "author" }}{{ . }} – {{ end -}} - +{{ partial "author-date" . }}

diff --git a/layouts/micro/summary.html b/layouts/micro/summary.html index 6acdab4..28aa9d5 100644 --- a/layouts/micro/summary.html +++ b/layouts/micro/summary.html @@ -2,8 +2,7 @@

-{{ with $.Param "author" }}{{ . }} – {{ end -}} - +{{ partial "author-date" . }}

diff --git a/layouts/partials/author-date.html b/layouts/partials/author-date.html new file mode 100644 index 0000000..10fa659 --- /dev/null +++ b/layouts/partials/author-date.html @@ -0,0 +1,2 @@ +{{ with $.Param "author" }} – {{ end -}} + \ No newline at end of file diff --git a/layouts/partials/submitted.html b/layouts/partials/submitted.html index 55ff27c..b41bf73 100644 --- a/layouts/partials/submitted.html +++ b/layouts/partials/submitted.html @@ -1,4 +1,3 @@