Optional footer.since for copyright time range (#5275)

Co-authored-by: iBug <git@ibugone.com>
This commit is contained in:
Pander
2025-07-11 09:48:10 +08:00
committed by GitHub
co-authored by iBug
parent 30c69ad7fc
commit db81998d57
6 changed files with 14 additions and 1 deletions
+9
View File
@@ -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.