Skip to content

Commit

Permalink
bluesky
Browse files Browse the repository at this point in the history
adding a bluesky social to the sharing.json for my own purposes.
  • Loading branch information
tommertron committed Nov 21, 2024
1 parent 7feb471 commit 87cf41c
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 3 deletions.
5 changes: 5 additions & 0 deletions data/sharing.json
Original file line number Diff line number Diff line change
Expand Up @@ -63,5 +63,10 @@
"icon": "xing",
"title": "sharing.xing",
"url": "https://www.xing.com/spi/shares/new?url=%s"
},
"bluesky": {
"icon": "bluesky",
"title": "sharing.bluesky",
"url": "https://bsky.app/intent/compose?text=%s%s"
}
}
12 changes: 9 additions & 3 deletions layouts/_default/baseof.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,20 +12,26 @@
<body
class="m-auto flex h-screen max-w-7xl flex-col bg-neutral px-6 text-lg leading-7 text-neutral-900 dark:bg-neutral-800 dark:text-neutral sm:px-14 md:px-24 lg:px-32"
>
<!-- Add the background SVG -->
<div id="background-image"></div>

<div id="the-top" class="absolute flex self-center">
<a
class="-translate-y-8 rounded-b-lg bg-primary-200 px-3 py-1 text-sm focus:translate-y-0 dark:bg-neutral-600"
href="#main-content"
><span class="pe-2 font-bold text-primary-600 dark:text-primary-400">&darr;</span
>{{ i18n "nav.skip_to_main" }}</a
>
<span class="pe-2 font-bold text-primary-600 dark:text-primary-400">&darr;</span>
{{ i18n "nav.skip_to_main" }}
</a>
</div>

{{ $header := print "partials/header/" .Site.Params.header.layout ".html" }}
{{ if templates.Exists $header }}
{{ partial $header . }}
{{ else }}
{{ partial "partials/header/basic.html" . }}
{{ end }}

<div class="relative flex grow flex-col">
<main id="main-content" class="grow">
{{ block "main" . }}{{ end }}
Expand All @@ -34,7 +40,7 @@
<div
class="pointer-events-none absolute bottom-0 end-0 top-[100vh] w-12"
id="to-top"
hidden="{{ .Site.Params.footer.showScrollToTop | default true -}}"
hidden="{{ .Site.Params.footer.showScrollToTop | default true }}"
>
<a
href="#the-top"
Expand Down

0 comments on commit 87cf41c

Please sign in to comment.