Delete shortcodes/comm.tmpl~

src
pgarcia 2025-08-13 13:48:22 +02:00
parent aca411280f
commit 797b8295a3
1 changed files with 0 additions and 36 deletions

View File

@ -1,36 +0,0 @@
<%doc>
Return URL from email and some social networks.
Template engine: Mako
Usage:
{{% url <site> [suffix=<suffix>] %}}
where <site> is one of 'email', 'xmpp', 'mastodon' or 'peertube', corresponding to GLOBAL_CONTEXT variable of EMAIL_URL, XMPP_URL, MASTODON_URL, PEERTUBE_URL and GIT_URL respectively, and sufix variable allow to add a suffix <suffix> to the URL
Example: {{% url 'mastodon' }} will show the content of MASTODON_URL defined in GLOBAL_CONTEXT of config.py
</%doc>
% if suffix is UNDEFINED:
<% s = '' %>
% else:
<% s = suffix %>
% endif
% if _args[0] == 'email':
${EMAIL_URL}${s}
% elif _args[0] == 'xmpp':
${XMPP_URL}${s}
% elif _args[0] == 'mastodon':
${MASTODON_URL}${s}
% elif _args[0] == 'peertube':
${PEERTUBE_URL}${s}
% elif _args[0] == 'git':
${GIT_URL}${s}
% else:
Unknown
% endif