Skip to content

Commit

Permalink
[docsy] Add Contact section
Browse files Browse the repository at this point in the history
  • Loading branch information
chalin committed Oct 4, 2024
1 parent 638b8a1 commit f2a1c29
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 9 deletions.
16 changes: 15 additions & 1 deletion content/en/community/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,21 @@
title: Community
menu: { main: { weight: 40 } }
cascade: { type: docs }
contributingUrl: https://github.com/theupdateframework/community
contributingUrl: https://github.com/theupdateframework/community/blob/main/CONTRIBUTING.md
aliases: [/contact]
---

{{% community-lists %}}

## Contact

- **[TUF Google group]** is the best way to reach us.
- **General questions, feedback, and suggestions** are welcome on this low volume
mailing list or the [#tuf](https://cloud-native.slack.com/archives/C8NMD3QJ3)
channel on [CNCF Slack](https://slack.cncf.io/).
- **Specification**: we strive to make the specification easy to implement, so
if you come across any inconsistencies or experience any difficulty, do let us
know by sending an email, or by [creating an issue in the specification
repo](https://github.com/theupdateframework/specification/issues).

[TUF Google group]: {{% param "links.google_group" %}}
7 changes: 6 additions & 1 deletion hugo.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -100,9 +100,14 @@ params:
href="https://github.com/ORG/PROJECT/issues/new">tell us how we can
improve</a>.
links:
google_group: &google_group https://groups.google.com/g/theupdateframework
user:
- name: Contact
url: /community/#contact
icon: fa-solid fa-address-book
desc: Questions, feedback, and suggestions are welcome!
- name: TUF Google group
url: https://groups.google.com/g/theupdateframework
url: *google_group
icon: fa-solid fa-envelope
desc: Sign up for TUF announcements.
- name: Slack channel
Expand Down
15 changes: 8 additions & 7 deletions layouts/shortcodes/community-lists.md
Original file line number Diff line number Diff line change
@@ -1,28 +1,29 @@
{{ $links := .Site.Params.links -}}
{{ $contribUrl := .Page.Params.contributingUrl | default "docs/contribution-guidelines" -}}

<p>{{ T "community_introduce" . }}</p>

## {{ T "community_learn" }}

{{ T "community_using" . }}

{{ with index $links "user"}}
{{ with index $links "user"}}
{{ template "community-links-list" . }}
{{ end }}

## {{ T "community_develop" }}

{{ T "community_contribute" . }}

{{ with index $links "developer"}}
{{ with index $links "developer"}}
{{ template "community-links-list" . }}
{{ end }}

{{ T "community_how_to" . }}{{ T "community_guideline" }}.
{{ T "community_how_to" . }}
[{{ T "community_guideline" }}]({{ $contribUrl | relURL }}).

{{ define "community-links-list" -}}
{{ define "community-links-list" -}}
{{ range . }}

- [<i class="{{ .icon }}"></i> {{ .name }}]({{ .url }}): {{ .desc -}}
{{ end -}}
- [<i class="{{ .icon }}"></i> {{ .name }}]({{ .url }}): {{ .desc -}}
{{ end -}}
{{ end }}

0 comments on commit f2a1c29

Please sign in to comment.