forked from vikunja/website
fix: set correct base site url
This commit is contained in:
parent
de4a42dc70
commit
4e9f00ea51
@ -6,6 +6,7 @@ import node from '@astrojs/node'
|
||||
|
||||
// https://astro.build/config
|
||||
export default defineConfig({
|
||||
site: 'https://vikunja.io',
|
||||
output: 'hybrid',
|
||||
integrations: [tailwind(), markdoc()],
|
||||
adapter: node({
|
||||
|
@ -24,9 +24,10 @@ const imageUrl = image
|
||||
? image
|
||||
: new URL('/images/vikunja.jpg', Astro.url)
|
||||
|
||||
const canonical = Astro.url.toString().endsWith('/')
|
||||
? Astro.url.toString().substring(0, Astro.url.toString().length - 1)
|
||||
: Astro.url.toString()
|
||||
const base = (new URL(Astro.url.pathname, Astro.site)).toString()
|
||||
const canonical = base.endsWith('/')
|
||||
? base.substring(0, Astro.url.toString().length - 1)
|
||||
: base
|
||||
---
|
||||
|
||||
<!doctype html>
|
||||
|
Loading…
x
Reference in New Issue
Block a user