Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

author/frontmatter: mastodon links #486

Merged
merged 1 commit into from
Jan 30, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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