Browse Source

xmas: fix isCurrent check

places
parent
commit
2ced1489eb
  1. 2
      xmas.json

2
xmas.json

@ -18,7 +18,7 @@
}, },
"feature": { "feature": {
"pre": [ "pre": [
"{% set isCurrent = meta.timestamp > now|date_modify('-1 month')|date('Y') %}",
"{% set isCurrent = meta.timestamp >= \"now\"|date_modify('-10 month')|date('Y') %}",
"{% set bgColor = isCurrent ? '#f2756a' : 'red' %}" "{% set bgColor = isCurrent ? '#f2756a' : 'red' %}"
], ],
"title": "{{ attribute(tags, \"xmas:name\")|default(trans(\"unnamed\")) }}", "title": "{{ attribute(tags, \"xmas:name\")|default(trans(\"unnamed\")) }}",

Loading…
Cancel
Save