adding tags to the table view

This commit is contained in:
mb 2023-03-10 12:35:17 +01:00
parent 6aaad14ff0
commit a578c22ded
2 changed files with 7 additions and 5 deletions

View File

@ -113,7 +113,7 @@ def create_frontmatter(entry):
'publisher': publisher,
'original_link': entry.links[0]['href'].replace('opds/cover/','books/'),
'feed_name': entry['feed_name'],
'tags': str(tags),
'tags': tags,
'category': "books"
}
else:
@ -124,7 +124,7 @@ def create_frontmatter(entry):
'author': author,
'original_link': entry.link,
'feed_name': entry['feed_name'],
'tags': str(tags),
'tags': tags,
'card_type': card_type,
'featured_image': featured_image
}

View File

@ -40,9 +40,10 @@
<tr>
<th onclick="sortTable(0)">title</th>
<th onclick="sortTable(1)">post</th>
<th onclick="sortTable(2)">feed</th>
<th onclick="sortTable(3)">date</th>
<th onclick="sortTable(4)">through</th>
<th onclick="sortTable(2)">tags</th>
<th onclick="sortTable(3)">feed</th>
<th onclick="sortTable(4)">date</th>
<th onclick="sortTable(5)">through</th>
</tr>
</thead>
<tbody>
@ -53,6 +54,7 @@
<a href="{{ post_dir }}">aggregated</a>
<a href="{{ post.frontmatter.original_link }}">source</a>
</td>
<td>{% for tag in post.frontmatter.tags %}{{ tag }} {% endfor %}</td>
<td>{{ post.frontmatter.feed_name }}</td>
<td>{{ post.frontmatter.date }}</td>
<td>{{ post.frontmatter.author }}</td>