-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmake-post.html
More file actions
39 lines (37 loc) · 1.08 KB
/
make-post.html
File metadata and controls
39 lines (37 loc) · 1.08 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
{% from "bootstrap5/form.html" import render_form %}
{% block content %}
{% include "header.html" %}
<!-- Page Header -->
<header
class="masthead"
style="background-image: url('../static/assets/img/edit-bg.jpg')"
>
<div class="container position-relative px-4 px-lg-5">
<div class="row gx-4 gx-lg-5 justify-content-center">
<div class="col-md-10 col-lg-8 col-xl-7">
<div class="page-heading">
{% if is_edit: %}
<h1>Edit Post</h1>
{% else: %}
<h1>New Post</h1>
{% endif %}
<span class="subheading"
>You're going to make a great blog post!</span
>
</div>
</div>
</div>
</div>
</header>
<main class="mb-4">
<div class="container">
<div class="row">
<div class="col-lg-8 col-md-10 mx-auto">
{{ ckeditor.load() }}
{{ ckeditor.config(name='body') }}
{{ render_form(form, novalidate=True, button_map={"submit": "primary"}) }}
</div>
</div>
</div>
</main>
{% include "footer.html" %} {% endblock %}