-
Notifications
You must be signed in to change notification settings - Fork 89
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for last-modified at plugin
- Loading branch information
batlab
committed
Feb 14, 2017
1 parent
615665e
commit 0d21253
Showing
7 changed files
with
54 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
{% assign object = include.object %} | ||
|
||
{% if object.last_modified_at %} | ||
|
||
|
||
{% assign last = object.last_modified_at | date: '%Y%m%d' %} | ||
{% assign created = object.date | date: '%Y%m%d' %} | ||
|
||
{% if last != created %} | ||
<span class="last-update">· | ||
|
||
{% if site.repo %} | ||
<a title="Voir l'historique des révisions de ce billet" | ||
href="{{site.repo}}/commits/master/{{object.path}}"> | ||
{% endif %} | ||
|
||
mis à jour le {% include date.html date=object.last_modified_at %} | ||
|
||
{% if site.repo %} | ||
</a> | ||
{% endif %} | ||
|
||
</span> | ||
{% endif %} | ||
|
||
|
||
{% endif %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters