Skip to content

Commit

Permalink
Merge pull request #24 from OpenRailAssociation/project-list
Browse files Browse the repository at this point in the history
Project list on web site
  • Loading branch information
mxmehl committed Sep 18, 2024
2 parents ed97a91 + 45bfb5e commit 22108d3
Show file tree
Hide file tree
Showing 4 changed files with 53 additions and 0 deletions.
2 changes: 2 additions & 0 deletions data/nav.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ links:
link: "/#opensource"
- name: News
link: "/news/"
- name: Projects
link: "/#projects"
- name: Members
link: "/#members"
- name: Contact
Expand Down
15 changes: 15 additions & 0 deletions data/projects.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
title: OpenRail Projects
introduction: |
These are the Open Source projects which are officially hosted by the
OpenRail Association. They have been accepted through the <a href="https://github.com/OpenRailAssociation/technical-committee/blob/main/incubation_process.md">incubation process</a>.
If you would like to suggest a new project to the OpenRail Association please
have a look at the <a href="https://github.com/OpenRailAssociation/technical-committee/blob/main/new-project-questionnaire.md">questionnaire for new projects</a>.
listclass: style1 medium less-bottom-margin less-top-margin

projects:
- publiccode: https://raw.githubusercontent.com/OpenRailAssociation/osrd/dev/publiccode.yml
- publiccode: https://raw.githubusercontent.com/OpenRailAssociation/landscape/main/data/openrail/rcm-oss.yml
- publiccode: https://raw.githubusercontent.com/OpenRailAssociation/landscape/main/data/openrail/dac-migration-dss.yml
- publiccode: https://raw.githubusercontent.com/OpenRailAssociation/landscape/main/data/openrail/nge.yml
- publiccode: https://raw.githubusercontent.com/OpenRailAssociation/landscape/main/data/openrail/liblrs.yml
1 change: 1 addition & 0 deletions themes/openrail/layouts/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
{{ partial "spotlight" site.Data.spotlight1 }}
{{ partial "spotlight" site.Data.spotlight2 }}
{{ partial "news" (dict "news" site.Data.news "pages" $pages) }}
{{ partial "projects" site.Data.projects }}
{{ partial "members" site.Data.members }}
{{ partial "contact" site.Data.contact }}
{{ partial "footer" site.Data.footer }}
Expand Down
35 changes: 35 additions & 0 deletions themes/openrail/layouts/partials/projects.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
<!-- Projects -->
<section class="wrapper style1 align-center" id="projects">
<div class="inner">
<h2>{{ .title }}</h2>
<p>
{{ with .introduction }}{{ . | safeHTML }}{{ end }}
</p>
<div class="items {{ .listclass }}" id="projects-overview">
{{- range .projects }}
<section>
{{- $data := dict }}
{{- $url := .publiccode }}
{{- with resources.GetRemote $url }}
{{- with .Err }}
{{- errorf "%s" . }}
{{- else }}
{{- $data = . | transform.Unmarshal }}
{{- end }}
{{- else }}
{{- errorf "Unable to get remote resource %q" $url }}
{{- end }}

{{- with $data }}
<h3>{{ .name }}</h3>
<p>{{ chomp .description.en.shortDescription }}</p>
{{- with .url }}
<a href="{{ . }}">GitHub</a>
{{- end }}
<p>Status: {{ .developmentStatus }}</p>
{{- end }}
</section>
{{- end }}
</div>
</div>
</section>

0 comments on commit 22108d3

Please sign in to comment.