diff options
Diffstat (limited to 'layouts/partials/author.html')
-rw-r--r-- | layouts/partials/author.html | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/layouts/partials/author.html b/layouts/partials/author.html new file mode 100644 index 0000000..c9b45ff --- /dev/null +++ b/layouts/partials/author.html @@ -0,0 +1,6 @@ +{{ with .Page.Param "Author" }} + {{ $hosts := where $.Site.RegularPages ".Section" "host" }} + {{ $filesWithAuthor := where $.Site.RegularPages ".File.BaseFileName" . }} + {{ $author := index ($filesWithAuthor | intersect $hosts) 0 }} + by <a href="{{ $author.Permalink}} ">{{ $author.Title }}</a> +{{ end }} |