Skip to content

Commit

Permalink
author/frontmatter: mastodon links
Browse files Browse the repository at this point in the history
merges #483
merges #486

Co-authored-by: Laurent Perrinet <laurent.perrinet@univ-amu.fr>
  • Loading branch information
dhimmel and laurentperrinet authored Jan 30, 2023
1 parent b7a5c3f commit 7b10343
Show file tree
Hide file tree
Showing 4 changed files with 54 additions and 0 deletions.
2 changes: 2 additions & 0 deletions USAGE.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 5 additions & 0 deletions content/00.front-matter.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 %}
<br>
{%- endif %}
Expand Down
45 changes: 45 additions & 0 deletions content/images/mastodon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 2 additions & 0 deletions content/metadata.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7b10343

Please sign in to comment.