feat: added first draft of Database based website rendering
Some checks failed
/ phplint (push) Failing after 3s

This commit is contained in:
xaseiresh 2023-10-22 12:59:20 +02:00
parent 5bcba0b689
commit fcc42bde20
4 changed files with 171 additions and 23 deletions

View file

@ -3,11 +3,23 @@
{% extends "root.html" %}
{% block second_title %}
<h2> Abouts </h2>
<h2> {{ post.post_metadata.title }} </h2>
{% endblock %}
{%block main_content%}
<article>
{{ include('about.md')|markdown_to_html }}
{{ post['post_content']|markdown_to_html }}
</article>
{% if subposts|length > 0 %}
<article>
<h3>Related:</h3>
<ul>
{% for subpost in subposts %}
<li><a href={{subpost.post_path}}>{{ subpost.post_metadata.title }}</a></li>
{% endfor %}
</ul>
</article>
{%endif%}
{%endblock%}

View file

@ -0,0 +1,19 @@
{% extends "root.html" %}
{% block second_title %}
<h2> Abouts </h2>
{% endblock %}
{%block main_content%}
<article>
{{ include('about.md')|markdown_to_html }}
</article>
<ul>
{% for subpost in subposts %}
<li> {{ subpost.title }} </li>
{% endfor %}
</ul>
{%endblock%}