File tree Expand file tree Collapse file tree 1 file changed +17
-5
lines changed Expand file tree Collapse file tree 1 file changed +17
-5
lines changed Original file line number Diff line number Diff line change @@ -3,10 +3,22 @@ layout: none
3
3
permalink: /api/jobs.json
4
4
excluded_in_search: true
5
5
---
6
- {% assign sorted_jobs = site.data.jobs | sort: "posted" | reverse % }[{% for job in sorted_jobs % }{% capture nowunix % }{{'now' | date: '%s' }}{% endcapture % }{% capture expires % }{{ job.expires | date: '%s' }}{% endcapture % }{% capture posted % }{{ job.posted | date: '%b %d, %Y' }}{% endcapture % }{% if expires > nowunix % }{
6
+ {%- assign sorted_jobs = site.data.jobs | sort: "posted" | reverse -% }
7
+ {%- capture nowunix -% }{{'now' | date: '%s' }}{%- endcapture -% }
8
+ [
9
+ {%- for job in sorted_jobs -% }
10
+ {%- capture expires -% }{{ job.expires | date: '%s' }}{%- endcapture -% }
11
+ {%- capture posted -% }{{ job.posted | date: '%b %d, %Y' }}{%- endcapture -% }
12
+ {% if expires > nowunix % }
13
+ {
7
14
"title" : {{ job.name | jsonify }},
8
- {% if posted != '' % }"published" : " {{ posted }}" ,{% endif % }
9
- "location" : {{ job.location| jsonify }},
15
+ {%- if posted != '' % }
16
+ "published" : " {{ posted }}" ,
17
+ {%- endif % }
18
+ "location" : {{ job.location | jsonify }},
10
19
"url" : " {{ job.url }}"
11
- }{% if forloop.last % }{% else % },{% endif % }{% endif % }
12
- {% endfor % }{}]
20
+ },
21
+ {%- endif % }
22
+ {%- endfor % }
23
+ {}
24
+ ]
You can’t perform that action at this time.
0 commit comments