first commit

This commit is contained in:
2025-03-07 10:04:42 +00:00
commit f3a71e8d12
23 changed files with 732 additions and 0 deletions

17
views/blogmain.twig Normal file
View File

@ -0,0 +1,17 @@
{% extends layout %}
{% block title %}Blog{% endblock %}
{% block content %}
<div id="overview">
<h1>Blog Overview</h1>
{% foreach($posts as $post): %}
<div class="post">
<a href="/post/{{ $post->getId() }}">{{ $post->getTitle() }}</a>
<p>{{ $post->getContent(50) }}</p>
<p>Datum: 2025-03-04</p>
<p>Autor: Beispielautor</p>
</div>
{% endforeach; %}
</div>
{% endblock %}