From 8b1d9ee7269036c443f524e39b476df8c5b9e714 Mon Sep 17 00:00:00 2001 From: cgreene Date: Thu, 7 Jul 2022 05:50:12 -0600 Subject: [PATCH] initial proof-of-concept --- content/00.front-matter.md | 9 +++++++++ content/metadata.yaml | 1 + 2 files changed, 10 insertions(+) diff --git a/content/00.front-matter.md b/content/00.front-matter.md index 5f1a8eb1..9af1fe95 100644 --- a/content/00.front-matter.md +++ b/content/00.front-matter.md @@ -49,3 +49,12 @@ on {{manubot.date}}. {%- endif %} {% endfor %} + +{% if manubot.authors|map(attribute='corresponding')|select|first %} + To whom correspondence should be addressed: + {% for author in manubot.authors %} + {% if author.corresponding is defined and author.corresponding is not none %} + {{author.initials}}: {{author.email}} + {% endif %} + {% endfor %} +{% endif %} diff --git a/content/metadata.yaml b/content/metadata.yaml index 9e5d8566..d24da43e 100644 --- a/content/metadata.yaml +++ b/content/metadata.yaml @@ -24,3 +24,4 @@ authors: affiliations: - Department of Something, University of Whatever - Department of Whatever, University of Something + corresponding: true