feat: ✨ added first draft of Database based website rendering
Some checks failed
/ phplint (push) Failing after 3s
Some checks failed
/ phplint (push) Failing after 3s
This commit is contained in:
parent
5bcba0b689
commit
fcc42bde20
4 changed files with 171 additions and 23 deletions
|
@ -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%}
|
||||
|
|
19
www/templates/generic_markdown_post.html
Normal file
19
www/templates/generic_markdown_post.html
Normal 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%}
|
Loading…
Add table
Add a link
Reference in a new issue