Skip to content

Commit

Permalink
Add footer (tauri-apps#1615)
Browse files Browse the repository at this point in the history
Signed-off-by: Lorenzo Lewis <[email protected]>
  • Loading branch information
lorenzolewis authored Oct 13, 2023
1 parent 1f2a12a commit 5a07ddc
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
1 change: 1 addition & 0 deletions astro.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ export default defineConfig({
mastodon: 'https://fosstodon.org/@TauriApps',
},
components: {
Footer: 'src/components/overrides/Footer.astro',
MarkdownContent: 'starlight-blog/overrides/MarkdownContent.astro',
Sidebar: 'starlight-blog/overrides/Sidebar.astro',
ThemeSelect: 'starlight-blog/overrides/ThemeSelect.astro',
Expand Down
24 changes: 24 additions & 0 deletions src/components/overrides/Footer.astro
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
---
// src/components/EmailLink.astro
import type { Props } from '@astrojs/starlight/props';
import Default from '@astrojs/starlight/components/Footer.astro';
const year = new Date().getFullYear();
---

<Default {...Astro.props}><slot /></Default>

<hr />

<p>Copyright &#169; {year} Tauri Contributors. CC-BY / MIT</p>

<style>
p {
text-align: center;
color: var(--sl-color-gray-2);
font-size: var(--sl-text-sm);
}
hr {
border: 0;
border-bottom: 1px solid var(--sl-color-hairline);
}
</style>

0 comments on commit 5a07ddc

Please sign in to comment.