Skip to content

Commit

Permalink
Add logo to header, fix page seo titles
Browse files Browse the repository at this point in the history
  • Loading branch information
filiptibell committed Sep 17, 2023
1 parent 42ca3df commit 57fbbd7
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 20 deletions.
20 changes: 0 additions & 20 deletions theme.config.jsx

This file was deleted.

40 changes: 40 additions & 0 deletions theme.config.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
import React from "react"

import { useRouter } from "next/router"
import type { DocsThemeConfig } from "nextra-theme-docs"

const config: DocsThemeConfig = {
docsRepositoryBase: "https://github.com/lune-org/docs/blob/main",
useNextSeoProps() {
const { asPath } = useRouter()
if (asPath !== "/") {
return {
titleTemplate: "%s – Lune",
}
}
},
project: {
link: "https://github.com/filiptibell/lune",
},
footer: {
text: (
<span>
MPL-2.0 {new Date().getFullYear()} ©{" "}
<a href="https://github.com/filiptibell/lune" target="_blank">
Lune
</a>
</span>
),
},
logo: (
<>
<img
width="40"
height="40"
src="https://github.com/filiptibell/lune/raw/main/assets/logo/tilt.png"
/>
</>
),
}

export default config

0 comments on commit 57fbbd7

Please sign in to comment.