Files
sarah/config/templates/partials/greeting.yaml
T
2020-03-20 02:08:56 +02:00

10 lines
247 B
YAML

>-
{%- if now().strftime('%H')|int < 12 and now().strftime('%H')|int > 6 -%}
Good morning!
{%- elif now().strftime('%H')|int >= 12 and now().strftime('%H')|int < 17 -%}
Good afternoon!
{%- else -%}
Good evening!
{%- endif -%}