#Looking for advice on structuring date/time greeting header
1 messages · Page 1 of 1 (latest)
Looking for advice on structuring date/time greeting header
i feel like it's still a bit off
Maybe try something like this?
I can be customized further if you have a different kind of date formatting.
{% set greeting = 'Good Morning' if hour < 12 else 'Good Afternoon' if hour < 18 else 'Good Evening' %}
## {{ greeting }} {{ user }}
# {{ now().strftime('%H:%M') }}
{{ now().strftime('%A, %d. %B, %Y') }} ```