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

jhyde pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/calcite.git

commit 0390069a533a679d0bdd51ad6b2da662299ab9fe
Author: NobiGo <[email protected]>
AuthorDate: Thu Oct 14 23:38:43 2021 +0800

    [CALCITE-4639] Broken links on download page
    
    Close apache/calcite#2583
---
 site/_posts/2014-06-27-release-0.8.0-incubating.md | 31 ----------------------
 site/_posts/2019-03-26-release-1.20.0.md           |  2 +-
 site/downloads/index.md                            | 27 ++++++++++++++-----
 3 files changed, 21 insertions(+), 39 deletions(-)

diff --git a/site/_posts/2014-06-27-release-0.8.0-incubating.md 
b/site/_posts/2014-06-27-release-0.8.0-incubating.md
deleted file mode 100644
index 83f975d..0000000
--- a/site/_posts/2014-06-27-release-0.8.0-incubating.md
+++ /dev/null
@@ -1,31 +0,0 @@
----
-layout: news_item
-date: "2014-06-27 00:00:00 -0800"
-author: jhyde
-version: 0.8
-tag: v0-8
-sha: 3da850a1
-categories: [release]
----
-<!--
-{% comment %}
-Licensed to the Apache Software Foundation (ASF) under one or more
-contributor license agreements.  See the NOTICE file distributed with
-this work for additional information regarding copyright ownership.
-The ASF licenses this file to you under the Apache License, Version 2.0
-(the "License"); you may not use this file except in compliance with
-the License.  You may obtain a copy of the License at
-
-http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-{% endcomment %}
--->
-
-Several new features, including a heuristic rule to plan queries with
-a large number of joins, a number of windowed aggregate functions, and
-new utility, `SqlRun`.
diff --git a/site/_posts/2019-03-26-release-1.20.0.md 
b/site/_posts/2019-03-26-release-1.20.0.md
index 696a55b..20c089a 100644
--- a/site/_posts/2019-03-26-release-1.20.0.md
+++ b/site/_posts/2019-03-26-release-1.20.0.md
@@ -5,7 +5,7 @@ author: mmior
 version: 1.20.0
 categories: [release]
 tag: v1-20-0
-sha: 9c2b408e7a9bfc7b60b34cd61cf6649cb6d17b21f44b4799d52e118ec69471e8
+sha: 31a3321a23e995e6c7bdc7f4be5dbee275c5a61f
 ---
 <!--
 {% comment %}
diff --git a/site/downloads/index.md b/site/downloads/index.md
index f701a1b..00bc5d9 100644
--- a/site/downloads/index.md
+++ b/site/downloads/index.md
@@ -47,24 +47,37 @@ Release          | Date       | Commit   | Download
 {% endcomment %}{% assign q = "" %}{% comment %}
 {% endcomment %}{% assign d = "https://archive.apache.org/dist"; %}{% comment %}
 {% endcomment %}{% endif %}{% comment %}
-{% endcomment %}{% capture d1 %}{{ post.date | date: "%F"}}{% endcapture %}{% 
comment %}
-{% endcomment %}{% capture d2 %}2017-08-31{% endcapture %}{% comment %}
-{% endcomment %}{% capture d3 %}2018-06-01{% endcapture %}{% comment %}
-{% endcomment %}{% capture d4 %}2020-03-01{% endcapture %}{% comment %}
-{% endcomment %}{% if d1 > d4 %}{% comment %}
+{% endcomment %}{% capture d1 %}"{{ post.date | date: "%F"}}"{% endcapture 
%}{% comment %}
+{% endcomment %}{% capture d2 %}"2014-08-31"{% endcapture %}{% comment %}
+{% endcomment %}{% capture d3 %}"2016-12-31"{% endcapture %}{% comment %}
+{% endcomment %}{% capture d4 %}"2017-08-31"{% endcapture %}{% comment %}
+{% endcomment %}{% capture d5 %}"2018-06-01"{% endcapture %}{% comment %}
+{% endcomment %}{% capture d6 %}"2020-03-01"{% endcapture %}{% comment %}
+{% endcomment %}{% if d1 > d6 %}{% comment %}
 {% endcomment %}{% assign digest = "sha512" %}{% comment %}
-{% endcomment %}{% else if d1 > d2 %}{% comment %}
+{% endcomment %}{% elsif d1 > d4 %}{% comment %}
 {% endcomment %}{% assign digest = "sha256" %}{% comment %}
+{% endcomment %}{% elsif d1 > d3 %}{% comment %}
+{% endcomment %}{% assign digest = "mds" %}{% comment %}
 {% endcomment %}{% else %}{% comment %}
 {% endcomment %}{% assign digest = "md5" %}{% comment %}
 {% endcomment %}{% endif %}{% comment %}
+{% endcomment %}{% if d1 > d2 %}{% comment %}
 {% endcomment %}<a href="{{ site.baseurl }}/docs/history.html#{{ post.tag 
}}">{{ post.version }}</a>{% comment %}
 {% endcomment %} | {{ post.date | date_to_string }}{% comment %}
 {% endcomment %} | <a href="https://github.com/apache/calcite/commit/{{ 
post.sha }}">{{ post.sha | slice: 0, 7 }}</a>{% comment %}
 {% endcomment %} | <a href="{{ p }}/{{ v }}-src.tar.gz{{ q }}">tar</a>{% 
comment %}
 {% endcomment %} (<a href="{{ d }}/calcite/{{ v }}/{{ v }}-src.tar.gz.{{ 
digest }}">digest</a>{% comment %}
 {% endcomment %} <a href="{{ d }}/calcite/{{ v }}/{{ v 
}}-src.tar.gz.asc">pgp</a>){% comment %}
-{% endcomment %}{% if d1 < d3 %}{% comment %}
+{% endcomment %}{% else %}{% comment %}
+{% endcomment %}<a href="{{ site.baseurl }}/docs/history.html#{{ post.tag 
}}">{{ post.version }}</a>{% comment %}
+{% endcomment %} | {{ post.date | date_to_string }}{% comment %}
+{% endcomment %} | <a href="https://github.com/apache/calcite/commit/{{ 
post.sha }}">{{ post.sha | slice: 0, 7 }}</a>{% comment %}
+{% endcomment %} | <a href="{{ p 
}}/optiq-0.9.0-incubating-source-release.zip">zip</a>{% comment %}
+{% endcomment %} (<a href="{{ d }}/calcite/{{ v 
}}/optiq-0.9.0-incubating-source-release.zip.{{ digest }}">digest</a>{% comment 
%}
+{% endcomment %} <a href="{{ d }}/calcite/{{ v 
}}/optiq-0.9.0-incubating-source-release.zip.asc">pgp</a>){% comment %}
+{% endcomment %}{% endif %}{% comment %}
+{% endcomment %}{% if d1 < d5 and d1 > d2 %}{% comment %}
 {% endcomment %} {% raw %}<br>{% endraw %}{% comment %}
 {% endcomment %} <a href="{{ p }}/{{ v }}-src.zip{{ q }}">zip</a>{% comment %}
 {% endcomment %} (<a href="{{ d }}/calcite/{{ v }}/{{ v }}-src.zip.{{ digest 
}}">digest</a>{% comment %}

Reply via email to