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 %} {% endunless %}
{% if page.authors %} {% if page.authors %}
<div class="authors">Par <div class="authors">Par
{% for author in page.authors %} {% for author in page.authors %}{% assign found = false %}
{{ author }}{% unless forloop.last %}, {% endunless %} {% 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 %} {% endfor %}
</div> </div>
{% endif %} {% endif %}