Implemented blog engine and improved templates
This commit is contained in:
parent
2f2b9b4f21
commit
363bd23954
27 changed files with 1310 additions and 788 deletions
59
templates/blog_entry.html
Normal file
59
templates/blog_entry.html
Normal file
|
@ -0,0 +1,59 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>{{entry.heading}}</title>
|
||||
<link rel="stylesheet" href="style.css">
|
||||
<link rel="stylesheet" href="assets/fonts/Hack/Hack.css">
|
||||
</head>
|
||||
<body>
|
||||
<header> =================================================================================
|
||||
// ___ ___ ___ _________ ___ _____ _____ //
|
||||
// / / / / / / / ______/ / / / | / | //
|
||||
// / / / / / / / / / / / /| | / /| | //
|
||||
// / / / / / / / / / / / /_| | / /_| | //
|
||||
// / / / / / / / / / / / ___ |/ ___ | //
|
||||
// / /______ / /___/ / / /______ / / / / | | / | | //
|
||||
// /_________/ /_________/ /_________/ /__/ /__/ |__|_/ |__| //
|
||||
// //
|
||||
================================================================================= </header>
|
||||
<main>
|
||||
<h1>{{entry.heading}}</h1>
|
||||
<div id="author_date">
|
||||
Written by {{entry.author}} on {{entry.date}}
|
||||
</div>
|
||||
{% if entry.content_warnings %}
|
||||
<div id="cw">
|
||||
Content Warnings:
|
||||
{% for warning in entry.content_warnings %}
|
||||
{% if loop.nextitem is defined %}
|
||||
{{warning}},
|
||||
{% else %}
|
||||
{{warning}}
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
</div>
|
||||
{% endif %}
|
||||
<div id="blog-body">
|
||||
{{entry.html}}
|
||||
</div>
|
||||
{% if entry.tags %}
|
||||
<div id="tags">
|
||||
Tags:
|
||||
{% for tag in entry.tags %}
|
||||
{% if loop.nextitem is defined %}
|
||||
<a href="tags/{{tag}}.html">#{{tag}}</a>,
|
||||
{% else %}
|
||||
<a href="tags/{{tag}}.html">#{{tag}}</a>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
</div>
|
||||
{% endif %}
|
||||
<div class="overview-backlink">
|
||||
<a href="{{overview_backlink}}"><-- go back to general overview</a>
|
||||
</div>
|
||||
</main>
|
||||
<footer></footer>
|
||||
</body>
|
||||
</html>
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue