Skip to content

Commit a270c06

Browse files
authored
Merge pull request #374 from janekmi/announcements_ungroup
announcements: ungroup
2 parents 90af177 + ca45d78 commit a270c06

File tree

1 file changed

+3
-8
lines changed
  • themes/pmem-hugo/layouts/announcements

1 file changed

+3
-8
lines changed

themes/pmem-hugo/layouts/announcements/list.html

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -48,14 +48,9 @@ <h4 class="fw-normal mt-2"><a href="{{ .Page.RelPermalink }}" class="text-capita
4848

4949
<!-- Check if lastUrlElement equal to webinars (no filter applied) -->
5050
{{ if eq $lastUrlElement "announcements" }}
51-
<!-- Iterate taxonomies -->
52-
{{ range $key, $taxonomy := .Site.Taxonomies.announcements }}
53-
<div style="display: flex; justify-content: space-between">
54-
<h4 class="text-capitalize m-0 mt-3" style="float: left">{{ $key }}</h4>
55-
<p class="m-0 mt-3" style="right: 0"><a href="{{ .Page.RelPermalink }}">View all ({{ len $taxonomy.Pages }})</a></p>
56-
</div>
57-
<!-- Iterate through each webinars -->
58-
{{ range first 4 $taxonomy.Pages }}
51+
<!-- Iterate through all announcements -->
52+
{{ range .Site.Pages }}
53+
{{ if eq .Params.type "announcement" }}
5954
<article class="card h-shadow h-translate-y-sm all-ts portfolio-item col-md-5 col-12 m-3 border dark-mode">
6055
<div class="grid-inner">
6156
<div class="portfolio-desc" style="height: 100px">

0 commit comments

Comments
 (0)