aboutsummaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorBobby <[email protected]>2022-12-29 04:47:09 -0500
committerBobby <[email protected]>2022-12-29 04:47:09 -0500
commit7cd45bf7c332fcbee6c3c19e673e43c219a9564b (patch)
tree711f00d6c006f808af44f6384c7947e56e1d697e /templates
parentfc93cc501692d98129e0a09297458bbeb771b78e (diff)
downloadthatcomputerscientist-7cd45bf7c332fcbee6c3c19e673e43c219a9564b.tar.xz
thatcomputerscientist-7cd45bf7c332fcbee6c3c19e673e43c219a9564b.zip
Fix Post editing
Diffstat (limited to 'templates')
-rw-r--r--templates/blog_admin/edit_post.html10
1 files changed, 5 insertions, 5 deletions
diff --git a/templates/blog_admin/edit_post.html b/templates/blog_admin/edit_post.html
index 88f91cb9..9cff737d 100644
--- a/templates/blog_admin/edit_post.html
+++ b/templates/blog_admin/edit_post.html
@@ -1,11 +1,10 @@
{% extends 'blog/partials/base.html' %} {% block content %}
-{% load subdomain %}
+<link href="https://cdn.quilljs.com/1.3.6/quill.snow.css" rel="stylesheet" />
<div class="main">
<section>
{% include 'blog_admin/partials/posts_topbar.html' %}
<div class="article-cover">
- {% url 'ignis:post_image' post.id as cover_url %}
- <img src="{{ cover_url|subdomain:'ignis' }}" alt="Cover Image" style="width: 720px; margin: 0 auto; display: block;">
+ <img src="{% url 'ignis:post_image' '730' post.id %}.gif" alt="Cover Image" style="width: 730px; margin: 0 auto; display: block;">
</div>
<br>
<form action="{% url 'blog-admin:edit-post' blog_slug %}" method="post" enctype="multipart/form-data">
@@ -137,6 +136,7 @@
</form>
</section>
</div>
+<script src="https://cdn.quilljs.com/1.3.6/quill.min.js"></script>
<script>
const Parchment = Quill.import("parchment");
const Delta = Quill.import("delta");
@@ -157,7 +157,7 @@
static gettex(latex) {
// make a GET request to /tex, returns a png response. render this to image tag
- const url = "{{ '/ignis/tex'|subdomain:'ignis' }}" + `?expr="${latex}"`;
+ const url = `/ignis/tex?expr="${latex}"`;
const img = `<img src='${url}' style="display: inline-block; margin: 0 auto; height: 16px; width: auto;" />`;
return img;
@@ -182,7 +182,7 @@
static gettex(latex) {
// make a POST request to /tex, returns a png response. render this to image tag
- const url = "{{ '/ignis/tex'|subdomain:'ignis' }}" + `?expr="${latex}"`;
+ const url = `/ignis/tex?expr="${latex}"`;
const img = `<img src='${url}' style="display: block; margin-left: auto; margin-right: auto; height: 24px; width: auto;" />`;
return img;
}