diff --git a/_config.yml b/_config.yml index 8296df5..468ffcb 100644 --- a/_config.yml +++ b/_config.yml @@ -26,8 +26,8 @@ menu: url: /news/ - title: Discussion external_url: https://github.com/hpc-social/hpc-social.github.io/discussions - - title: Join Us On Mastodon - external_url: https://mast.hpc.social/about + - title: Mastodon + url: /projects/mastodon/ # Add links to the footer. legal: @@ -316,6 +316,7 @@ twitter: social: name: HPC Social github: hpc-social + mastodon: https://mast.hpc.social/about links: - https://twitter.com/hpc_social - https://github.com/hpc-social diff --git a/_data/authors.yml b/_data/authors.yml index 2f8f529..9247fb1 100644 --- a/_data/authors.yml +++ b/_data/authors.yml @@ -18,6 +18,8 @@ author1: github: hpc-social email: info@hpc.social twitter: hpc_social + mastodon: https://mast.hpc.social/about + # youtube: xxxxxxxxxxxxxxxxxxx # resume: /assets/resume.pdf # facebook: nick.engmann diff --git a/_includes/components/social-list-item.html b/_includes/components/social-list-item.html index 6b61bb9..50b0178 100644 --- a/_includes/components/social-list-item.html +++ b/_includes/components/social-list-item.html @@ -8,12 +8,18 @@ {% assign icon = data_social.icon | default:'icon-link' %} {% assign app = data_social.append %} {% assign prep = data_social.prepend %} + {% assign target = "_blank" %} {% unless data_social %} {% if platform == "email" %} {% assign name = "Email" %} {% assign icon = "icon-mail" %} {% assign prep = "mailto:" %} + {% assign target = "_self" %} + {% elsif platform == "mastodon" %} + {% assign name = "Mastodon" %} + {% assign icon = "mastodon-icon" %} + {% assign prep = "" %} {% elsif platform == "twitter" %} {% assign name = "Twitter" %} {% assign icon = "icon-twitter" %} @@ -32,7 +38,7 @@ {% endif %}
  • - + {{ name }} diff --git a/_projects/mastodon.md b/_projects/mastodon.md index 995e571..ad05589 100644 --- a/_projects/mastodon.md +++ b/_projects/mastodon.md @@ -22,7 +22,11 @@ accent_image: ### hpc.social on Mastodon - +Join Us On Mastodon + +
    + +
    We are proud to provide the HPC community with a Mastodon instance at mast.hpc.social! @@ -39,77 +43,4 @@ Here are some getting-started links: * Privacy policy: [https://mast.hpc.social/privacy-policy](https://mast.hpc.social/privacy-policy) and see also links in the "About" starting page. -The policy documents linked here are served from hpc-social/mastodon-policies on GitHub. You can ask questions, or make contributions or suggestions for changes there. - - - -

    - - - - - +You can read more about our policy at hpc-social/mastodon-policies on GitHub. You can ask questions, or make contributions or suggestions for changes there. diff --git a/assets/icomoon/style.css b/assets/icomoon/style.css index 5e94a85..927e3f4 100644 --- a/assets/icomoon/style.css +++ b/assets/icomoon/style.css @@ -310,3 +310,7 @@ .icon-history:before { content: "\1f552"; } +/* explicitly different name so it doesn't match icon-* pattern*/ +.mastodon-icon:before { + content: url(/assets/icons/mastodon.svg); +} diff --git a/assets/icons/mastodon.svg b/assets/icons/mastodon.svg new file mode 100644 index 0000000..bace61b --- /dev/null +++ b/assets/icons/mastodon.svg @@ -0,0 +1,65 @@ + + + + + + + + image/svg+xml + + + + + + + + + + diff --git a/pages/index.md b/pages/index.md index 3ee366e..355ae36 100644 --- a/pages/index.md +++ b/pages/index.md @@ -14,6 +14,7 @@ We will be updating this site in the coming months - stay tuned! * [Projects]{:.heading.flip-title} --- Maintained by the community. * [Discussions]{:.heading.flip-title} --- Community Discussion * [News]{:.heading.flip-title} --- Latest news and announcements. +* [Mastodon]{:.heading.flip-title} --- Learn how to join us on Mastodon. {:.related-posts.faded} @@ -24,3 +25,4 @@ We will be updating this site in the coming months - stay tuned! [projects]: projects/ [news]: news/ [discussions]: https://github.com/hpc-social/hpc-social.github.io/discussions +[mastodon]: projects/mastodon/