Skip to content

Commit

Permalink
support/funders-and-members: Drop list of all supporters (#819)
Browse files Browse the repository at this point in the history
  • Loading branch information
earthboundkid authored Jan 15, 2025
1 parent 27dea32 commit 1a3b592
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 8 deletions.
2 changes: 1 addition & 1 deletion content/support/funders-and-members.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ supporters = """
{{<supporters
id="all-donors"
category="Members since launch"
dataSrc="members"
content="If you would like to see a full list of supporters since launch of any amount, email [[email protected]](mailto:[email protected])."
>}}
"""
+++
18 changes: 12 additions & 6 deletions layouts/partials/tw/supporters.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@
{{ . }}
</h3>
{{ end }}
<div
class="column-gap-2 w-full max-w-screen-lg columns-2 gap-10 pb-8 pt-3 md:columns-3"
>
{{ with $dataSrc }}
{{ with $dataSrc }}
<div
class="column-gap-2 w-full max-w-screen-lg columns-2 gap-10 pb-8 pt-3 md:columns-3"
>
{{ $data := index site.Data.supporters . }}
<!-- Sort by .sort and break ties with .display -->
{{ $sorted := sort $data.list "display" "asc" }}
Expand All @@ -33,6 +33,12 @@
{{ else }}
{{ partial "tw/supporters-list.html" $sorted }}
{{ end }}
{{ end }}
</div>
</div>
{{ end }}

{{ with .content }}
<div class="article-content w-full max-w-screen-lg pb-8">
{{ . | page.RenderString }}
</div>
{{ end }}
</div>
5 changes: 4 additions & 1 deletion layouts/shortcodes/supporters.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,13 @@
{{ $id := .Get "id" }}
{{ $category := .Get "category" }}
{{ $dataSrc := .Get "dataSrc" }}
{{ $content := .Get "content" }}

{{ partial "tw/supporters" (dict
"title" $title
"id" $id
"category" $category
"dataSrc" $dataSrc )
"dataSrc" $dataSrc
"content" $content
)
}}

0 comments on commit 1a3b592

Please sign in to comment.