feat: separate 'powered by' to standalone component
This commit is contained in:
parent
fdd9f670e6
commit
5772bc9bcd
2 changed files with 6 additions and 2 deletions
4
src/components/PoweredBy.astro
Normal file
4
src/components/PoweredBy.astro
Normal file
|
@ -0,0 +1,4 @@
|
|||
---
|
||||
import Logo from '../assets/mercury.svg'
|
||||
---
|
||||
<p>Powered by <a href="https://git.gb0.dev/gb/mercury" target="_blank"><Logo width={16} height={16} /> mercury</a></p>
|
|
@ -7,7 +7,6 @@ import BackToTop from "../components/BackToTop.astro";
|
|||
import Meta from "../components/helper/head/Meta.astro";
|
||||
|
||||
import { siteConfig } from "../config";
|
||||
import Logo from '../assets/mercury.svg'
|
||||
import Statistics from "../components/Statistics.astro";
|
||||
import Navbar from "../components/Navbar.astro";
|
||||
|
||||
|
@ -20,6 +19,7 @@ interface Props {
|
|||
}
|
||||
|
||||
import { ClientRouter } from "astro:transitions";
|
||||
import PoweredBy from "../components/PoweredBy.astro";
|
||||
const spaEnabled = siteConfig.spa
|
||||
|
||||
const noscript = siteConfig.noClientJavaScript
|
||||
|
@ -70,7 +70,7 @@ const { title = pageTitle, author = siteConfig.defaultAuthor.name,description =
|
|||
</div>
|
||||
<div class="container">
|
||||
<Fragment set:html={customFooter} />
|
||||
<p>Powered by <a href="https://git.gb0.dev/gb/mercury" target="_blank"><Logo width={16} height={16} /> mercury</a></p>
|
||||
<PoweredBy />
|
||||
</div>
|
||||
</footer>
|
||||
{statisticsEnabled && <Statistics/>}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue