Skip to content

Commit

Permalink
use Astro.site for header url
Browse files Browse the repository at this point in the history
  • Loading branch information
vincanger committed Dec 6, 2023
1 parent 8c52e6c commit 7369dba
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
3 changes: 1 addition & 2 deletions docs/astro.config.mjs
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
import { defineConfig } from 'astro/config';
import starlight from '@astrojs/starlight';
import starlightBlog from 'starlight-blog';
import { BASE_URL } from './constants';

// https://astro.build/config
export default defineConfig({
site: BASE_URL,
site: 'https://opensaas.sh',
integrations: [
starlightBlog({
title: 'Blog',
Expand Down
1 change: 0 additions & 1 deletion docs/constants.ts

This file was deleted.

4 changes: 2 additions & 2 deletions docs/src/components/MyHeader.astro
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ import { logos } from 'virtual:starlight/user-images';
import config from 'virtual:starlight/user-config';
import blogConfig from 'virtual:starlight-blog-config'
import type { Props } from '@astrojs/starlight/props';
import { BASE_URL } from '../../constants';
const href = Astro.site
---
<a href={BASE_URL} class="site-title sl-flex">
<a {href} class="site-title sl-flex">
{
config.logo && logos.dark && (
<>
Expand Down

0 comments on commit 7369dba

Please sign in to comment.