diff --git a/screenless/bureau/publications/news.html b/screenless/bureau/publications/news.html index 4808b1f..6e08968 100644 --- a/screenless/bureau/publications/news.html +++ b/screenless/bureau/publications/news.html @@ -82,7 +82,7 @@
${entry.title}
${entry.source}
${entry.summary}
-
${entry.dbhash}
+
${entry.svg}
% endfor diff --git a/screenless/bureau/publications/publications.py b/screenless/bureau/publications/publications.py index 7dcf88f..b280709 100644 --- a/screenless/bureau/publications/publications.py +++ b/screenless/bureau/publications/publications.py @@ -174,6 +174,7 @@ class Publications(Bureau): entry = feed.entries.pop() entry.source = feed.feed.title entry.dbhash = self._make_shorturl(entry.link) + entry.svg = code128.svg("PBr." + entry.dbhash) if hasattr(entry, "media_thumbnail"): entry.img = entry.media_thumbnail[-1]["url"] else: