grim/www.imfreedom.org

Use minutes partial for front page.

2019-06-18, Elliott Sales de Andrade
b051590c373a
Parents 04a9879d915d
Children bffc3dbbe06e
Use minutes partial for front page.

This makes the table on the front page the same as the /minutes/ page. Note,
this could be done with a shortcode as before, instead of a template override,
but the latter auto-refreshes better.
--- a/hugo/content/_index.md Tue Jun 18 00:52:31 2019 -0400
+++ b/hugo/content/_index.md Tue Jun 18 01:09:24 2019 -0400
@@ -28,8 +28,6 @@
member directly or through open discussion in
[discussion@conference.pidgin.im](xmpp:discussion@conference.pidgin.im?join).
-{{< meetings >}}
-
[1]:
https://apps.irs.gov/app/eos/displayAll.do?dispatchMethod=displayAllInfo&Id=3819004&ein=593837808
[2]: https://adium.im/
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/hugo/layouts/home.html Tue Jun 18 01:09:24 2019 -0400
@@ -0,0 +1,4 @@
+{{ define "main" }}
+{{ .Content }}
+{{ partial "minutes-list" (.GetPage "minutes") }}
+{{ end }}
--- a/hugo/layouts/shortcodes/meetings.html Tue Jun 18 00:52:31 2019 -0400
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,42 +0,0 @@
-<table>
- {{ range .Site.Data.meetings }}
- <tr>
- <td>{{ .key }}</td>
- <td>
- {{ if isset . "minutes" }}
- <a href="/minutes/{{ .key }}">minutes</a>
- {{ else }}
- &nbsp;
- {{ end }}
- </td>
- <td>
- {{ if isset . "transcripts" }}
- <div>
- <a href="/transcripts/{{ .key }}">transcript</a>
- </div>
- {{ end }}
- {{ if isset . "audio" }}
- <div>
- <a href="{{ .audio.ogg }}" target="_blank">
- audio (Ogg Vorbis)
- <i class="fas fa-external-link-alt fa-sm"></i>
- </a>
- </div>
- {{ end }}
- {{ if isset . "video" }}
- <div>
- <a href="{{ .video.mpeg4 }}" target="_blank">
- video (MPEG4)
- <i class="fas fa-external-link-alt fa-sm"></i>
- </a>
- </div>
- {{ end }}
- {{ if isset . "note" }}
- <div>
- {{ safeHTML .note }}
- </div>
- {{ end }}
- </td>
- </tr>
- {{ end }}
-</table>