-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
35 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
--- | ||
title: minimaJake v1.3.0 release notes | ||
image: /images/v130-years.png | ||
tags: | ||
- Minima | ||
- Jekyll | ||
- Release Notes | ||
--- | ||
|
||
This release adds an "outdated content warning" for older content, with basic customisation. [Older release notes](/v1.0.2/) will display it! | ||
|
||
| Years ago | Days ago | | ||
| :---------------------------------------------------: | :-------------------------------------------------: | | ||
| [![](/images/v130-years.png)](/images/v130-years.png) | [![](/images/v130-days.png)](/images/v130-days.png) | | ||
|
||
By default, no warning is shown on any posts, however adding this to `_config.yml` will enable it: | ||
|
||
{% raw %} | ||
``` | ||
outdated_content_warning: | ||
warning_text: "⚠️ This article was last updated <b>TIME_AGO</b> and may be outdated." | ||
placeholder_text: "TIME_AGO" | ||
warning_threshold_days: 365 | ||
ignore_date_updated: false | ||
``` | ||
{% endraw %} | ||
|
||
Each field should be simple enough: | ||
|
||
- `warning_text` & `placeholder_text` determine the text to be displayed, and where the days / years ago text should go. The replacement text is dynamic to prevent any accidental collisions when string replacing. | ||
- `warning_threshold_days` determines the minimum number of days old a post should be before showing the warning. | ||
- `ignore_date_updated` forces the alert to only consider the *publish date* is outdated, instead of the default behaviour of considering modified date (if set). | ||
|
||
Additionally, any article can set `hide_content_warning` to `true` to force the banner to be hidden even on outdated posts. |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.