Skip to content

Commit 0cdd10a

Browse files
Add deadline to training page (#720)
* added deadline in Training page. * slight fix * changed deadline for a school * added if statement (produces nil error) * unnecesarry plus 0 filter * again take out plus 0 filter * comment out unspecified deadlines and fixed nil / parsing error with excert:none on front matter. * apply changes to list_of_schools.md file * return yml to previous status, remove space before : , and if not blank argument * filtered the format of the dates to match * filter dates in training page * fix dates
1 parent 4c78d95 commit 0cdd10a

File tree

3 files changed

+18
-9
lines changed

3 files changed

+18
-9
lines changed

_data/training-schools.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -129,10 +129,10 @@
129129
in Cogne (Italy)
130130
- author: Kilian Lieret
131131
date: 2020-02-17
132-
deadline: ''
133132
end_date: 2020-02-19
134133
source: https://indico.cern.ch/event/854880/
135134
title: Analysis Preservation Bootcamp
135+
deadline: ''
136136
- author: Guillermo Fidalgo
137137
date: 2020-03-06
138138
deadline: 2020-01-15
@@ -141,8 +141,8 @@
141141
title: Moscow International School of Physics 2020
142142
- author: Kilian Lieret
143143
date: 2020-03-16
144-
deadline: ''
145-
end_date: 2020-03-19
144+
deadline: 2020-03-19
145+
end_date: 2020-03-18
146146
source: https://indico.cern.ch/event/853710/
147147
title: Inverted CERN School of Computing (iCSC 2020)
148148
- author: Guillermo Fidalgo
@@ -171,7 +171,7 @@
171171
title: Thematic CERN School of Computing 2020
172172
- author: Guillermo Fidalgo
173173
date: 2020-06-17
174-
deadline: 2020-02-14
174+
deadline: 2020-02-21
175175
end_date: 2020-06-30
176176
source: https://indico.cern.ch/event/856903/page/18705-home
177177
title: 2020 CERN-JINR European School of HEP

_includes/list_of_schools.md

+7-3
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,24 @@
22

33
{% assign schools = site.data.training-schools | sort:"date" %}
44

5-
{% capture now %}{{'now' | date: '%s' | plus: 0 }}{% endcapture %}
5+
{% capture now %}{{'now' | date: '%s' }}{% endcapture %}
66

77
## Current and Upcoming Training Schools
88
#### **Warning** : Application deadlines are **before the date shown**
99
{% for post in schools %}
10-
{% capture date %}{{post.end_date | date: '%s' | plus: 0 }}{% endcapture %}
10+
{% capture date %}{{post.end_date | date: '%s' }}{% endcapture %}
1111
{% if date > now %}
12+
{% if post.deadline != blank %}
13+
1. [**{{post.date | date: "%-d %b"}} - {{post.end_date | date: "%-d %b %Y"}}** - {{post.title}} - **Deadline:** {{post.deadline | date: "%-d %b %Y"}} ]({{post.source}})
14+
{% else %}
1215
1. [**{{post.date | date: "%-d %b"}} - {{post.end_date | date: "%-d %b %Y"}}** - {{post.title}} ]({{post.source}})
1316
{% endif %}
17+
{% endif %}
1418
{% endfor %}
1519

1620
## Past Schools
1721
{% for post in schools reversed %}
18-
{% capture date %}{{post.end_date | date: '%s' | plus: 0 %}}{% endcapture %}
22+
{% capture date %}{{post.end_date | date: '%s' | plus: 0 }}{% endcapture %}
1923
{% if date < now %}
2024
1. [**{{post.date | date: "%-d %b"}} - {{post.end_date | date: "%-d %b %Y"}}** - {{post.title}} ]({{post.source}})
2125
{% endif %}

_workinggroups/training.md

+7-2
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ layout: plain
44
redirect_from:
55
- /workinggroups/2015/11/04/training.html
66
- /activities/training.html
7+
excerpt: none
78
---
89

910
The HSF Training Working Group aims to help the research community to provide
@@ -43,15 +44,19 @@ The [HSF-Training GitHub Organization](https://github.com/hsf-training) has [Ana
4344

4445
{% assign schools = site.data.training-schools | sort:"date" %}
4546

46-
{% capture now %}{{'now' | date: '%s' | plus: 0 }}{% endcapture %}
47+
{% capture now %}{{'now' | date: '%s' }}{% endcapture %}
4748

4849
## Current and Upcoming Training Schools
4950
#### **Warning** : Application deadlines are **before the date shown**
5051
{% for post in schools %}
51-
{% capture date %}{{post.end_date | date: '%s' | plus: 0 }}{% endcapture %}
52+
{% capture date %}{{post.end_date | date: '%s' }}{% endcapture %}
5253
{% if date > now %}
54+
{% if post.deadline != blank %}
55+
1. [**{{post.date | date: "%-d %b"}} - {{post.end_date | date: "%-d %b %Y"}}** - {{post.title}} - **Deadline:** {{post.deadline| date: "%-d %b %Y"}} ]({{post.source}})
56+
{% else %}
5357
1. [**{{post.date | date: "%-d %b"}} - {{post.end_date | date: "%-d %b %Y"}}** - {{post.title}} ]({{post.source}})
5458
{% endif %}
59+
{% endif %}
5560
{% endfor %}
5661

5762
#### For full list of Upcoming and Past Schools enter [here](/Schools/events.html)

0 commit comments

Comments
 (0)