first commit
This commit is contained in:
17
views/blogmain.twig
Normal file
17
views/blogmain.twig
Normal 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 %}
|
Reference in New Issue
Block a user