This commit is contained in:
parent
2081ab1326
commit
ee3664818c
3 changed files with 9 additions and 2 deletions
|
|
@ -11,5 +11,5 @@ export default defineConfig({
|
|||
vite: {
|
||||
plugins: [tailwindcss()]
|
||||
},
|
||||
base: '/'
|
||||
base: ''
|
||||
});
|
||||
|
|
@ -2,6 +2,7 @@
|
|||
import Footer from "../components/Footer.astro"
|
||||
import Layout from "../layouts/Layout.astro"
|
||||
import {Calendar, ChevronDown} from "@lucide/astro"
|
||||
import path from "../utils/path.ts"
|
||||
---
|
||||
|
||||
<Layout>
|
||||
|
|
@ -66,7 +67,7 @@ import {Calendar, ChevronDown} from "@lucide/astro"
|
|||
Office-Programm, oder die eigene Cloud.<br><br>
|
||||
Wenn ihr euch mit eurer Stadtteil-Initiative, Computer-Stammtisch oder
|
||||
Aktivisty-Gruppe an den DIDAYS beteiligen möchtet, dann schaut
|
||||
doch <a class="link" href={`${import.meta.env.BASE_URL}/einladung-initiativen`}>in unsere Einladung an Gruppen</a>.
|
||||
doch <a class="link" href={path(import.meta.env.BASE_URL, 'einladung-initiativen')}>in unsere Einladung an Gruppen</a>.
|
||||
Wir freuen uns auf die Zusammenarbeit!
|
||||
</p>
|
||||
</div>
|
||||
|
|
|
|||
6
src/utils/path.ts
Normal file
6
src/utils/path.ts
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
export default function path(...components: Array<string>){
|
||||
return '/' + components
|
||||
.map(component => component.trim().replace(/(^[\/]*|[\/]*$)/g, ''))
|
||||
.filter(component => component.length > 0)
|
||||
.join("/")
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue