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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
| import { Collection } from "tinacms";
|
| const Config: Collection = {
| name: "config",
| label: "Settings",
| path: "config/_default",
| format: "toml",
| ui: {
| allowedActions: {
| create: false,
| delete: false,
| }
| },
| match: {
| include: "*hugo*",
| },
| fields: [
| {
| type: "string",
| name: "baseURL",
| label: "Homepage",
| description: "e.g https://example.com/"
| },
| {
| type: "string",
| name: "title",
| label: "Site Title"
| },
| {
| type: "string",
| name: "theme",
| label: "Theme / Template Name",
| list: true, // delete this line when using theme as a non module
| description: "references theme as module"
| },
| {
| type: "boolean",
| name: "enableRobotsTXT",
| label: "Enable Robots Txt"
| },
| {
| type: "boolean",
| name: "enableGitInfo",
| label: "Enable Git",
| description: "Helps provide more content metadata"
| },
| {
| type: "object",
| name: "pagination",
| label: "Pagination Settings",
| fields: [
| {
| type: "boolean",
| name: "disableAliases",
| label: "Disable aliases",
| description: "https://gohugo.io/configuration/pagination/#disablealiases"
| },
| {
| type: "number",
| name: "pagerSize",
| label: "Items per page",
| // description: "defaults to 10",
| },
| {
| type: "string",
| name: "path",
| label: "Path",
| description: "https://gohugo.io/configuration/pagination/#path"
| }
| ]
| },
| {
| type: "string",
| name: "disableKinds",
| label: "Disable Kinds",
| list: true,
| description: "https://gohugo.io/configuration/all/#disablekinds"
| },
| {
| type: "object",
| name: "outputs",
| label: "Outputs",
| description: "https://gohugo.io/configuration/outputs/#outputs-per-page-kind",
| fields: [
| {
| type: "string",
| name: "home",
| label: "Home",
| description: "https://gohugo.io/configuration/outputs/#outputs-per-page-kind",
| list: true
| }
| ]
| }
| ]
| }
|
| export default Config;
|
|