Skip to content

Commit

Permalink
fix(jekyll): do not display start year when it is current year
Browse files Browse the repository at this point in the history
  • Loading branch information
ourai committed Apr 10, 2024
1 parent ba29f16 commit 23a990e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@ Please follow the documentation [on the website](https://ourai.github.io/lime/).

## License

[MIT](https://opensource.org/licenses/MIT)
Source code is released under the [MIT](./LICENSE) license, and documents are shared under the [CC BY-NC-SA 4.0](./LICENSE-docs) license.

Copyright (c) 2015-present, Ourai Lin
2 changes: 1 addition & 1 deletion src/jekyll/_includes/ksio/components/copyright.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{% assign _inc_cr = site.ksio.copyright %}{% if _inc_cr %}{% assign _inc_current = site.time | date: "%Y" %}{% assign _inc_start = _inc_cr.period.start | default: _inc_current %}{% assign _inc_site_url = "/" | prepend: site.baseurl | prepend: site.url %}{% assign _inc_url = _inc_cr.owner.url | default: _inc_site_url %}{% if _inc_url contains "http" %}
{% assign _inc_cr = site.ksio.copyright %}{% if _inc_cr %}{% assign _inc_current = site.time | date: "%Y" | plus: 0 %}{% assign _inc_start = _inc_cr.period.start | default: _inc_current | plus: 0 %}{% assign _inc_site_url = "/" | prepend: site.baseurl | prepend: site.url %}{% assign _inc_url = _inc_cr.owner.url | default: _inc_site_url %}{% if _inc_url contains "http" %}
{% assign _inc_external = true %}{% if include.utm %}
{% assign _inc_url = _inc_url | append: "?" | append: include.utm %}
{% endif %}
Expand Down

0 comments on commit 23a990e

Please sign in to comment.