Skip to content

Commit ff6a20d

Browse files
committed
update author macro to query author path dynamically. creativecommons#62
1 parent 904a3f4 commit ff6a20d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

templates/macros/authors.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
{% macro render_authors() %}
1+
{% macro render_authors(authors) %}
22
<ul class="list-inline">
3-
{% for author in site.query('/authors') %}
3+
{% for author in site.query(authors.path) %}
44
<li class="list-inline-item"><a href="{{ author|url }}">{{ author.name }}</a></li>
55
{% endfor %}
66
</ul>

0 commit comments

Comments
 (0)