diff --git a/CHANGELOG.md b/CHANGELOG.md index 32046491..3f356074 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,7 @@ - Hide page__footer-follow if there are no links nor atom feed. (#5279) - Add HTML escaping for some titles, labels and metada that was missing. (#5276) +- Add optional `footer.since` for copyright time range. (#5275) ## [4.27.1](https://github.com/mmistakes/minimal-mistakes/releases/tag/4.27.1) diff --git a/_config.yml b/_config.yml index 85149179..ae0f8495 100644 --- a/_config.yml +++ b/_config.yml @@ -159,6 +159,7 @@ footer: - label: "Instagram" icon: "fab fa-fw fa-instagram" # url: + since: "2013" # Reading Files diff --git a/_includes/footer.html b/_includes/footer.html index 36d0ebb8..43ca551e 100644 --- a/_includes/footer.html +++ b/_includes/footer.html @@ -23,4 +23,4 @@ {% endif %} -
+ diff --git a/docs/_config.yml b/docs/_config.yml index 2266a904..2935fc44 100644 --- a/docs/_config.yml +++ b/docs/_config.yml @@ -129,6 +129,7 @@ footer: - label: "Instagram" icon: "fab fa-fw fa-instagram" url: "https://instagram.com/mmistakes" + since: "2013" # Reading Files diff --git a/docs/_docs/05-configuration.md b/docs/_docs/05-configuration.md index 09272ec6..c748218d 100644 --- a/docs/_docs/05-configuration.md +++ b/docs/_docs/05-configuration.md @@ -962,6 +962,15 @@ footer: To change "Follow:" text that precedes footer links, edit the `follow_label` key in `_data/ui-text.yml`. +The copyright notice in the footer shows the year the site has been generated. This can be overridden with `time` in `_config.yml`. If `footer.since` is added and the value is not equal to the current year or the optional value of `time`, then a time range will be shown. + +```yaml +footer: + since: "2013" +``` + +The above will result for example in `© 2013 - 2025 Minimal ...`. Note that `time` and `footer.since` also support values other than year numbers. + ## Reading files Nothing out of the ordinary here. `include` and `exclude` may be the only things you need to alter. diff --git a/test/_config.yml b/test/_config.yml index 9656a376..14b39288 100644 --- a/test/_config.yml +++ b/test/_config.yml @@ -122,6 +122,7 @@ footer: - label: "Instagram" icon: "fab fa-fw fa-instagram" url: "https://instagram.com/" + since: "2013" # Reading Files