Skip to content

Commit

Permalink
Merge pull request #17 from hpc-social/fix/rendering
Browse files Browse the repository at this point in the history
  • Loading branch information
alansill authored Sep 21, 2023
2 parents d5eab5e + e06045d commit 5fa199a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
6 changes: 2 additions & 4 deletions _includes/jobrows.html
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
{% capture jobs_data %}
{% for job in include.sorted_jobs %}
{% capture nowunix %}{{'now' | date: '%s'}}{% endcapture %}
{% capture expires %}{{ job.expires | date: "%m/%d/%Y" | date: '%s'}}{% endcapture %}
{% capture nowunix %}{{'now' | date: '%m/%d/%Y' | date: %s }}{% endcapture %}
{% capture posted %}{{ job.posted | date: "%m/%d/%Y" | date: '%b %d, %Y'}}{% endcapture %}
{% capture posted_order %}{{ job.posted | date: "%m/%d/%Y" | date: '%Y%m%d'}}{% endcapture %}
{% capture expires_order %}{{ job.expires | date: "%m/%d/%Y" | date: '%Y%m%d'}}{% endcapture %}
{% if expires > nowunix %}
<tr class='tr odd {% cycle "odd" "even" %}' data-posted="{{ posted_order }}" data-expires="{{ expires_order }}">
<td data-order="{{ job.title }}" ><a target="_blank" href="{{ job.url }}">{{ job.title }}</a></td>
<td data-order="{{ job.job_type }}" >{{ job.job_type }}</td>
Expand All @@ -15,7 +13,7 @@
<td data-order="{{ posted_order }}" >{{ job.posted }}</td>
<td data-order="{{ job.remote }}" >{{ job.remote }}</td>
</tr>
{% endif %}{% endfor %}
{% endfor %}
{% endcapture %}
{% comment %}
This accounts for the way whitespace appears in
Expand Down
2 changes: 1 addition & 1 deletion pages/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ permalink: /
<th data-sortable="true" data-field="job-type" width="15%">Job Type</th>
<th data-sortable="true" data-field="location" width="15%">Employer</th>
<th data-sortable="true" data-field="location" width="15%">Location</th>
<th data-sortable="true" data-field="expires">Expires</th>
<th data-sortable="true" data-field="expires">Advertised Until</th>
<th data-sortable="true" data-field="posted" width="10%">Posted</th>
<th data-sortable="true" data-field="remote" width="10%">Remote Options</th>
</tr>
Expand Down

0 comments on commit 5fa199a

Please sign in to comment.