diff --git a/USAGE.md b/USAGE.md index b5478e70..68ae5e2e 100644 --- a/USAGE.md +++ b/USAGE.md @@ -265,6 +265,8 @@ name: Daniel S. Himmelstein # mandatory initials: DSH # optional orcid: 0000-0002-3012-7446 # mandatory twitter: dhimmel # optional +mastodon: dhimmel # optional: mastodon username +mastodon-server: genomic.social # optional: mastodon server (instance) email: daniel.himmelstein@gmail.com # suggested corresponding: true # optional, if set to true displays author's email for correspondence affiliations: # as a list, strongly suggested diff --git a/content/00.front-matter.md b/content/00.front-matter.md index 1f6ac0e4..720a3df5 100644 --- a/content/00.front-matter.md +++ b/content/00.front-matter.md @@ -50,6 +50,11 @@ Published: {{manubot.date_long}} · ![Twitter icon](images/twitter.svg){.inline_icon width=16 height=16} [{{author.twitter}}](https://twitter.com/{{author.twitter}}) {%- endif %} + {%- if author.mastodon is defined and author.mastodon is not none and author["mastodon-server"] is defined and author["mastodon-server"] is not none %} + {%- set has_ids = true %} + · ![Mastodon icon](images/mastodon.svg){.inline_icon} + [\@{{author.mastodon}}@{{author["mastodon-server"]}}](https://{{author["mastodon-server"]}}/@{{author.mastodon}}) + {%- endif %} {%- if has_ids %}
{%- endif %} diff --git a/content/images/mastodon.svg b/content/images/mastodon.svg new file mode 100644 index 00000000..da422995 --- /dev/null +++ b/content/images/mastodon.svg @@ -0,0 +1,45 @@ + + + + + + + diff --git a/content/metadata.yaml b/content/metadata.yaml index 51801108..ccf8d559 100644 --- a/content/metadata.yaml +++ b/content/metadata.yaml @@ -12,6 +12,8 @@ authors: initials: JD orcid: XXXX-XXXX-XXXX-XXXX twitter: johndoe + mastodon: johndoe + mastodon-server: mastodon.social email: john.doe@something.com affiliations: - Department of Something, University of Whatever