added tags functionality
This commit is contained in:
16
templates/tag.html
Normal file
16
templates/tag.html
Normal file
@@ -0,0 +1,16 @@
|
||||
{% extends "base.html" %}
|
||||
|
||||
{% block content %}
|
||||
<h2>Posts tagged with "{{ tag_name }}"</h2>
|
||||
|
||||
<div class="post-list">
|
||||
{% for p in pages %}
|
||||
<article class="post-item">
|
||||
<h3><a href="{{ url_for('post', path=p.path) }}">{{ p.title }}</a></h3>
|
||||
<span class="date">{{ p.date }}</span>
|
||||
</article>
|
||||
{% else %}
|
||||
<p>No posts found with this tag.</p>
|
||||
{% endfor %}
|
||||
</div>
|
||||
{% endblock %}
|
||||
Reference in New Issue
Block a user