forked from workflowscommunity/workflowscommunity.github.io
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpage_jobs.html
44 lines (41 loc) · 1.68 KB
/
page_jobs.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
---
layout: default
title: Jobs
permalink: /jobs
---
{% assign num_jobs = site.jobs | size %}
<article class="post">
<header>
<div class="title">
<h2>{{page.title}}</h2>
<p>
Open Positions from the Community. There are currently <strong>{{ num_jobs }}</strong> open positions.
</p>
</div>
<a href="/jobs/add" class="corner-button" style="background-color: #8CCA60;"><i class="fas fa-plus"></i> Add New</a>
</header>
<div class="row">
<!-- <div class="jobs"> -->
{% assign jobs = site.jobs | sort: "application_deadline" %}
{% capture nowunix %}{{'now' | date: '%Y-%m-%d' | date: '%s'}}{% endcapture %}
{% for job in jobs %}
{% capture eventtime %}{{job.application_deadline | date: '%s'}}{% endcapture %}
{% if eventtime >= nowunix %}
<a href="{{ job.url }}" class="job">
<img src="{{ job.organization_logo }}" style="max-height: 2em; max-width: 8em;" alt="{{ job.title }}" /><br />
<div class="title">
{{ job.title }}<br />
<p>{{ job.organization }}</p>
</div>
<div class="description">
<i class="fas fa-clock"></i> {{ job.application_deadline | date: "%b %d, %Y" }}<br />
<i class="fas fa-map-marker"></i> {{ job.location }}<br />
<i class="fas fa-briefcase"></i> {{ job.employment_type }}
</div>
</a>
{% endif %}
{% endfor %}
<!-- </div> -->
</div>
<br /><br/>
</article>