Repository: flink-web Updated Branches: refs/heads/asf-site ba1081a85 -> c2b139f18
Allow multiple authors per blog post Project: http://git-wip-us.apache.org/repos/asf/flink-web/repo Commit: http://git-wip-us.apache.org/repos/asf/flink-web/commit/e014fa9a Tree: http://git-wip-us.apache.org/repos/asf/flink-web/tree/e014fa9a Diff: http://git-wip-us.apache.org/repos/asf/flink-web/diff/e014fa9a Branch: refs/heads/asf-site Commit: e014fa9ac00d1d41784dcc52321ed4411e052092 Parents: ba1081a Author: Aljoscha Krettek <[email protected]> Authored: Mon Nov 20 15:23:48 2017 +0100 Committer: Aljoscha Krettek <[email protected]> Committed: Wed Nov 22 10:51:45 2017 +0100 ---------------------------------------------------------------------- _layouts/post.html | 2 +- blog/index.html | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/flink-web/blob/e014fa9a/_layouts/post.html ---------------------------------------------------------------------- diff --git a/_layouts/post.html b/_layouts/post.html index 98cfc9c..fdb1b9c 100755 --- a/_layouts/post.html +++ b/_layouts/post.html @@ -8,7 +8,7 @@ layout: base <h1>{{ page.title }}</h1> <article> - <p>{{ page.date | date_to_string }}{% if page.author %} by {{ page.author }}{% if page.author-twitter %} (<a href="https://twitter.com/{{ page.author-twitter }}">@{{ page.author-twitter }}</a>){% endif %}{% endif %}</p> + <p>{{ page.date | date_to_string }}{% if page.author %} by {{ page.author }}{% if page.author-twitter %} (<a href="https://twitter.com/{{ page.author-twitter }}">@{{ page.author-twitter }}</a>){% endif %}{% endif %}{% assign count = page.authors | size %}{% for author in page.authors %}{% if forloop.first == false and count > 2 %},{% endif %}{% if forloop.last and count > 1 %} &{% endif %} {{ author.name }} {% if author.twitter %}(<a href="https://twitter.com/{{ author.twitter }}">@{{ author.twitter }}</a>){% endif %}{% endfor %}</p> {{ content }} </article> http://git-wip-us.apache.org/repos/asf/flink-web/blob/e014fa9a/blog/index.html ---------------------------------------------------------------------- diff --git a/blog/index.html b/blog/index.html index bbe42f6..c38b388 100755 --- a/blog/index.html +++ b/blog/index.html @@ -13,7 +13,9 @@ layout: base {% for post in paginator.posts %} <article> <h2 class="blog-title"><a href="{{ site.baseurl }}{{ post.url }}">{{ post.title }}</a></h2> - <p>{{ post.date | date_to_string }}{% if post.author %} by {{ post.author }}{% if post.author-twitter %} (<a href="https://twitter.com/{{ post.author-twitter }}">@{{ post.author-twitter }}</a>){% endif %}{% endif %}</p> + + <p>{{ post.date | date_to_string }}{% if post.author %} by {{ post.author }}{% if post.author-twitter %} (<a href="https://twitter.com/{{ page.author-twitter }}">@{{ post.author-twitter }}</a>){% endif %}{% endif %} + {% assign count = post.authors | size %}{% for author in post.authors %}{% if forloop.first == false and count > 2 %},{% endif %}{% if forloop.last and count > 1 %} &{% endif %} {{ author.name }} {% if author.twitter %}(<a href="https://twitter.com/{{ author.twitter }}">@{{ author.twitter }}</a>){% endif %}{% endfor %}</p> <p>{{ post.excerpt }}</p> @@ -59,7 +61,7 @@ layout: base <ul id="markdown-toc"> {% endif %} <li><a href="{{ site.baseurl }}{{ post.url }}">{{ post.title }}</a></li> - + {% if forloop.last %} </ul> {% else %}
