Skip to content

Commit 9181d61

Browse files
authored
📱 add bluesky to social options (#200)
2 parents 2002f80 + d2af95e commit 9181d61

File tree

5 files changed

+5
-4
lines changed

5 files changed

+5
-4
lines changed

assets/images/social/bluesky.svg

+1
Loading

layouts/_default/baseof.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<!DOCTYPE html>
22
{{ $.Scratch.Delete "social_list" }}
33
<!-- social_list -->
4-
{{ $social_params := slice "github" "twitter" "instagram" "rss" }}
4+
{{ $social_params := slice "github" "twitter" "bluesky" "instagram" "rss" }}
55
{{ range $social_params }}
66
{{ if isset site.Params.social . }}
77
{{ $.Scratch.Add "social_list" (slice .) }}

layouts/docs/baseof.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
{{ $.Scratch.Delete "social_list" }}
33
{{ $.Scratch.Set "pathName" (printf "%s" (.Site.Params.docs.pathName | default "docs")) }}
44
<!-- social_list -->
5-
{{ $social_params := slice "github" "twitter" "instagram" "rss" }}
5+
{{ $social_params := slice "github" "twitter" "bluesky" "instagram" "rss" }}
66
{{ range $social_params }}
77
{{ if isset site.Params.social . }}
88
{{ $.Scratch.Add "social_list" (slice .) }}

layouts/partials/docs/top-header.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151
{{ range . }}
5252
{{ $path := printf "images/social/%s.%s" . "svg" }}
5353
<li class="list-inline-item mb-0">
54-
<a href="{{ if eq . `rss` }} {{ `index.xml` | absURL }} {{ else }} https://{{ . }}.com/{{ index site.Params.social . }} {{ end }}" alt="{{ . }}" rel="noopener noreferrer" target="_blank">
54+
<a href="{{ if eq . `rss` }} {{ `index.xml` | absURL }} {{ else if eq . `bluesky` }} https://bsky.app/profile/{{ index site.Params.social . }} {{ else }} https://{{ . }}.com/{{ index site.Params.social . }} {{ end }}" alt="{{ . }}" rel="noopener noreferrer" target="_blank">
5555
<div class="btn btn-icon btn-default border-0">
5656
{{ with resources.Get $path }}
5757
{{ .Content | safeHTML }}

layouts/partials/header.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
{{ range . }}
2727
{{ $path := printf "images/social/%s.%s" . "svg" }}
2828
<li class="list-inline-item mb-0">
29-
<a href="{{ if eq . `rss` }} {{ `index.xml` | absURL }} {{ else }} https://{{ . }}.com/{{ index site.Params.social . }} {{ end }}" alt="{{ . }}" rel="noopener noreferrer" target="_blank">
29+
<a href="{{ if eq . `rss` }} {{ `index.xml` | absURL }} {{ else if eq . `bluesky` }} https://bsky.app/profile/{{ index site.Params.social . }} {{ else }} https://{{ . }}.com/{{ index site.Params.social . }} {{ end }}" alt="{{ . }}" rel="noopener noreferrer" target="_blank">
3030
<div class="btn btn-icon btn-landing border-0">
3131
{{ with resources.Get $path }}
3232
{{ .Content | safeHTML }}

0 commit comments

Comments
 (0)