diff --git a/assets/css/bobastyle.css b/assets/css/bobastyle.css index b3720ef..9c80a59 100644 --- a/assets/css/bobastyle.css +++ b/assets/css/bobastyle.css @@ -668,43 +668,6 @@ footer p { padding: 8px 15px; } -/* Social media share buttons */ - -.share-buttons { - background: var(--background-1); - color: var(--text-1); - margin: 25px 0; - padding: 8px 0; - border-radius: 8px; - display: flex; - gap: 8px; - justify-content: center; - font-size: 32px; -} - -.share-buttons a { - background-color: var(--background-2); - color: var(--text-2); - padding: 4px; - border-radius: 8px; -} -.share-buttons a:hover { - background-color: var(--background-3); - color: var(--text-3); -} - -.share-buttons svg { - display: block; -} - -/* https://stackoverflow.com/a/72073682/19003757 */ -/* -.telegram-share > svg { - transform: scale(1.5); - margin: 9px -9px -9px 9px; -} -*/ - /* See also formating */ .see-also { background-color: var(--background-1); @@ -937,7 +900,6 @@ aside.quote { .post-meta-view-markdown, .code-copy-button, .prevnext, - .share-buttons, .related-posts { display: none; } diff --git a/assets/js/share-event.js b/assets/js/share-event.js deleted file mode 100644 index 38acef8..0000000 --- a/assets/js/share-event.js +++ /dev/null @@ -1,3 +0,0 @@ -function share_event(service) { - plausible("Share", {props: {Network: service}}); -} diff --git a/i18n/en.yaml b/i18n/en.yaml index a483e10..7f6f372 100644 --- a/i18n/en.yaml +++ b/i18n/en.yaml @@ -125,21 +125,3 @@ aria_navbar: aria_table_of_contents: other: "table of contents" - -aria_share_twitter: - other: "share to twitter button" - -aria_share_facebook: - other: "share to facebook button" - -aria_share_linkedin: - other: "share to linkedin button" - -aria_share_reddit: - other: "share to reddit button" - -aria_share_telegram: - other: "share to telegram button" - -aria_share_print: - other: "print article button" diff --git a/layouts/_partials/head.html b/layouts/_partials/head.html index 838e9ab..4c9c690 100644 --- a/layouts/_partials/head.html +++ b/layouts/_partials/head.html @@ -19,9 +19,6 @@ {{ if not hugo.IsServer }} - {{ with resources.Get "js/share-event.js" | fingerprint "sha512" }} - - {{ end }} {{ end }} {{ $isso_url := .Permalink }} {{ if .IsTranslated }} diff --git a/layouts/_partials/share.html b/layouts/_partials/share.html deleted file mode 100644 index 05fded3..0000000 --- a/layouts/_partials/share.html +++ /dev/null @@ -1,69 +0,0 @@ -
- {{ if .Site.Params.shareButtons.twitter }} - - {{- partial "icon.html" "twitter" -}} - - {{ end }} - - {{ if .Site.Params.shareButtons.facebook }} - - {{- partial "icon.html" "facebook" -}} - - {{ end }} - - {{ if .Site.Params.shareButtons.linkedin }} - - {{- partial "icon.html" "linkedin" -}} - - {{ end }} - - {{ if .Site.Params.shareButtons.reddit }} - - {{- partial "icon.html" "reddit" -}} - - {{ end }} - - {{/* Telegram icon doesn't have `viewbox` set, which breaks the sizing. - https://stackoverflow.com/q/72073399/19003757 - https://github.com/michaelampr/jam/issues/39 - {{ if .Site.Params.shareButtons.telegram }} - - {{- partial "icon.html" "telegram" -}} - - {{ end }} - */}} - - {{ if .Site.Params.shareButtons.print }} - - {{- partial "icon.html" "printer" -}} - - {{ end }} -
diff --git a/layouts/page.html b/layouts/page.html index 5800455..94654b1 100644 --- a/layouts/page.html +++ b/layouts/page.html @@ -60,10 +60,6 @@ {{ end }} - {{ if .Site.Params.shareButtons }} - {{ partial "share.html" . }} - {{ end }} - {{ if .Params.comments }}
{{ partial "comments.html" . }}