From d1745a9c1e46d43af005ac966cf4170192b76f97 Mon Sep 17 00:00:00 2001 From: Matt Arnold Date: Wed, 9 Apr 2025 15:24:29 -0400 Subject: Supercommit --- templates/create.html | 110 ++++++++++++++++++++++++++++++++++++++++++++++++++ templates/post.html | 4 +- 2 files changed, 112 insertions(+), 2 deletions(-) create mode 100644 templates/create.html (limited to 'templates') diff --git a/templates/create.html b/templates/create.html new file mode 100644 index 0000000..4d48992 --- /dev/null +++ b/templates/create.html @@ -0,0 +1,110 @@ +{% extends "base.html" %} +{% block content %} + + + + +

Blob Create

+ + + +
+ + +
+ +
+
+ {{ form.hidden_tag() }} +

+ {{form.title.label}}: {{form.title}}
+ {{ form.content.label }}
+ {{ form.content(cols="80", rows="24") }} +

+

+ Markdown is fully supported
+ {% for error in form.content.errors %} + [{{ error }}] + {% endfor %} +

+

{{ form.submit() }}

+
+
+ Use The Advanced Editor + +
  • +
  • +
    +
    +
    + +
    + + + + +{% endblock %} diff --git a/templates/post.html b/templates/post.html index 5a28b2b..8272d37 100644 --- a/templates/post.html +++ b/templates/post.html @@ -3,6 +3,6 @@ {% block content %}

    {{ post.title }}

    {{ post.created_at.strftime('%Y-%m-%d %H:%M') }}

    -
    {{ post.content }}
    +
    {{ post.content|markdown|safe }}
    Back to posts -{% endblock %} \ No newline at end of file +{% endblock %} -- cgit 1.4.1-2-gfad0