simplifying theme layout
This commit is contained in:
@@ -11,13 +11,13 @@
|
||||
|
||||
{% block scripts %}
|
||||
<!-- for converting markdown to html -->
|
||||
<script src="{{ url_for('static', filename='editor/purify.min.js' ) }}"></script>
|
||||
<script src="{{ url_for('static', filename='editor/marked.umd.min.js' ) }}"></script>
|
||||
<script src="{{ url_for('static', filename='editor/froghat.js' ) }}"></script>
|
||||
<script src="{{ url_for('static', filename='purify.min.js' ) }}"></script>
|
||||
<script src="{{ url_for('static', filename='marked.umd.min.js' ) }}"></script>
|
||||
<script src="{{ url_for('static', filename='froghat.js' ) }}"></script>
|
||||
{% if user.can_write(page) %}
|
||||
<script src="{{ url_for('static', filename='editor/turndown.js' ) }}"></script>
|
||||
<script src="{{ url_for('static', filename='editor/joplin-turndown-plugin-gfm.js' ) }}"></script>
|
||||
<script src="{{ url_for('static', filename='editor/froghat-editor.js' ) }}"></script>
|
||||
<script src="{{ url_for('static', filename='turndown.js' ) }}"></script>
|
||||
<script src="{{ url_for('static', filename='joplin-turndown-plugin-gfm.js' ) }}"></script>
|
||||
<script src="{{ url_for('static', filename='froghat-editor.js' ) }}"></script>
|
||||
{% endif %}
|
||||
<script>
|
||||
const wiki = new Froghat{% if user.can_write(page) %}Editor{% endif %}({plugins: [MacroPlugin, WidgetPlugin]});
|
||||
|
||||
Reference in New Issue
Block a user