Skip to content

Commit

Permalink
fix: sharer wechat and mastodon icon
Browse files Browse the repository at this point in the history
Close #1247
  • Loading branch information
HEIGE-PCloud committed Apr 10, 2024
1 parent dca8307 commit 4c67c1d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions layouts/partials/plugin/share.html
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,7 @@
{{- /* 030: Weixin */ -}}
{{- if $share.Weixin -}}
<button class="weixin" title="{{ T `shareOn` }} 微信" data-sharer="weixin" data-url="{{ .Permalink }}" data-title="{{ .Title }}" data-web>
{{- partial "plugin/fontawesome.html" (dict "Style" "brands" "Icon" "weixin") -}}
<img src="{{ $share.Weixin }}{{ .Permalink | safeURL }}" title="{{ .Title }}">
</button>
{{- end -}}
Expand All @@ -230,6 +231,7 @@
}
</script>
<button title="{{ T `shareOn` }} Mastodon"onclick="javascript:shareOnMastodon({{ .Title }}, {{ .Permalink }})">
{{- partial "plugin/fontawesome.html" (dict "Style" "brands" "Icon" "mastodon") -}}
</button>
{{- end -}}
{{- end -}}

0 comments on commit 4c67c1d

Please sign in to comment.