Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Returns this post as rendered HTML
"""
return self.data.html
+
+ @property
+ def tags(self):
+ return self.data.tags
.blog-post {
// Custom CSS for blog posts goes here
+
+ &.lightning-wire-labs {
+ h5:first-of-type, a {
+ color: $lwl;
+ }
+ }
}
// Sidebar navigation
-<div class="blog-post">
+<div class="blog-post {% if "lightning-wire-labs" in post.tags %}lightning-wire-labs{% end %}">
<h5 class="mb-0">{{ post.title }}</h5>
<p class="small text-muted">