diff --git a/src/components/PoweredBy.astro b/src/components/PoweredBy.astro index 3d0b294..11e8d61 100644 --- a/src/components/PoweredBy.astro +++ b/src/components/PoweredBy.astro @@ -1,4 +1,34 @@ --- import Logo from '../assets/mercury.svg' +import AstroLogo from '../assets/astro.svg' +import {siteConfig} from "../config"; + +const presets = [ + 'withastro', + 'plain', + 'plainwithastro', + 'formula', + 'iconsonly', + 'none' +] + +const preset = siteConfig.poweredByPreset --- -

Powered by mercury

\ No newline at end of file +{preset === 'withastro' &&

Powered by mercury and Astro

} + +{preset === 'plain' &&

Powered by mercury

} + +{preset === 'plainwithastro' &&

Powered by mercury and Astro

} + +{preset === 'formula' &&

Astro + mercury + love -> this awesome website

} + +{preset === 'iconsonly' && +

+ + +

+} + +{preset === 'none' &&

} + +{(!presets.includes(preset) || preset === '') &&

Powered by mercury

} \ No newline at end of file diff --git a/src/config.ts b/src/config.ts index 7184d62..86e6dc5 100644 --- a/src/config.ts +++ b/src/config.ts @@ -93,6 +93,10 @@ export const siteConfig = { // footer // yes you can write html safely here customFooter: 'I have no mouth, and I must SCREAM', + // the preset of the powered by text + // defaults to 'Powered by Mercury', see PoweredBy.astro for more details + // choose from 'default', 'withastro', 'plain', 'plainwithastro', 'formula', 'iconsonly' and 'none', any other value will be treated as 'default' + poweredByPreset: '', // umami analytics // by enabling this, you can track the visitors of your site siteAnalytics: {