create links to authors page if found ref #4
This commit is contained in:
parent
048bf7d9b5
commit
757e6fb279
1 changed files with 2 additions and 2 deletions
|
@ -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 %}
|
||||||
|
|
Loading…
Reference in a new issue