Skip to content

Commit

Permalink
Merge pull request #62 from SeniorMars/apollo-home
Browse files Browse the repository at this point in the history
added a homepage!
  • Loading branch information
not-matthias authored Jun 23, 2024
2 parents 61a4860 + 999d9e2 commit 0a243a8
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
5 changes: 5 additions & 0 deletions templates/homepage.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{% extends "base.html" %}

{% block main_content %}
{{ post_macros::home_page(section=section) }}
{% endblock main_content %}
11 changes: 11 additions & 0 deletions templates/macros/macros.html
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,17 @@ <h1 class="title">
</div>
{% endmacro content %}

{% macro home_page(section) %}
<main>
<article>
<section class="body">
{{post_macros::page_header(title=section.title)}}
{{ section.content | safe }}
</section>
</article>
</main>
{% endmacro home_page %}

{% macro content(page) %}
<main>
<article>
Expand Down

0 comments on commit 0a243a8

Please sign in to comment.