Kunskapsbas
Sök
Allaa frågor
3 vanliga frågor
Creating FAQ Entries
Create a new .md file in src/content/faq/:
---
title: "Your question here"
description: "Brief description of the answer"
category: "category-name"
tags: ["tag1", "tag2"]
pubDate: 2024-01-20
featured: false
order: 0
---
Your answer content here in **Markdown** format.
Frontmatter Fields
| Field | Type | Required | Description |
|---|---|---|---|
title | string | Yes | The question (max 100 chars) |
description | string | Yes | Short summary (max 200 chars) |
category | string | Yes | Category slug |
tags | array | No | List of tags |
pubDate | date | Yes | Publication date |
draft | boolean | No | Hide from production |
featured | boolean | No | Pin to top |
order | number | No | Sort order |
Category: content
View full answer
Site Configuration
All site-wide settings are in src/config.ts:
export const SITE = {
name: 'Your Site Name',
title: 'Your Page Title',
description: 'Your site description',
url: 'https://your-domain.com',
language: 'en'
};
Navigation
Update the navigation links:
export const NAV = {
main: [
{ label: 'Home', href: '/' },
{ label: 'FAQ', href: '/faq' },
{ label: 'Contact', href: '/contact' }
]
};
Colors
Customize the color scheme:
export const COLORS = {
primary: '#2563eb',
secondary: '#64748b',
accent: '#f59e0b'
};
Category: customization
View full answer
Installation
First, install the dependencies:
npm install
Then start the development server:
npm run dev
Your site will be available at http://localhost:4321.
Building for Production
To create a production build:
npm run build
The static files will be generated in the dist/ directory.
Category: getting-started
View full answer