Skip to content

Commit

Permalink
Switch to timeago plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
captn3m0 committed May 27, 2019
1 parent 137a55c commit d9cecee
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 31 deletions.
2 changes: 2 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ gem "minima", "~> 2.0"
# If you have any plugins, put them here!
group :jekyll_plugins do
gem "jekyll-feed", "~> 0.6"
gem 'jekyll-timeago'
end

# Windows does not include zoneinfo files, so bundle the tzinfo-data gem
Expand All @@ -28,3 +29,4 @@ gem "tzinfo-data", platforms: [:mingw, :mswin, :x64_mingw, :jruby]
# Performance-booster for watching directories on Windows
gem "wdm", "~> 0.1.0" if Gem.win_platform?


4 changes: 4 additions & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ GEM
sass (~> 3.4)
jekyll-seo-tag (2.6.1)
jekyll (>= 3.3, < 5.0)
jekyll-timeago (0.12.3)
mini_i18n (>= 0.8.0)
jekyll-watch (2.2.1)
listen (~> 3.0)
kramdown (1.17.0)
Expand All @@ -42,6 +44,7 @@ GEM
rb-inotify (~> 0.9, >= 0.9.7)
ruby_dep (~> 1.2)
mercenary (0.3.6)
mini_i18n (0.8.0)
minima (2.5.0)
jekyll (~> 3.5)
jekyll-feed (~> 0.9)
Expand All @@ -67,6 +70,7 @@ PLATFORMS
DEPENDENCIES
jekyll (~> 3.8.5)
jekyll-feed (~> 0.6)
jekyll-timeago
minima (~> 2.0)
tzinfo-data

Expand Down
1 change: 1 addition & 0 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ markdown: kramdown
theme: minima
plugins:
- jekyll-feed
- jekyll-timeago

# Exclude from processing.
# The following items will not be processed, by default. Create a custom list
Expand Down
29 changes: 0 additions & 29 deletions _includes/timediff.html

This file was deleted.

4 changes: 2 additions & 2 deletions _layouts/post.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@
{% capture securityFixes %}{{r.eol | date: '%s' | plus:0}}{%endcapture %}
<tr>
<td>{{release[0]}}{%if r.lts%} (LTS){%endif%}</td>
{% if page.activeSupportColumn%}<td>{% if support < now %}No{%else%}Yes{%endif%}{% include timediff.html date=support %}</td>{%endif%}
<td>{% if securityFixes < now %}No{%else%}Yes{%endif%}{% include timediff.html date=securityFixes %}</td>
{% if page.activeSupportColumn%}<td>{% if support < now %}Ended{%else%}Ends{%endif%} {{r.support|timeago}}</td>{%endif%}
<td>{% if securityFixes < now %}Ended{%else%}Ends{%endif%} {{r.eol|timeago}}</td>
<td>{% if securityFixes > now %}{{r.latest}}{%else%}NA{%endif%}</td>
</tr>
{% endfor %}
Expand Down

0 comments on commit d9cecee

Please sign in to comment.