mirror of
https://github.com/SebastianStork/kita.git
synced 2026-01-21 12:11:35 +01:00
feat: better copyright year formatting (#17)
This commit is contained in:
parent
6fc7951994
commit
c2a7f409f0
1 changed files with 4 additions and 2 deletions
|
|
@ -1,7 +1,9 @@
|
|||
<footer class="mx-auto flex max-w-3xl flex-wrap items-center px-8 py-4 text-sm opacity-60">
|
||||
<div class="mr-auto basis-full lg:basis-1/2">
|
||||
© {% if config.extra.footer.since %}{{ config.extra.footer.since }} - {% endif %} {{ now()
|
||||
| date(format="%Y") }}
|
||||
{% set current_year = now() | date(format="%Y") | int %}
|
||||
© {% if config.extra.footer.since and config.extra.footer.since != current_year %}
|
||||
{{ config.extra.footer.since }} - {{ current_year }}
|
||||
{% else %}{{ current_year }}{% endif %}
|
||||
<a class="link" href="{{ get_url(path=``) }}"
|
||||
>{{ config.author | default(value=config.title) }}</a
|
||||
>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue