summaryrefslogtreecommitdiffstats
path: root/_includes/datumincas.html
diff options
context:
space:
mode:
authorsijanec <sijanecantonluka@gmail.com>2020-11-07 23:43:49 +0100
committersijanec <sijanecantonluka@gmail.com>2020-11-07 23:43:49 +0100
commited8911963ad821f4afecc52c8501e2d8f7bf10c1 (patch)
tree7241207ffd45b2796478b05656e6a71458aa0293 /_includes/datumincas.html
parentdodal tekst ko je stran urejena (diff)
downloadsijanec.eu-ed8911963ad821f4afecc52c8501e2d8f7bf10c1.tar
sijanec.eu-ed8911963ad821f4afecc52c8501e2d8f7bf10c1.tar.gz
sijanec.eu-ed8911963ad821f4afecc52c8501e2d8f7bf10c1.tar.bz2
sijanec.eu-ed8911963ad821f4afecc52c8501e2d8f7bf10c1.tar.lz
sijanec.eu-ed8911963ad821f4afecc52c8501e2d8f7bf10c1.tar.xz
sijanec.eu-ed8911963ad821f4afecc52c8501e2d8f7bf10c1.tar.zst
sijanec.eu-ed8911963ad821f4afecc52c8501e2d8f7bf10c1.zip
Diffstat (limited to '')
-rw-r--r--_includes/datumincas.html21
1 files changed, 21 insertions, 0 deletions
diff --git a/_includes/datumincas.html b/_includes/datumincas.html
new file mode 100644
index 0000000..d14b26e
--- /dev/null
+++ b/_includes/datumincas.html
@@ -0,0 +1,21 @@
+{% comment %}
+ argv: datestring,notimebool,nomestnikbool
+ return: ponedeljek, 23. (novembra|november) 2020[, ob 23:59:59]
+{% endcomment %}
+{% if argv[2] %}
+ {% assign datumincas_months = "januar,februar,marec,april,maj,junij,julij,avgust,september,oktober,november,december" | split: "," %}
+ {% assign datumincas_days = "ponedeljek,torek,sreda,četrtek,petek,sobota,nedelja" | split: "," %}
+{% else %}
+ {% assign datumincas_months = "januarja,februarja,marca,aprila,maja,junija,julija,avgusta,septembra,oktobra,novembra,decembra" | split: "," %}
+ {% assign datumincas_days = "ponedeljek,torek,sredo,četrtek,petek,soboto,nedeljo" | split: "," %}
+{% endif %}
+{% assign datumincas_datetimearr = argv[0] | split: " " %}
+{% assign datumincas_arr = datumincas_datetimearr[0] | split: "-" %}
+{% assign datumincas_arr = datumincas_arr | push: datumincas_datetimearr[1] %}
+{% include dayofweek.html %}
+{% assign return = return | minus: 1%}
+{% assign datumincas_mesec = datumincas_arr[1] | minus: 1 %}
+{% assign return = datumincas_days[return] | append: ", " | append: datumincas_arr[2] | append: ". " | append: datumincas_months[datumincas_mesec] | append: " " | append: datumincas_arr[0] %}
+{% unless argv[1] %}
+ {% assign return = return | append: ", ob " | append: datumincas_arr[3] %}
+{% endunless %}