Update
This commit is contained in:
parent
94fb270008
commit
584c07ff23
22 changed files with 539 additions and 187 deletions
33
backend/templates/base.html
Normal file
33
backend/templates/base.html
Normal file
|
@ -0,0 +1,33 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<title>{% block title %}{% endblock %} | dergrimm's blog</title>
|
||||
|
||||
<link rel="preconnect" href="https://fonts.bunny.net" />
|
||||
<link href="https://fonts.bunny.net/css?family=jetbrains-mono:400" rel="stylesheet" />
|
||||
|
||||
<link rel="stylesheet" href="/static/css/styles.css" />
|
||||
|
||||
{% block head %}{% endblock %}
|
||||
</head>
|
||||
<body>
|
||||
<div id="wrapper">
|
||||
<nav id="navbar" class="double-border">
|
||||
<div id="navbar-brand"><a href="/">dergrimm's blog</a></div>
|
||||
<div id="navbar-links">
|
||||
<ul>
|
||||
<li><a href="/posts">posts</a></li>
|
||||
<li><a href="/about">about</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</nav>
|
||||
|
||||
<div id="content" class="double-border">
|
||||
{% block content %}{% endblock %}
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
11
backend/templates/posts/{slug}.html
Normal file
11
backend/templates/posts/{slug}.html
Normal file
|
@ -0,0 +1,11 @@
|
|||
{% extends "base.html" %}
|
||||
|
||||
{% block title %}{{ post.name }}{% endblock %}
|
||||
|
||||
{% block head %}{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<div class="blog">
|
||||
{{ post.content|cmark|safe }}
|
||||
</div>
|
||||
{% endblock %}
|
14
backend/templates/status_code.html
Normal file
14
backend/templates/status_code.html
Normal file
|
@ -0,0 +1,14 @@
|
|||
{% extends "base.html" %}
|
||||
|
||||
{% block title %}{{ status_code }}{% endblock %}
|
||||
|
||||
{% block head %}{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<h1>{{ status_code }}!</h1>
|
||||
{% match message %}
|
||||
{% when Some with (x) %}
|
||||
<p>{{ x }}</p>
|
||||
{% when None %}
|
||||
{% endmatch %}
|
||||
{% endblock %}
|
Loading…
Add table
Add a link
Reference in a new issue