astro-accelerator 0.0.1 → 0.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/package.json +2 -1
  2. package/src/config.ts +91 -0
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "0.0.1",
2
+ "version": "0.0.2",
3
3
  "author": "Steve Fenton",
4
4
  "name": "astro-accelerator",
5
5
  "description": "A super-lightweight, accessible, SEO-friendly starter project for Astro",
@@ -12,6 +12,7 @@
12
12
  "bugs": "https://github.com/Steve-Fenton/astro-accelerator/issues",
13
13
  "license": "(Apache-2.0)",
14
14
  "files": [
15
+ "src/config.ts",
15
16
  "src/pages/authors/[author]/[page].astro",
16
17
  "src/pages/articles/[page].astro",
17
18
  "src/pages/articles/feed.xml.ts",
package/src/config.ts ADDED
@@ -0,0 +1,91 @@
1
+ export const SITE = {
2
+ url: 'https://astro.stevefenton.co.uk',
3
+ subfolder: '',
4
+ feedUrl: '/articles/feed.xml',
5
+ title: 'Astro Accelerator',
6
+ description: 'An Astro quick start project.',
7
+ defaultLanguage: 'en',
8
+ themeColor: '#222255',
9
+ owner: 'Steve Fenton',
10
+ default: {
11
+ lang: 'en',
12
+ locale: 'en-GB',
13
+ dir: 'ltr'
14
+ },
15
+ search: {
16
+ fallbackUrl: 'https://www.google.com/search',
17
+ fallbackSite: 'q',
18
+ fallbackQuery: 'q',
19
+ },
20
+ pageSize: 2,
21
+ /*
22
+ Refers to "pages in the middle" of the automatically generated links:
23
+ - Prev
24
+ - First Page
25
+ - (A number of links, defined below)
26
+ - Last Page
27
+ - Next
28
+ */
29
+ pageLinks: 3,
30
+ rssLimit: 20,
31
+ dateOptions: {
32
+ weekday: 'long',
33
+ year: 'numeric',
34
+ month: 'long',
35
+ day: 'numeric',
36
+ },
37
+ featureFlags: {
38
+ codeBlocks: ['copy'],
39
+ figures: ['enlarge'],
40
+ youTubeLinks: ['embed'],
41
+ },
42
+ images: {
43
+ contentSize: '(max-width: 860px) 100vw, 620px',
44
+ listerSize: '(max-width: 860px) 90vw, 350px',
45
+ authorSize: '50px',
46
+ }
47
+ };
48
+
49
+ // Default image for OG: Tags
50
+ export const OPEN_GRAPH = {
51
+ image: {
52
+ src: '/img/surface-accessories.png',
53
+ alt: 'Alt text for image goes here',
54
+ }
55
+ };
56
+
57
+ export const HEADER_SCRIPTS = `
58
+ <!-- HEADER SCRIPTS -->
59
+ `.trim();
60
+
61
+ type Mapped<T> = {
62
+ [P in keyof T]?: any
63
+ }
64
+
65
+ export type Site = Mapped<typeof SITE>;
66
+
67
+ export type Frontmatter = {
68
+ layout: string;
69
+ title: string;
70
+ subtitle?: string;
71
+ pubDate: Date;
72
+ modDate?: Date;
73
+ tags?: string[];
74
+ id?: string;
75
+ authors?: string[];
76
+ keywords?: string;
77
+ description?: string;
78
+ categories?: string[];
79
+ navTitle?: string;
80
+ navSection?: string;
81
+ navOrder?: number;
82
+ bannerImage?: { src: string; alt: string };
83
+ dir?: 'ltr' | 'rtl';
84
+ lang?: string;
85
+ paged?: boolean;
86
+ navSearch?: boolean;
87
+ navSitemap?: boolean;
88
+ navMenu?: boolean;
89
+ robots?: string;
90
+ redirect?: string;
91
+ };