Initial commit: simpleblog

This commit is contained in:
2026-11-14 17:05:01 +00:00
commit 31c4580da4
91 changed files with 53494 additions and 0 deletions
+26
View File
@@ -0,0 +1,26 @@
{% extends "base.html" %}
{% block title %}Sign in · {{ site_title }}{% endblock %}
{% block content %}
<div class="admin-wrap" style="max-width:420px;">
<div class="admin-panel">
<h1 class="page-heading" style="font-size:1.6rem;">Admin</h1>
{% with messages = get_flashed_messages(with_categories=true) %}
{% for category, message in messages %}
<div class="notice notice-{{ category }}">{{ message }}</div>
{% endfor %}
{% endwith %}
<form method="post" action="{{ url_for('admin.admin_login') }}">
<input type="hidden" name="csrf_token" value="{{ csrf_token }}">
<div class="form-group">
<label for="password">Password</label>
<input type="password" id="password" name="password" autocomplete="current-password" maxlength="1024" autofocus required>
</div>
<button type="submit" class="btn btn-primary" style="width:100%;">Sign in</button>
</form>
<p style="font-size:0.85rem;color:var(--color-muted);margin-top:18px;">
<a href="{{ url_for('public.index') }}" style="color:var(--color-link);">← Back to site</a>
</p>
</div>
</div>
{% endblock %}