You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@beam.apache.org by me...@apache.org on 2018/08/14 23:33:36 UTC

[beam-site] 05/06: All files have Apache License

This is an automated email from the ASF dual-hosted git repository.

mergebot-role pushed a commit to branch mergebot
in repository https://gitbox.apache.org/repos/asf/beam-site.git

commit 8f1697562e0ac3bc0538aa4e7d963aa551e7a15c
Author: Rafael Fernández <rf...@google.com>
AuthorDate: Mon Aug 13 23:46:19 2018 -0700

    All files have Apache License
    
    Duplicated code is a horrible sin. But so is having files without license.
    
    #Jekyll
---
 src/_includes/authors-list.md | 1 -
 src/_layouts/post.html        | 5 ++++-
 src/blog/index.md             | 4 +++-
 3 files changed, 7 insertions(+), 3 deletions(-)

diff --git a/src/_includes/authors-list.md b/src/_includes/authors-list.md
deleted file mode 100644
index fb2808e..0000000
--- a/src/_includes/authors-list.md
+++ /dev/null
@@ -1 +0,0 @@
-{% assign count = authors | size %}{% for name in authors %}{% if forloop.first == false and count > 2 %},{% endif %}{% if forloop.last and count > 1 %} &amp;{% endif %}{% assign author = site.data.authors[name] %} {{ author.name }} {% if author.twitter %}[<a href="https://twitter.com/{{ author.twitter }}">@{{ author.twitter }}</a>]{% endif %}{% endfor %}
diff --git a/src/_layouts/post.html b/src/_layouts/post.html
index 03ae938..94881cb 100644
--- a/src/_layouts/post.html
+++ b/src/_layouts/post.html
@@ -19,7 +19,10 @@ layout: default
 
   <header class="post-header">
     <h1 class="post-title" itemprop="name headline">{{ page.title }}</h1>
-    <p class="post-meta"><time datetime="{{ page.date | date_to_xmlschema }}" itemprop="datePublished">{{ page.date | date: "%b %-d, %Y" }}</time>{% if authors %} • {% include authors-list.md %}{% endif %}</p>
+    <p class="post-meta"><time datetime="{{ page.date | date_to_xmlschema }}" itemprop="datePublished">{{ page.date | date: "%b %-d, %Y" }}</time>{% if authors %} •
+      {% assign count = authors | size %}{% for name in authors %}{% if forloop.first == false and count > 2 %},{% endif %}{% if forloop.last and count > 1 %} &amp;{% endif %}{% assign author = site.data.authors[name] %} {{ author.name }} {% if author.twitter %}[<a href="https://twitter.com/{{ author.twitter }}">@{{ author.twitter }}</a>]{% endif %}{% endfor %}
+      {% endif %}
+    </p>
   </header>
 
   <div class="post-content" itemprop="articleBody">
diff --git a/src/blog/index.md b/src/blog/index.md
index 7cd35eb..3be2a4c 100644
--- a/src/blog/index.md
+++ b/src/blog/index.md
@@ -26,7 +26,9 @@ for the project.
 {% assign authors = post.authors %}
 
 ### <a class="post-link" href="{{ post.url | prepend: site.baseurl }}">{{ post.title }}</a>
-<i>{{ post.date | date: "%b %-d, %Y" }}{% if authors %} • {% include authors-list.md %}{% endif %}</i>
+<i>{{ post.date | date: "%b %-d, %Y" }}{% if authors %} •
+{% assign count = authors | size %}{% for name in authors %}{% if forloop.first == false and count > 2 %},{% endif %}{% if forloop.last and count > 1 %} &amp;{% endif %}{% assign author = site.data.authors[name] %} {{ author.name }} {% if author.twitter %}[<a href="https://twitter.com/{{ author.twitter }}">@{{ author.twitter }}</a>]{% endif %}{% endfor %}
+{% endif %}</i>
 
 {{ post.excerpt }}