Skip to content

Commit d475000

Browse files
committed
add author name check in blog-post.html
1 parent 55336c1 commit d475000

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

templates/blog-post.html

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
{% block header %}{{ this.parent.title }}{% endblock %}
44
{% block body %}
55
<h2 class="mb-0">{{ this.title }}</h2>
6+
{{ check_file('content' + this.parent.parent.path + '/authors/' + this.author + '/contents.lr') }}
67
<p class="meta text-muted mt-0">by <a href="{{ this.parent.parent.children.get('authors').path + '/' + this.author }}">{{ this.author }}</a>
78
on {{ this.pub_date|dateformat('EEEE, yyyy ''MMMM d') }}</p>
89
<div class="body">{{ this.body }}</div>

0 commit comments

Comments
 (0)