From 757e6fb2797ae0f0879216b2c698ab4d80bf59ae Mon Sep 17 00:00:00 2001 From: mose Date: Thu, 31 Aug 2017 08:24:05 +0800 Subject: [PATCH] create links to authors page if found ref #4 --- _layouts/post.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/_layouts/post.html b/_layouts/post.html index b7f40b8..7e0e8d7 100644 --- a/_layouts/post.html +++ b/_layouts/post.html @@ -28,8 +28,8 @@ layout: default {% endunless %} {% if page.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 %} {{ author }}{% assign found = true %}{% endif %}{% endfor %}{% unless found %}{{ author }}{% endunless %}{% unless forloop.last %}, {% endunless %} {% endfor %}
{% endif %}