Add a base template
This commit is contained in:
parent
743e6a23d4
commit
ae60d5961c
11
templates/base.tera
Normal file
11
templates/base.tera
Normal file
@ -0,0 +1,11 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>{% block title %}{% endblock title %} ⋅ Plume</title>
|
||||
</head>
|
||||
<body>
|
||||
{% block content %}
|
||||
{% endblock content %}
|
||||
</body>
|
||||
</html>
|
@ -1,10 +1,10 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>New blog</title>
|
||||
</head>
|
||||
<body>
|
||||
{% extends "base" %}
|
||||
|
||||
{% block title %}
|
||||
New blog
|
||||
{% endblock title %}
|
||||
|
||||
{% block content %}
|
||||
<h1>Create a blog</h1>
|
||||
<form method="post">
|
||||
<label for="title">Title</label>
|
||||
@ -12,5 +12,4 @@
|
||||
|
||||
<input type="submit" value="Create blog"/>
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
||||
{% endblock content %}
|
||||
|
@ -1,10 +1,10 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>Configuration</title>
|
||||
</head>
|
||||
<body>
|
||||
{% extends "base" %}
|
||||
|
||||
{% block title %}
|
||||
Configuration
|
||||
{% endblock title %}
|
||||
|
||||
{% block content %}
|
||||
<h1>Configure your instance</h1>
|
||||
<form method="post">
|
||||
<label for="name">Name</label>
|
||||
@ -12,5 +12,4 @@
|
||||
|
||||
<input type="submit" value="Let's go!"/>
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
||||
{% endblock content %}
|
||||
|
@ -1,10 +1,10 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>New post</title>
|
||||
</head>
|
||||
<body>
|
||||
{% extends "base" %}
|
||||
|
||||
{% block title %}
|
||||
New post
|
||||
{% endblock title %}
|
||||
|
||||
{% block content %}
|
||||
<h1>Create a post</h1>
|
||||
<form method="post">
|
||||
<label for="title">Title</label>
|
||||
@ -18,5 +18,4 @@
|
||||
|
||||
<input type="submit" value="Publish"/>
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
||||
{% endblock content %}
|
||||
|
@ -1,10 +1,10 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>Login</title>
|
||||
</head>
|
||||
<body>
|
||||
{% extends "base" %}
|
||||
|
||||
{% block title %}
|
||||
Login
|
||||
{% endblock title %}
|
||||
|
||||
{% block content %}
|
||||
<h1>Login</h1>
|
||||
<form method="post">
|
||||
<label for="email_or_name">Username or email</label>
|
||||
@ -15,5 +15,4 @@
|
||||
|
||||
<input type="submit" value="Login"/>
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
||||
{% endblock content %}
|
||||
|
@ -1,13 +1,12 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>{{ user.display_name }}</title>
|
||||
</head>
|
||||
<body>
|
||||
{% extends "base" %}
|
||||
|
||||
{% block title %}
|
||||
{{ user.display_name }}
|
||||
{% endblock title %}
|
||||
|
||||
{% block content %}
|
||||
<h1>{{ user.display_name }}</h1>
|
||||
<div>
|
||||
{{ user.summary | safe }}
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
{% endblock content %}
|
||||
|
@ -1,10 +1,10 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>New account</title>
|
||||
</head>
|
||||
<body>
|
||||
{% extends "base" %}
|
||||
|
||||
{% block title %}
|
||||
New Account
|
||||
{% endblock title %}
|
||||
|
||||
{% block content %}
|
||||
<h1>Create an account</h1>
|
||||
<form method="post">
|
||||
<label for="username">Username</label>
|
||||
@ -21,5 +21,4 @@
|
||||
|
||||
<input type="submit" value="Create account"/>
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
||||
{% endblock content %}
|
||||
|
Loading…
Reference in New Issue
Block a user