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

misc e+/metadata #4605

Merged
merged 2 commits into from
Dec 20, 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: 1 addition & 1 deletion FUNDERS.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ gallantries:
funding_id: 2020-1-NL01-KA203-064717
funding_system: erasmusplus
funding_statement: |
This project ([`2020-1-NL01-KA203-064717`](https://ec.europa.eu/programmes/erasmus-plus/projects/eplus-project-details/#project/2020-1-NL01-KA203-064717)) is funded with the support of the Erasmus+ programme of the European Union. Their funding has supported a large number of tutorials within the GTN across a wide array of topics.
This project ([`2020-1-NL01-KA203-064717`](https://erasmus-plus.ec.europa.eu/projects/search/details/2020-1-NL01-KA203-064717)) is funded with the support of the Erasmus+ programme of the European Union. Their funding has supported a large number of tutorials within the GTN across a wide array of topics.
![eu flag with the text: with the support of the erasmus programme of the european union](https://gallantries.github.io/assets/images/logosbeneficaireserasmusright_en.jpg)
![erasmus plus logo](https://www.erasmusplus.nl/assets/images/logo.png)

Expand Down
1 change: 1 addition & 0 deletions _plugins/gtn/git.rb
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ def self._discover
'git_tags' => tags,
'git_tags_recent' => tags.reverse[0..2],
'age' => (today - first_commit).to_f / 365.25,
'founding_date' => first_commit,
}
end
end
Expand Down
16 changes: 16 additions & 0 deletions _plugins/jekyll-jsonld.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,32 @@

require 'json'
require './_plugins/gtn'
require './_plugins/gtn/git'

module Jekyll
# Generate JSON-LD metadata for the GTN.
module JsonldFilter
GTN = {
'@type': 'Organization',
'http://purl.org/dc/terms/conformsTo': {
# Bioschemas profile
'@id': 'https://bioschemas.org/profiles/Organization/0.2-DRAFT-2019_07_19',
'@type': 'Organization'
},
email: '[email protected]',
name: 'Galaxy Training Network',
legalName: 'Galaxy Training Network',
alternateName: 'GTN',
url: 'https://training.galaxyproject.org',
logo: 'https://training.galaxyproject.org/training-material/assets/images/GTNLogo1000.png',
fundingModel: "The GTN's infrastructure relies on GitHub and the Galaxy Project for hosting costs. " \
'There are no full time paid staff members of the GTN. Individuals are occasionally funded on ' \
'GTN-adjacent projects.',
keywords: %w[galaxy bioinformatics training fair accessible],
status: 'active',
foundingDate: Gtn::Git.discover['founding_date'].to_s,
socialMedia: 'https://mstdn.science/@gtn',
type: 'project',
}.freeze

A11Y = {
Expand Down
2 changes: 1 addition & 1 deletion bin/schema-funders.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -125,4 +125,4 @@ mapping:
type: str
description: A short statement about the funder, markdown is supported.
examples:
- This project ([`2020-1-NL01-KA203-064717`](https://ec.europa.eu/programmes/erasmus-plus/projects/eplus-project-details/#project/2020-1-NL01-KA203-064717)) is funded with the support of the Erasmus+ programme of the European Union. Their funding has supported a large number of tutorials within the GTN across a wide array of topics.
- This project ([`2020-1-NL01-KA203-064717`](https://erasmus-plus.ec.europa.eu/projects/search/details/2020-1-NL01-KA203-064717)) is funded with the support of the Erasmus+ programme of the European Union. Their funding has supported a large number of tutorials within the GTN across a wide array of topics.
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ All tutorials and slides must give credit to all contributors. This can be any t
funder: true
funding_id: 2020-1-NL01-KA203-064717
funding_statement: |
This project ([`2020-1-NL01-KA203-064717`](https://ec.europa.eu/programmes/erasmus-plus/projects/eplus-project-details/#project/2020-1-NL01-KA203-064717)) is funded with the support of the Erasmus+ programme of the European Union. Their funding has supported a large number of tutorials within the GTN across a wide array of topics.
This project ([`2020-1-NL01-KA203-064717`](https://erasmus-plus.ec.europa.eu/projects/search/details/2020-1-NL01-KA203-064717)) is funded with the support of the Erasmus+ programme of the European Union. Their funding has supported a large number of tutorials within the GTN across a wide array of topics.
![eu flag with the text: with the support of the erasmus programme of the european union](https://gallantries.github.io/assets/images/logosbeneficaireserasmusright_en.jpg)
```

Expand Down
Loading