Skip to content

Commit

Permalink
docs: add app.config
Browse files Browse the repository at this point in the history
  • Loading branch information
Atinux committed Nov 22, 2022
1 parent 5bfef01 commit 34ef1d7
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .demo/content/1.index.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,31 @@ navigation.title: 'Home'
With a beautiful description
```

### Theme configuration

You can configure Content Wind global configuration in the `app.config.ts` file:

```ts [signature]
interface AppConfigInput {
cover?: string, // default: '/cover.jpg'
socials?: {
twitter?: string
github?: string
}
}
```

Example of settings Twitter and GitHub icons in the navbar:

```ts [app.config.ts]
export default defineAppConfig({
socials: {
twitter: 'Atinux',
github: 'Atinux/content-wind'
}
})
```

### Icons

Use any icon from [icones.js.org](https://icones.js.org) with the `<Icon>` component:
Expand Down

1 comment on commit 34ef1d7

@vercel
Copy link

@vercel vercel bot commented on 34ef1d7 Nov 22, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.