create links to authors page if found ref #4

This commit is contained in:
mose 2017-08-31 08:24:05 +08:00
parent 048bf7d9b5
commit 757e6fb279

View file

@ -28,8 +28,8 @@ layout: default
{% endunless %}
{% if page.authors %}
<div class="authors">Par
{% for author in page.authors %}
{{ author }}{% unless forloop.last %}, {% endunless %}
{% for author in page.authors %}{% assign found = false %}
{% for page in site.pages %}{% if page.title == author %}<a href="{{ page.url }}"><i class=""> </i> {{ author }}</a>{% assign found = true %}{% endif %}{% endfor %}{% unless found %}{{ author }}{% endunless %}{% unless forloop.last %}, {% endunless %}
{% endfor %}
</div>
{% endif %}