fix: Edit button broken url
This commit is contained in:
parent
a9de529c2b
commit
3e9cfcd7cf
|
@ -23,14 +23,14 @@
|
||||||
<article>
|
<article>
|
||||||
{% if not edit %}
|
{% if not edit %}
|
||||||
{% if path != '' %}
|
{% if path != '' %}
|
||||||
<a href="{{ path }}?edit">Edit</a>
|
<a href="/{{ path }}?edit">Edit</a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% autoescape false %}
|
{% autoescape false %}
|
||||||
{{ markdown(content, extensions=['extra']) }}
|
{{ markdown(content, extensions=['extra']) }}
|
||||||
{% endautoescape %}
|
{% endautoescape %}
|
||||||
{% else %}
|
{% else %}
|
||||||
<form method="POST" action="{{ path }}">
|
<form method="POST" action="/{{ path }}">
|
||||||
<textarea id="markdown-textarea" name="text">{{ content }}</textarea>
|
<textarea id="markdown-textarea" name="text">{{ content }}</textarea>
|
||||||
<input type="submit" value="Save"/>
|
<input type="submit" value="Save"/>
|
||||||
<form>
|
<form>
|
||||||
|
|
Loading…
Reference in New Issue