Skip to content

Commit

Permalink
provide articles template
Browse files Browse the repository at this point in the history
  • Loading branch information
jtallant committed Jun 18, 2024
1 parent 58e3c5d commit b15e11d
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
2 changes: 1 addition & 1 deletion config/skimpy.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
'seotitle' => 'Home',
],
'articles' => [
'template' => 'index',
'template' => 'articles',
'limit' => null,
'seotitle' => 'Articles',
]
Expand Down
11 changes: 11 additions & 0 deletions site/templates/articles.twig
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{% extends 'layouts/master' %}

{% block content %}
<h1>Articles</h1>

{% for item in entries %}
<article>
<h4><a href="{{ skimpy.url(item.uri) }}">{{ item.title }}</a></h4>
</article>
{% endfor %}
{% endblock content %}

0 comments on commit b15e11d

Please sign in to comment.