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