Add basic templates
This commit is contained in:
parent
c2d775b30e
commit
b4cac9d1dc
3 changed files with 87 additions and 0 deletions
26
templates/base.html
Normal file
26
templates/base.html
Normal file
|
@ -0,0 +1,26 @@
|
|||
<!doctype html>
|
||||
<html lang="en-CA">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
|
||||
<title>{% block title %} Evie / eviee / uwueviee - {{ title }}{% endblock %}</title>
|
||||
<meta name="description" content="{% block description %}{{ description }}{ %endblock% }">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<link rel="stylesheet" href="static/css/sakura-vader.css" type="text/css">
|
||||
<link rel="stylesheet" href="static/css/meow.css" type="text/css">
|
||||
</head>
|
||||
<body>
|
||||
<h1>🐈 Evie / eviee / uwueviee</h1>
|
||||
|
||||
{% block menus %}{% endblock %}
|
||||
|
||||
<hr />
|
||||
|
||||
<div id="content">
|
||||
{% block content %}{% endblock %}
|
||||
</div>
|
||||
|
||||
<hr />
|
||||
<p class="footer">Made with 🏳️⚧️💜 and Rust. Check out the source <a href="https://git.gaycatgirl.sex/evie/personal-site">here</a>. © {{ year }} Evie Viau</p>
|
||||
</body>
|
||||
</html>
|
24
templates/page.html
Normal file
24
templates/page.html
Normal file
|
@ -0,0 +1,24 @@
|
|||
{% extends "base.html" %}
|
||||
|
||||
{% block title %}{{ title }}{% endblock %}
|
||||
|
||||
{% block description %}
|
||||
{% match description %}
|
||||
{% when Some with (description_content) %}
|
||||
{{ description_content }}
|
||||
{% when None %}
|
||||
A page on eviee.gay
|
||||
{% endmatch %}
|
||||
{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
|
||||
{% if show_title == true -%}
|
||||
<h1>{{ title }}</h1>
|
||||
{% endif -%}
|
||||
|
||||
{% for block in blocks %}
|
||||
<p>block is real</p>
|
||||
{% endfor %}
|
||||
|
||||
{% endblock %}
|
37
templates/post.html
Normal file
37
templates/post.html
Normal file
|
@ -0,0 +1,37 @@
|
|||
{% extends "base.html" %}
|
||||
|
||||
{% block title %}{{ title }}{% endblock %}
|
||||
|
||||
{% block description %}
|
||||
{% match summary %}
|
||||
{% when Some with (summary_content) %}
|
||||
{{ summary_content }}
|
||||
{% when None %}
|
||||
A post on eviee.gay
|
||||
{% endmatch %}
|
||||
{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<h1>{{ title }}</h1>
|
||||
{% match summary %}
|
||||
{% when Some with (summary_content) %}
|
||||
<h2>{{ summary_content }}</h2>
|
||||
{% when None %}
|
||||
{% endmatch %}
|
||||
{% match last_updated %}
|
||||
{% when Some with (last_updated_date) %}
|
||||
<p>Published: {{ publish_date }} | Last updated: {{ last_updated_date }}</p>
|
||||
{% when None %}
|
||||
<p>Published: {{ publish_date }}</p>
|
||||
{% endmatch %}
|
||||
|
||||
<br />
|
||||
|
||||
{% for block in blocks %}
|
||||
<p>block is real</p>
|
||||
{% endfor %}
|
||||
|
||||
<br />
|
||||
|
||||
<i>Comments are W.I.P</i>
|
||||
{% endblock %}
|
Reference in a new issue