diff --git a/shortcodes/comm.tmpl~ b/shortcodes/comm.tmpl~ deleted file mode 100644 index 069681a..0000000 --- a/shortcodes/comm.tmpl~ +++ /dev/null @@ -1,36 +0,0 @@ -<%doc> -Return URL from email and some social networks. - -Template engine: Mako - -Usage: - - {{% url [suffix=] %}} - -where 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 to the URL - - Example: {{% url 'mastodon' }} will show the content of MASTODON_URL defined in GLOBAL_CONTEXT of config.py - - -% 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 - - -