From 06946fda409659e5be3170c3b97ac7c3e6efa73a Mon Sep 17 00:00:00 2001
From: alexisben <alex@noesya.coop>
Date: Wed, 3 Apr 2024 08:47:49 +0200
Subject: [PATCH] prepare location's programs

---
 layouts/locations/term.html | 23 ++++++++++++++++++++---
 1 file changed, 20 insertions(+), 3 deletions(-)

diff --git a/layouts/locations/term.html b/layouts/locations/term.html
index 5f5e7743..6282a36d 100644
--- a/layouts/locations/term.html
+++ b/layouts/locations/term.html
@@ -4,8 +4,7 @@
   <div class="document-content" itemscope itemtype="https://schema.org/EducationalOrganization">
     <meta itemprop="name" content="{{ partial "PrepareHTML" .Title }}">
     <meta itemprop="url" content="{{ .Permalink }}">
-    {{ with .Params.summary }}<meta itemprop="abstract" content="{{ . | safeHTML }}">{{ end }}
-    {{ with .Summary }}<meta itemprop="description" content="{{ . | safeHTML }}">{{ end }}
+    {{ with .Params.summary }}<meta itemprop="description" content="{{ . | safeHTML }}">{{ end }}
 
     {{ partial "locations/summary.html" (dict
         "context" .
@@ -14,6 +13,24 @@
 
     {{ partial "contents/list.html" . }}
 
-    {{ partial "hooks/before-document-content-end.html" . }}
+    <div class="container">
+      <ol class="programs">
+        {{- range .Pages -}}
+          <li>
+            {{- $title := partial "PrepareHTML" .Title -}}
+            <a href="{{ .Permalink }}" class="title" title="{{ safeHTML (i18n "commons.more_aria" (dict "Title" $title)) }}">
+              {{- $title -}}
+            </a>
+            {{ if .Params.summary }}
+              <p class="description">
+                {{- partial "PrepareHTML" .Params.summary -}}
+              </p>
+            {{ end }}
+          </li>
+        {{- end -}}
+      </ol>
+
+      {{ partial "commons/pagination.html" . }}
+    </div>
   </div>
 {{ end }}
-- 
GitLab