commit - cb05cce7a39f2f45a21248ada25ecdfd073f64f8
commit + 1d31253b05b32f7f88dcb8b93ea83ab69a5aca21
blob - e4645b4cd4117cf58f9c1be7c57cd19479f5306f
blob + 3dcf0fd7db28047f7dc8fa420de479889452028b
--- fragments.tmpl
+++ fragments.tmpl
{{ define tp_figure(struct template *tp, const char *url,
const char *label) }}
-{!
- struct client *clt = tp->tp_arg;
- const char *path = "";
- int relativify;
-
- relativify = *url == '/' || strstr(url, "//") == NULL;
- if (relativify) {
- path = clt->clt_script_name;
- url++; /* skip leading / */
- }
-!}
<figure>
- <a href="{{ path | urlescape }}{{ url | urlescape }}">
- <img src="{{ path | urlescape }}{{ url | urlescape }}" />
+ <a href="{{ url | urlescape }}">
+ <img src="{{ url | urlescape }}" />
</a>
<figcaption>
{{ label }}