Files
sarah/config/templates/partials/greeting.yaml
T
2020-07-26 13:40:20 +03:00

12 lines
252 B
YAML

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