From 710372bc97d86959818be3b1edbc0ab4db0362e2 Mon Sep 17 00:00:00 2001 From: decanus Date: Thu, 20 Feb 2020 10:48:25 -0500 Subject: [PATCH] added --- _includes/authorlist.html | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 _includes/authorlist.html diff --git a/_includes/authorlist.html b/_includes/authorlist.html new file mode 100644 index 00000000..2116f258 --- /dev/null +++ b/_includes/authorlist.html @@ -0,0 +1,13 @@ +{%- assign authors=include.authors|split:"," -%} +{%- for author in authors -%} +{%- if author contains "<" -%} +{%- assign authorparts=author|split:"<" -%} +"}}">{{authorparts[0]|strip}} +{%- elsif author contains "(@" -%} +{%- assign authorparts=author|split:"(@" -%} +{{authorparts[0]|strip}} +{%- else -%} +{{author}} +{%- endif -%} +{% if forloop.last == false %}, {% endif %} +{%- endfor -%} \ No newline at end of file