You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@activemq.apache.org by ro...@apache.org on 2021/09/02 12:07:06 UTC
[activemq-website] branch main updated (57d9b39 -> 746de9e)
This is an automated email from the ASF dual-hosted git repository.
robbie pushed a change to branch main
in repository https://gitbox.apache.org/repos/asf/activemq-website.git.
from 57d9b39 Fix broken news link and front page formatting (#60)
new c4a887a Remove Artemis per-release page and link to the download page
new e3a3c12 Put the news link back in the header
new 746de9e fix broken front page news item links, download page links, and remove unused layout
The 3 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
Summary of changes:
_config.yml | 8 --------
src/_includes/artemis_release.md | 4 ++--
src/_includes/nav.html | 2 +-
src/_includes/news.md | 9 +++++++++
src/_layouts/artemis_release.md | 7 -------
src/news/index.md | 4 ++++
6 files changed, 16 insertions(+), 18 deletions(-)
delete mode 100644 src/_layouts/artemis_release.md
[activemq-website] 03/03: fix broken front page news item links,
download page links, and remove unused layout
Posted by ro...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
robbie pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/activemq-website.git
commit 746de9e101141dd7629fe697319bf4d6ffefa573
Author: Robbie Gemmell <ro...@apache.org>
AuthorDate: Thu Sep 2 13:04:24 2021 +0100
fix broken front page news item links, download page links, and remove unused layout
In combination with prior commits e3a3c123644e31fa5e55ea852e1bc05f4a945803 and c4a887a26e44905210f202da130119086bd9d06b, this closes #60
---
src/_includes/artemis_release.md | 4 ++--
src/_includes/news.md | 9 +++++++++
src/_layouts/artemis_release.md | 7 -------
3 files changed, 11 insertions(+), 9 deletions(-)
diff --git a/src/_includes/artemis_release.md b/src/_includes/artemis_release.md
index 6041684..22313d2 100644
--- a/src/_includes/artemis_release.md
+++ b/src/_includes/artemis_release.md
@@ -1,7 +1,7 @@
{% assign is_current_release = false %}
-{% for current_release_prefix in site.current_artemis_releases %}
+{% for current_release_prefix in site.data.current_releases["artemis"] %}
{% if include.release.version contains current_release_prefix %}
- {% assign sis_current_release = true %}
+ {% assign is_current_release = true %}
{% break %}
{% endif %}
{% endfor %}
diff --git a/src/_includes/news.md b/src/_includes/news.md
index 669c245..a88cb80 100644
--- a/src/_includes/news.md
+++ b/src/_includes/news.md
@@ -5,8 +5,17 @@
{% for release in releases %} {% if i > 2 %} {% break %} {% endif %}
<div class="card card-grey-small">
<div class="card-body ml-0 p-2">
+{% if release.collection contains "artemis" %}
+ <h6 class="card-title"><a class="text-blue" href="{{site.baseurl}}/components/artemis/download/">{{release.title}}</a></h6>
+{% else %}
<h6 class="card-title"><a class="text-blue" href="{{release.url}}">{{release.title}}</a></h6>
+{% endif %}
+
+{% if release.collection contains "artemis" %}
+ {{release.shortDescription }}<a style="display: unset;" class="nav-link pl-0 ml-0" href="{{site.baseurl}}/components/artemis/download/">...more</a>
+{% else %}
{{release.shortDescription }}<a style="display: unset;" class="nav-link pl-0 ml-0" href="{{release.url}}">...more</a>
+{% endif %}
<p class="small text-muted text-right font-italic mb-0">{{release.release_date | date_to_string: "ordinal", "US" }}</p>
</div>
</div>
diff --git a/src/_layouts/artemis_release.md b/src/_layouts/artemis_release.md
deleted file mode 100644
index c337e9e..0000000
--- a/src/_layouts/artemis_release.md
+++ /dev/null
@@ -1,7 +0,0 @@
----
-layout: default_md
----
-
-[Overview](/components/artemis/) > [Download](/components/artemis/download/) > [{{ page.title }}]({{page.url}})
-
-{% include artemis_release.md release=page %}
[activemq-website] 01/03: Remove Artemis per-release page and link
to the download page
Posted by ro...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
robbie pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/activemq-website.git
commit c4a887a26e44905210f202da130119086bd9d06b
Author: Lucas Tétreault <te...@amazon.com>
AuthorDate: Wed Sep 1 12:50:40 2021 -0700
Remove Artemis per-release page and link to the download page
---
_config.yml | 8 --------
src/news/index.md | 4 ++++
2 files changed, 4 insertions(+), 8 deletions(-)
diff --git a/_config.yml b/_config.yml
index e968415..52ef89a 100644
--- a/_config.yml
+++ b/_config.yml
@@ -13,7 +13,6 @@ sass:
collections:
artemis_releases:
- output: true
permalink: /components/artemis/download/:name
5x_releases:
output: true
@@ -62,13 +61,6 @@ defaults:
type: activemq5
- scope:
path: ""
- type: "artemis_releases"
- values:
- layout: "artemis_release"
- title-class: page-title-artemis
- type: artemis
- - scope:
- path: ""
type: "news"
values:
layout: "news"
diff --git a/src/news/index.md b/src/news/index.md
index 6421a2a..5fed1eb 100644
--- a/src/news/index.md
+++ b/src/news/index.md
@@ -18,5 +18,9 @@ type: activemq5
{{document.shortDescription}}
+{% if document.collection contains "artemis" %}
+[Read More]({{site.baseurl}}/components/artemis/download/)
+{% else %}
[Read More]({{document.url}})
+{% endif %}
{% endfor %}
[activemq-website] 02/03: Put the news link back in the header
Posted by ro...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
robbie pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/activemq-website.git
commit e3a3c123644e31fa5e55ea852e1bc05f4a945803
Author: Lucas Tétreault <te...@amazon.com>
AuthorDate: Wed Sep 1 13:29:03 2021 -0700
Put the news link back in the header
---
src/_includes/nav.html | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/_includes/nav.html b/src/_includes/nav.html
index 2977268..47dc595 100644
--- a/src/_includes/nav.html
+++ b/src/_includes/nav.html
@@ -9,7 +9,7 @@
<div class="ml-auto collapse navbar-collapse" id="navbarContent">
<ul class="navbar-nav ml-auto">
<li class="nav-item">
- <a class="nav-link active" href="{{site.baseurl}}">Home</a>
+ <a class="nav-link active" href="{{site.baseurl}}/news">News</a>
</li>
<li class="nav-item dropdown">
<a class="nav-link" id="navbarDropdownComponents" data-target="#" href="" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">Components<span class="caret"></span></a>