~robin_jadoul/blog

0a38de85a22febfeae230ca7d6ea8e3c8ad7b7b3 — Robin Jadoul 8 months ago d22913a
Slightly cleaner page for encrypted posts
1 files changed, 5 insertions(+), 1 deletions(-)

M templates/encrypted_post.html
M templates/encrypted_post.html => templates/encrypted_post.html +5 -1
@@ 1,4 1,5 @@
{% extends "base.html" %}
{% import 'post.frag.html' as Post %}

{% block head %}
<script type="text/javascript">


@@ 17,7 18,10 @@
{% endblock %}

{% block body %}
<h1>Password protected post</h1>
{% if metadata.title %}<h1 class="main-title">{{ metadata.title }}</h1>{% endif %}
{{ Post.meta(metadata) }}

<h2>Password protected post</h2>
<p>This post is password protected, enter the corresponding password (e.g. the flag for a CryptoHack challenge) below to decrypt it (needs javascript).</p>
<form id="encryption_form">
    <input type="password" id="password_input" placeholder="password" />