summaryrefslogtreecommitdiffstats
path: root/_includes/dayofweek.html
diff options
context:
space:
mode:
authorsijanec <sijanecantonluka@gmail.com>2020-11-08 14:01:54 +0100
committersijanec <sijanecantonluka@gmail.com>2020-11-08 14:01:54 +0100
commit3d0c09e2d9e93a107e7fec85002a0462408b52da (patch)
tree6724c2f2d1965f3b8339b18ddebfd3e9a6eeb7b5 /_includes/dayofweek.html
parentpopravil arial na sans-seriv - nimajo vsi ariala naloženega (diff)
downloadsijanec.eu-3d0c09e2d9e93a107e7fec85002a0462408b52da.tar
sijanec.eu-3d0c09e2d9e93a107e7fec85002a0462408b52da.tar.gz
sijanec.eu-3d0c09e2d9e93a107e7fec85002a0462408b52da.tar.bz2
sijanec.eu-3d0c09e2d9e93a107e7fec85002a0462408b52da.tar.lz
sijanec.eu-3d0c09e2d9e93a107e7fec85002a0462408b52da.tar.xz
sijanec.eu-3d0c09e2d9e93a107e7fec85002a0462408b52da.tar.zst
sijanec.eu-3d0c09e2d9e93a107e7fec85002a0462408b52da.zip
Diffstat (limited to '')
-rw-r--r--_includes/dayofweek.html6
1 files changed, 3 insertions, 3 deletions
diff --git a/_includes/dayofweek.html b/_includes/dayofweek.html
index 41dd2e4..794f5cb 100644
--- a/_includes/dayofweek.html
+++ b/_includes/dayofweek.html
@@ -3,15 +3,15 @@
return: day in week (1: monday)
{% endcomment %}
{% assign dayinweek_datearr = argv[0] | split: " " %}
-{% assign dayinweek_datearr = dayinweek_datearr | split: "-" %}
+{% assign dayinweek_datearr = dayinweek_datearr[0] | split: "-" %}
{% assign dayinweek_magic = "032503514624" | split: "" %}
{% assign dayinweek_mesec = dayinweek_datearr[1] | plus: 0 %}
{% assign dayinweek_day = dayinweek_datearr[2] | plus: 0 %}
{% assign dayinweek_magicselector = dayinweek_mesec | minus: 1 %}
{% if dayinweek_mesec < 3 %}
- {% assign dayofweek_leto = argv[0] | minus: 1 %}
+ {% assign dayofweek_leto = dayinweek_datearr[0] | minus: 1 %}
{% else %}
- {% assign dayofweek_leto = argv[0] | plus: 0 %}
+ {% assign dayofweek_leto = dayinweek_datearr[0] | plus: 0 %}
{% endif %}
{% assign return = dayofweek_leto | divided_by: 4 | plus: dayofweek_leto | plus: dayinweek_day | plus: dayinweek_magic[dayinweek_magicselector] %}
{% assign dayofweek_leto_div = dayofweek_leto | divided_by: 100 %}