Skip to content

Commit

Permalink
Merge pull request #374 from janekmi/announcements_ungroup
Browse files Browse the repository at this point in the history
announcements: ungroup
  • Loading branch information
janekmi authored Aug 31, 2023
2 parents 90af177 + ca45d78 commit a270c06
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions themes/pmem-hugo/layouts/announcements/list.html
Original file line number Diff line number Diff line change
Expand Up @@ -48,14 +48,9 @@ <h4 class="fw-normal mt-2"><a href="{{ .Page.RelPermalink }}" class="text-capita

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

0 comments on commit a270c06

Please sign in to comment.