From 723b4018c73268784643a70208f6cafb6f233530 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Patricio=20Garc=C3=ADa?= Date: Sun, 24 Aug 2025 22:29:27 +0100 Subject: [PATCH] Nikola auto commit. Nikola version: 8.3.3 --- .doit.db.db | Bin 270336 -> 270336 bytes files/assets/js/gancio-events-detect.js | 20 ++++++++++---------- pages/events.md | 2 +- shortcodes/gancio-events-detect.tmpl | 24 +++++++++++++++++++++++- shortcodes/tabpannel.tmpl | 1 - 5 files changed, 34 insertions(+), 13 deletions(-) diff --git a/.doit.db.db b/.doit.db.db index 9505a327cd1890763813169a889c1479f44b0d59..37d26201ad39e894896c8225097a4b67f168cc72 100644 GIT binary patch delta 1334 zcmbW0TWB0r7{~X_$)&kWc9W27*wkiCwk4)&asBYx7exHpk7dQ8wlpHtLt_PS?#8?d<-#*cw*x z?rlfo(Y~DRa3=CZ60VrtpQV(@{%ki3e9nmz_@N~NTiB6pQQu-TVo{(JW$^s6(FG5G zhttLLeZQz`nMfphz`1IeP0+e$bAr#yl~zoBegcFj1y zuO>d$TwP30HXMid4ZInC?L{g0wg=V2$|`R8>uD^9I_ECvkE9B3fq@*#!bb>aVEZc0 z!CnKWVYUbLz;=YQuxAyg=N52g-p~sMwxR~O{5h@%b5&P9ltURf+KXCY57zHSzQApz zp{;1DN=V{3B+mqu4%7M_K^;xOp@K<8lqJK!@?F=pl*59kf`SOfy%Op}ZS$Q&4GHtB z`{T1`9)uIscsKksj-G|oWxN5|cJvOEf5(qO;dRsuBcmu2 zfAeKM%&r?x!rBfU$hj%h0Y4V-Sf-*6RW$0W@>^97lo-T`+V~t{x~vmk>B5ch@ezG1 zb>W*~Z4M8@g$+CdYdi5%u=FlE9Fq?^VfA~XSi1T})PjJFqHE_fxL7LxU_5~4>+vZl z)Zi6ZdD}PuOGmIai#V2(w>h=B(qW{8Qq9u0ENMrfsGLGEZZqPkNJvJ7X%O8XFMQYy y_q=LcNnz}Il!v_wM&mzZry+F=O~b%jMh{%|vhiHSfCebVyNPYL<^oKAGx!wI)6ibyj1-i!V$v|HGeu=KsIT zKUFJC)d~ykZuhCCOl~FrbAB=ZV{R#z=3dB|7S+<5U2VSEbfxLkqHqs3rS!CwJk&Kc2V#wcaf>vy&G``wr3-Os@z40{*6uL$OcX{u@cl$4F(XDurj7PIDTGuh?Q_#wkW0%?uT3u$ z8x}hzvX|lNUEBqqVY~(Q-@zSlz_H=xZ9H&h-sZ^~yb(rjUT^hNWJVt?t>3rq)QwJxR+%dR#Ep z@A^X3Q41EykWdjB9>;;8L70dzF@i=s)<*hO)Q8&6uG^i>Qy>b>^0u>U%`B_t=lD*IAUO+>$|XuWBm zBf_+ZIiXUa&oGv-d>GAQ->f1Naz9-U=Vi6AXIETSDX{_!k zI^ApGqdq4KH%d-^*G~5cRYDR=IpJkZd`4xzYvrxCGk!!_NO%-Q)M$H&XTmU{k`k`0 zv^^tmuHY^kE0>wcH9`VUbOk|2sB#ywvV-;Z^ul$X$eTeAd2*dOxO zP^Yp3JP_W><}SF};pCz8sM89UO3sFsO7M&s-(e=rOB3VZE;%mjox#~R8#42sJU90#Md2Vxuc@&ai2+H$+~HLQ4T6Aj?K;B zbx;{V(=arG4b -{{% gancio-events-detect %}} +{{% gancio-events-detect ge_id='nextevents' tab_next='0' tab_past='1' %}} diff --git a/shortcodes/gancio-events-detect.tmpl b/shortcodes/gancio-events-detect.tmpl index 9f196fb..3418b29 100644 --- a/shortcodes/gancio-events-detect.tmpl +++ b/shortcodes/gancio-events-detect.tmpl @@ -1,6 +1,28 @@ <%doc> Load gancio-events-detect.js and call ActivePastEventsIfNotNexts() when page is load + +Template engine: Mako + +Usage: +tab_next, tab_past + {{% gancio-events-detect ge_id= [tab_next=] [tab_past=] %}} + +where is the ID of past gancio-events HTML tag, tab_next and tab_past are the number of tabs for next and past events +% if tab_next is UNDEFINED: + <% tn = '0' %> +% else: + <% tn = tab_next %> +% endif +% if tab_past is UNDEFINED: + <% tp = '1' %> +% else: + <% tp = tab_past %> +% endif + <% site.template_hooks['body_end'].append('') %> -<% site.template_hooks['body_end'].append('') %> + +<% params = '\"' + ge_id + '\", \"' + tn + '\", \"' + tp + '\"' %> + +<% site.template_hooks['body_end'].append('') %> diff --git a/shortcodes/tabpannel.tmpl b/shortcodes/tabpannel.tmpl index 1360b72..058a7b5 100644 --- a/shortcodes/tabpannel.tmpl +++ b/shortcodes/tabpannel.tmpl @@ -23,7 +23,6 @@ separate each tab from the next with two blank lines. Where is the numb <% tabs = data.split('\n\n\n') %> -## <% lines = [item for item in lines if item != ''] %> <% ntabs = len(tabs) %> % if active is UNDEFINED: <% act = None %>