mirror of
https://github.com/GeorgeSG/sarah.git
synced 2026-09-06 18:08:45 +00:00
Refactor greeting template
This commit is contained in:
@@ -1,8 +1,10 @@
|
|||||||
>-
|
>-
|
||||||
|
|
||||||
{%- if now().strftime('%H')|int < 12 and now().strftime('%H')|int > 6 -%}
|
{% let current_hour = now().strftime('%H')|int %}
|
||||||
|
|
||||||
|
{%- if current_hour < 12 and current_hour > 6 -%}
|
||||||
Good morning!
|
Good morning!
|
||||||
{%- elif now().strftime('%H')|int >= 12 and now().strftime('%H')|int < 17 -%}
|
{%- elif current_hour >= 12 and current_hour < 17 -%}
|
||||||
Good afternoon!
|
Good afternoon!
|
||||||
{%- else -%}
|
{%- else -%}
|
||||||
Good evening!
|
Good evening!
|
||||||
|
|||||||
Reference in New Issue
Block a user