This is an automated email from the ASF dual-hosted git repository. zregvart pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/camel-website.git
The following commit(s) were added to refs/heads/master by this push: new 97f0c91 [CAMEL-13567] Create archetype for blog/news section of the site 97f0c91 is described below commit 97f0c9133be445e821b23cfb0d14682b857da5d5 Author: Francois Papon <francois.pa...@openobject.fr> AuthorDate: Sat May 25 15:28:58 2019 +0400 [CAMEL-13567] Create archetype for blog/news section of the site --- archetypes/news-entry.md | 9 +++++++++ content/news/RELEASE-2.24.0.md | 19 +++++++++++++++++++ content/news/_index.md | 6 +++++- layouts/news-entry/single.html | 14 ++++++++++++++ layouts/news/list.html | 34 ++++++++++++++++++++++++++++++++++ layouts/news/news.html | 9 --------- 6 files changed, 81 insertions(+), 10 deletions(-) diff --git a/archetypes/news-entry.md b/archetypes/news-entry.md new file mode 100644 index 0000000..51e3276 --- /dev/null +++ b/archetypes/news-entry.md @@ -0,0 +1,9 @@ +--- +title: "Apache Camel News - {{ .Name | title }}" +url: /news/{{ .Name }}.html +date: {{ .Date }} +draft: true +type: news-entry +author: {{ .Author }} +preview: "" +--- diff --git a/content/news/RELEASE-2.24.0.md b/content/news/RELEASE-2.24.0.md new file mode 100644 index 0000000..b95f9a1 --- /dev/null +++ b/content/news/RELEASE-2.24.0.md @@ -0,0 +1,19 @@ +--- +title: "RELEASE 2.24.0" +url: /news/release-2-24-0.html +date: 2019-05-12 +draft: false +type: news-entry +author: Gregor Zurowski +preview: "The Camel community announces the immediate availability of the new minor release Camel 2.24.0" +--- + + +The Camel community announces the immediate availability of the new minor release Camel 2.24.0. This release contains 156 fixes and improvements. An overview of the changes is available here. + +The artifacts are published and ready for you to download either from the Apache mirrors or from the Central Maven repository. For more details please take a look at the release notes. + +Many thanks to all who made this release possible. + +On behalf of the Camel PMC, +Gregor Zurowski diff --git a/content/news/_index.md b/content/news/_index.md index 9a3fcd9..39ba0d4 100644 --- a/content/news/_index.md +++ b/content/news/_index.md @@ -1 +1,5 @@ -new Post! +--- +title: "Apache Camel News" +--- + +# Apache Camel news diff --git a/layouts/news-entry/single.html b/layouts/news-entry/single.html new file mode 100644 index 0000000..6607b7a --- /dev/null +++ b/layouts/news-entry/single.html @@ -0,0 +1,14 @@ +{{ partial "header.html" . }} + +<div class="container pb-5"> + <h4>Apache Camel News: {{ .Params.title }}</h4> + <h5>Date</h5> + {{ dateFormat "Monday, Jan 1, 2006" .Params.date }} + <h5>Author</h5> + {{ .Params.author }} + <h5>Description</h5> + {{ .Params.description }} + {{ .Content }} +</div> + +{{ partial "footer.html" . }} diff --git a/layouts/news/list.html b/layouts/news/list.html new file mode 100644 index 0000000..6eef7f3 --- /dev/null +++ b/layouts/news/list.html @@ -0,0 +1,34 @@ +{{ partial "header.html" . }} + +<div class="container pb-5"> + {{ .Content }} + + <table class="table"> + <caption>News by year</caption> + <thead> + <tr> + <td>Date</td> + <td>Title</td> + <td>Author</td> + <td>Preview</td> + </tr> + </thead> + <tbody> + {{ range .Pages.GroupByDate "2006" "desc" }} + <tr> + <th colspan="5" scope="row"><strong>{{ .Key }}</strong></th> + </tr> + {{ range .Pages }} + <tr> + <td><a href="{{ .RelPermalink }}">{{ dateFormat "Monday, Jan 1, 2006" .Params.date }}</a></td> + <td>{{ .Params.title }}</td> + <td>{{ .Params.author }}</td> + <td>{{ .Params.preview }}</td> + </tr> + {{ end }} + {{ end }} + </tbody> + </table> +</div> + +{{ partial "footer.html" . }} diff --git a/layouts/news/news.html b/layouts/news/news.html deleted file mode 100644 index ef3a636..0000000 --- a/layouts/news/news.html +++ /dev/null @@ -1,9 +0,0 @@ -{{ partial "header.html" . }} - -<div class="container pb-5"> - <div class="row"> - {{ .Content }} - </div> -</div> - -{{ partial "footer.html" . }}