pretty.html: refactor
Make actual use of the Tera templating, when youre intending to use it. Signed-off-by: Gunwant Jain <mail@wantguns.dev>
This commit is contained in:
62
templates/base.html.tera
Normal file
62
templates/base.html.tera
Normal file
@@ -0,0 +1,62 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta name="Description" content="Author: Gunwant Jain,
|
||||
A highly opinionated, minamalistic Pastebin without the bloat of a database.">
|
||||
<title>{{ title }}</title>
|
||||
|
||||
<style>
|
||||
|
||||
@import url('https://fonts.googleapis.com/css2?family=Fira+Code:wght@460&display=swap');
|
||||
|
||||
/* fill entire page */
|
||||
code {
|
||||
padding: 0px;
|
||||
background: transparent !important;
|
||||
font-family: 'Fira Code', monospace;
|
||||
}
|
||||
|
||||
body {
|
||||
/* Change background color to that of your theme's */
|
||||
background: #191f26;
|
||||
padding: 20px 50px;
|
||||
margin: 0px;
|
||||
color: #5c6773;
|
||||
}
|
||||
|
||||
/* remove scrollbar */
|
||||
html {
|
||||
overflow: scroll;
|
||||
overflow-x: hidden;
|
||||
scrollbar-width: none;
|
||||
}
|
||||
::-webkit-scrollbar {
|
||||
width: 0px;
|
||||
background: transparent;
|
||||
}
|
||||
|
||||
::selection {
|
||||
/* text selection color
|
||||
make sure to change to your your preferred color if changing the default colorscheme */
|
||||
background: #253340;
|
||||
}
|
||||
|
||||
{% block styles %}
|
||||
{% endblock styles %}
|
||||
|
||||
</style>
|
||||
|
||||
{% block head %}
|
||||
{% endblock head %}
|
||||
|
||||
</head>
|
||||
|
||||
|
||||
<body>
|
||||
{% block body %}{% endblock body %}
|
||||
</body>
|
||||
|
||||
</html>
|
||||
Reference in New Issue
Block a user