-
Notifications
You must be signed in to change notification settings - Fork 0
/
gallery.config.ts
52 lines (50 loc) · 1.41 KB
/
gallery.config.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
const config: GalleryOptions = {
title: "Gallery",
description: "An image gallery built with Nuxt 3",
htmlLang: "en",
baseURL: "https://kristofvdb1.github.io/Anna-Kristof/", //without trailing slash, used for metadata giving previews in social media
search: {
//if not defined search is disabled
//uses alt text
oramaSupportedLanguage: "english", //https://docs.oramasearch.com/open-source/text-analysis/stop-words#supported-languages
},
};
export default config;
export type GalleryOptions = {
/**
* HTML meta title
*/
title: string;
/**
* HTML meta description
*/
description: string;
/**
* Locale used for HTML lang attribute
* @example "de"
* @example "en"
*/
htmlLang: string;
/**
* Enable search functionality
* @example "https://gallery-nuxt.netlify.app"
*/
baseURL: string;
/**
* Optional function to generate alt text for images from filename
* @example Filename example: "my-image.jpg"
*/
altTextGenerator?: (filename: string) => string;
/**
* Configure search functionality, if not defined search is disabled
*/
search?: {
oramaSupportedLanguage: string;
};
/**
* Image captions: usually the file names are used for alt text, but you can override them here.
*/
imageCaptions?: {
[key: string]: string;
};
};