Skip to content

Commit

Permalink
Add tags to news page
Browse files Browse the repository at this point in the history
Signed-off-by: Eric Poirier <[email protected]>
  • Loading branch information
ericpoirier committed Oct 25, 2022
1 parent 18ca5fc commit af61485
Show file tree
Hide file tree
Showing 4 changed files with 1,007 additions and 991 deletions.
9 changes: 7 additions & 2 deletions layouts/partials/sidebars/news.html
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,17 @@ <h4>Filter</h4>
{{ if eq .Parent.Section "news" }}
<div class="sidebar-block">
<h4>{{ i18n "news-sidebar-news-title" }}</h4>
<div id="{{ $id }}" class="news-items" data-news-count="10"
<div id="{{ $id }}" class="news-items" data-news-count="10"
{{ with $templateId }} data-template-id="{{ . }}" {{ end }}
data-publish-target="jakarta_ee">
</div>
<p><a class="btn btn-primary" href="/news">View More</a></p>
</div>
{{ end }}

<div class="sidebar-block">
<h4>Tags</h4>
<ul class="news-tags-sidebar cat-list" data-id="news-tags-sidebar" data-url="https://newsroom.eclipse.org/api/news?parameters[publish_to]=jakarta_ee"></ul>
</div>

</aside>

6 changes: 3 additions & 3 deletions less/news.less
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
/*!
* Copyright (c) 2020 Eclipse Foundation, Inc.
*
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0 which is available at
* http://www.eclipse.org/legal/epl-2.0.
*
*
* Contributors:
* Andrii Malytskyi <[email protected]>
*
*
* SPDX-License-Identifier: EPL-2.0
*/
.announcements-news-list {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"optimize_news_images": "bash ./optimize_images.sh content/news"
},
"dependencies": {
"eclipsefdn-hugo-solstice-theme": "0.0.156",
"eclipsefdn-hugo-solstice-theme": "0.0.171",
"lodash-es": "4.17.15",
"list.js": "^1.2.0"
},
Expand Down
Loading

0 comments on commit af61485

Please sign in to comment.