diff --git a/_includes/authorlist.html b/_includes/authorlist.html new file mode 100644 index 00000000..e32a48c4 --- /dev/null +++ b/_includes/authorlist.html @@ -0,0 +1,10 @@ +{%- assign authors=include.authors|split:"," -%} +{%- for author in authors -%} + {%- if author contains "<" -%} + {%- assign authorparts=author|split:"<" -%} + "}}">{{authorparts[0]|strip}} + {%- else -%} + {{author}} + {%- endif -%} + {% if forloop.last == false %}, {% endif %} +{%- endfor -%} diff --git a/_includes/eiptable.html b/_includes/eiptable.html index 409ae05c..db2bcfa4 100644 --- a/_includes/eiptable.html +++ b/_includes/eiptable.html @@ -10,7 +10,7 @@ {{page.eip|xml_escape}} {{page.title|xml_escape}} - {{page.author|xml_escape}} + {% include authorlist.html authors=page.author %} {% endfor %} diff --git a/_layouts/eip.html b/_layouts/eip.html index ba4cf005..f1a226e0 100644 --- a/_layouts/eip.html +++ b/_layouts/eip.html @@ -5,7 +5,7 @@ layout: default

EIP {{ page.eip | xml_escape }}: {{ page.title | xml_escape }}

- + {% if page["discussions-to"] != undefined %} {% endif %} @@ -19,10 +19,10 @@ layout: default {% endif %} {% if page.replaces != undefined %} - + {% endif %} {% if page["superseded-by"] != undefined %} - + {% endif %} {% if page.resolution != undefined %}
Author{{ page.author | xml_escape }}
Author{% include authorlist.html authors=page.author %}
Discussions-To{{ page["discussions-to"] | xml_escape }}
Requires{% include eipnums.html eips=page.requires %}
Replaces{{% include eipnums.html eips=page.replaces %}
Replaces{% include eipnums.html eips=page.replaces %}
Superseded by{% include eipnums.html eips=page['superseded-by'] %}
Superseded by{% include eipnums.html eips=page.superseded-by %}
Resolution{{ page.resolution | xml_escape }}