Skip to content

Commit

Permalink
Merge pull request govdirectory#487 from RVA2869/Add-support-Mastodon
Browse files Browse the repository at this point in the history
Add support Mastodon
  • Loading branch information
Ainali authored Jan 10, 2025
2 parents ec3bb34 + d4bd728 commit 192294b
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 0 deletions.
9 changes: 9 additions & 0 deletions static/social-icons/mastodon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions templates/components/social-icons.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@
{{- else if eq .property (uri "http://www.wikidata.org/entity/P2003") -}}{{/* Instagram */}}
{{- $preview_count = add1 $preview_count -}}
<li><a rel="nofollow" title="Instagram" href="{{ .url }}"><img loading="lazy" width="20" height="20" aria-hidden="true" src="/social-icons/instagram.svg" /></a></li>
{{- else if eq .property (uri "http://www.wikidata.org/entity/P4033") -}}{{/* Mastodon */}}
{{- $preview_count = add1 $preview_count -}}
<li><a rel="nofollow" title="Mastodon" href="{{ .url }}"><img loading="lazy" width="20" height="20" aria-hidden="true" src="/social-icons/mastodon.svg" /></a></li>

{{- end -}}
{{- end -}}
{{- if ne (sub (len $socialAccounts) $preview_count) 0 -}}
Expand Down
1 change: 1 addition & 0 deletions templates/org.html
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,7 @@ <h2 class="m0">Platforms and accounts</h2>
P2037: ['Github', 'https://github.com/'],
P4015: ['Vimeo', 'https://vimeo.com/'],
P3267: ['Flickr', 'https://www.flickr.com/photos/'],
P4033: ['Mastodon', 'https://fedirect.toolforge.org/?id='],
};
const propKeys = Object.keys(props);

Expand Down

0 comments on commit 192294b

Please sign in to comment.