]> git.ipfire.org Git - ipfire.org.git/commitdiff
wiki: Fix path for embedding images
authorMichael Tremer <michael.tremer@ipfire.org>
Wed, 4 Sep 2019 17:28:34 +0000 (18:28 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Wed, 4 Sep 2019 17:28:34 +0000 (18:28 +0100)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/templates/wiki/files/detail.html

index 523e82b6fcbe2c1950c89cbc86f6a5c20a5e8abb..1ac3df1329f19d1f545d27269db2361c0a2a726a 100644 (file)
                        {% if file.is_image() %}
                                <h6>{{ _("Usage") }}</h6>
 
-                               <pre><code>![]({{ file.filename }})</code></pre>
+                               <pre><code>![](./{{ file.filename }})</code></pre>
 
                                <p>{{ _("Or with an optional caption") }}</p>
 
-                               <pre><code>![]({{ file.filename }} "{{ _("Caption") }}")</code></pre>
+                               <pre><code>![](./{{ file.filename }} "{{ _("Caption") }}")</code></pre>
                        {% end %}
                </div>
        </div>