Skip to content

Commit

Permalink
add bluesky (#847)
Browse files Browse the repository at this point in the history
* add bluesky

* add share on bluesky button
  • Loading branch information
maelle authored Sep 19, 2024
1 parent f206d4a commit d09fe1a
Show file tree
Hide file tree
Showing 15 changed files with 34 additions and 5 deletions.
1 change: 1 addition & 0 deletions content/author/noam-ross/_index.es.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,5 @@ linkedin: noamross
bio: Director Ejecutivo de rOpenSci
link: https://www.noamross.net
img: img/team/noam_ross.png
bluesky: noamross.net
---
1 change: 1 addition & 0 deletions content/author/noam-ross/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,5 @@ linkedin: noamross
bio: rOpenSci Executive Director
link: https://www.noamross.net
img: img/team/noam_ross.png
bluesky: noamross.net
---
1 change: 1 addition & 0 deletions data/team/team.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
"mastodon": "https://ecoevo.social/@noamross",
"linkedin": "https://www.linkedin.com/in/noamross",
"github": "noamross",
"bluesky": "noamross.net",
"home": "/author/noam-ross"
},
{
Expand Down
1 change: 1 addition & 0 deletions themes/ropensci/layouts/author/list.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ <h1>{{ .Params.name }}</h1>
{{ with .Params.orcid }}<a href="https://orcid.org/{{ . }}"><i class="fab fa-orcid"></i></a>{{ end }}
{{ with .Params.mastodon }}<a rel="me" href="{{ . }}"><i class="fab fa-mastodon"></i></a>{{ end }}
{{ with .Params.linkedin }}<a href="https://www.linkedin.com/in/{{ . }}"><i class="fab fa-linkedin"></i></a>{{ end }}
{{ with .Params.bluesky }}<a href="https://bsky.app/profile/{{ . }}"><i class="fab fa-bluesky"></i></a>{{ end }}
{{ with .Params.github }}<a href="https://github.com/{{ . }}"> <i class="fab fa-github"></i></a>{{ end }}
{{ with .Params.gitlab }}<a href="https://gitlab.com/{{ . }}"><i class="fab fa-gitlab"></i></a>{{ end }}
{{ with .Params.keybase }}<a href="https://keybase.io/{{ . }}"><i class="fab fa-keybase"></i></a>{{ end }}
Expand Down
1 change: 1 addition & 0 deletions themes/ropensci/layouts/careers/single.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ <h1> {{ .Title }}</h1>
<h4 class="share-title mb-3">Share</h4>
{{ partial "mastodon/share-link" . }}
{{ partial "linkedin/share-link" . }}
{{ partial "bluesky/share-link" . }}
{{ partial "email/share-link" . }}
</div>
</div>
Expand Down
1 change: 1 addition & 0 deletions themes/ropensci/layouts/commcalls/single.html
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,7 @@ <h4 class="title">Resources</h4>
<span>Share</span>
{{ partial "mastodon/share-link" . }}
{{ partial "linkedin/share-link" . }}
{{ partial "bluesky/share-link" . }}
{{ partial "email/share-link" . }}
</div>
</div>
Expand Down
1 change: 1 addition & 0 deletions themes/ropensci/layouts/events/single.html
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ <h4 >Resources</h4>
<span>Share</span>
{{ partial "mastodon/share-link" . }}
{{ partial "linkedin/share-link" . }}
{{ partial "bluesky/share-link" . }}
{{ partial "email/share-link" . }}
</div>
</div>
Expand Down
1 change: 1 addition & 0 deletions themes/ropensci/layouts/partials/blogs/blog-single.html
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ <h1>{{ .Title | markdownify }}</h1>
<span>{{ i18n "Share" }}</span>
{{ partial "mastodon/share-link" . }}
{{ partial "linkedin/share-link" . }}
{{ partial "bluesky/share-link" . }}
{{ partial "email/share-link" . }}
</div>
<div class="field-under mt-4">
Expand Down
6 changes: 6 additions & 0 deletions themes/ropensci/layouts/partials/bluesky/share-link.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<a href="{{ partial "bluesky/share-url" . }}" class="btn btn-share btn-twitter" target="_blank">
<span class="btn-icon">
<i class="fab fa-bluesky"></i>
</span>
Bluesky
</a>
1 change: 1 addition & 0 deletions themes/ropensci/layouts/partials/bluesky/share-url.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
https://bsky.app/intent/compose?text={{ .Title }} {{ .Permalink }}
9 changes: 9 additions & 0 deletions themes/ropensci/layouts/partials/skeleton/footer.html
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,15 @@
/>
</a>
</li>
<li>
<a lang="en" href="https://bsky.app/profile/rOpenSci.hachyderm.io.ap.brid.gy" aria-label="Bluesky Page for rOpenSci" rel="me">
<img
class="footer-social__icon"
src="/images/svg/social-icons/bluesky.svg"
alt=""
/>
</a>
</li>
<li>
<a lang="en" href="https://github.com/ropenscilabs" aria-label="GitHub account for rOpenSci incubator projects">
<img class="footer-social__icon" src="/images/svg/social-icons/el.svg" alt="" />
Expand Down
6 changes: 1 addition & 5 deletions themes/ropensci/layouts/partials/skeleton/head.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,7 @@
{{ $css := resources.Get "main.min.css" }}
{{ $secureCSS := $css | resources.Fingerprint "sha512" }}
<link href="{{ $secureCSS.Permalink }}" rel="stylesheet" integrity="{{ $secureCSS.Data.Integrity }}">
<link
rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.14.0/css/all.min.css
"
/>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.6.0/css/all.min.css" integrity="sha512-Kc323vGBEqzTmouAECnVceyQqyqdsSiqLQISBL29aUW4U/M7pSPA/gEUZQqv1cwx4OnYxTxve5UMg5GT6L4JJg==" crossorigin="anonymous" referrerpolicy="no-referrer" />
{{ template "_internal/schema.html" . }}
{{ if eq .RelPermalink "/" }}
<title>{{ .Site.Title }}</title>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
<div class="user-social d-flex">
{{ with .mastodon }}<a rel="me" href="{{ . }}"><img src="/images/users/mastodon.svg" alt="" style="max-width:16px;max-height:16px;"/></a>{{ end }}
{{ with .linkedin }}<a href="{{ . }}"><img src="/images/users/linkedin.svg" alt="" style="max-width:16px;max-height:16px;"/></a>{{ end }}
{{ with .bluesky }}<a href="https://bsky.app/profile/{{ . }}"><img src="/images/users/bluesky.svg" alt="" style="max-width:16px;max-height:16px;"/></a>{{ end }}
{{ with .github }}<a href="https://github.com/{{ . }}"><img src="/images/users/github.svg" alt="" /></a>{{ end }}
{{ with .home }}<a href="{{ . }}"><img src="/images/users/rss.svg" alt="" /></a>{{ end }}
</div>
Expand Down
4 changes: 4 additions & 0 deletions themes/ropensci/static/images/svg/social-icons/bluesky.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 themes/ropensci/static/images/users/bluesky.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit d09fe1a

Please sign in to comment.