mirror of
https://github.com/kogakure/website-astro-stefanimhoff.de.git
synced 2026-02-03 12:05:28 +00:00
Create .pages.yml
This commit is contained in:
committed by
Stefan Imhoff
parent
735e970509
commit
5b6e8fe19f
@@ -8,3 +8,7 @@ charset = utf-8
|
|||||||
indent_style = tab
|
indent_style = tab
|
||||||
end_of_line = lf
|
end_of_line = lf
|
||||||
insert_final_newline = true
|
insert_final_newline = true
|
||||||
|
|
||||||
|
[*.{yml,yaml}]
|
||||||
|
indent_style = space
|
||||||
|
indent_size = 2
|
||||||
|
|||||||
63
.pages.yml
Normal file
63
.pages.yml
Normal file
@@ -0,0 +1,63 @@
|
|||||||
|
media:
|
||||||
|
- name: assets
|
||||||
|
label: Assets
|
||||||
|
input: public/assets
|
||||||
|
output: /assets
|
||||||
|
path: public/assets
|
||||||
|
- name: downloads
|
||||||
|
label: Downloads
|
||||||
|
input: public/downloads
|
||||||
|
output: /downloads
|
||||||
|
path: public/downloads
|
||||||
|
content:
|
||||||
|
- name: journal
|
||||||
|
label: Journal
|
||||||
|
type: collection
|
||||||
|
path: src/content/journal
|
||||||
|
filename: "{year}/{slug}.mdx"
|
||||||
|
format: yaml-frontmatter
|
||||||
|
view:
|
||||||
|
fields: [title, date, updated]
|
||||||
|
fields:
|
||||||
|
- { name: title, label: Title, type: string }
|
||||||
|
- { name: draft, label: Draft, type: boolean, required: false, default: false }
|
||||||
|
- { name: featured, label: Featured, type: boolean, required: false }
|
||||||
|
- { name: slug, label: Slug, type: string }
|
||||||
|
- { name: date, label: Date, type: date }
|
||||||
|
- { name: updated, label: Updated, type: date, required: false }
|
||||||
|
- { name: author, label: Author, type: string, default: "Stefan Imhoff" }
|
||||||
|
- { name: description, label: Description, type: text, options: { maxLength: 160 } }
|
||||||
|
- { name: cover, label: Cover, type: string }
|
||||||
|
- {
|
||||||
|
name: tags,
|
||||||
|
label: Tags,
|
||||||
|
type: select,
|
||||||
|
options:
|
||||||
|
{
|
||||||
|
multiple: true,
|
||||||
|
values:
|
||||||
|
[
|
||||||
|
"ai",
|
||||||
|
"book",
|
||||||
|
"code",
|
||||||
|
"design",
|
||||||
|
"download",
|
||||||
|
"film",
|
||||||
|
"japan",
|
||||||
|
"minimalism",
|
||||||
|
"philosophy",
|
||||||
|
"poetry",
|
||||||
|
"politics",
|
||||||
|
"productivity",
|
||||||
|
"recommendation",
|
||||||
|
"self-improvement",
|
||||||
|
"software",
|
||||||
|
"technology",
|
||||||
|
"writing",
|
||||||
|
],
|
||||||
|
},
|
||||||
|
}
|
||||||
|
- { name: series, label: Series, type: string, required: false }
|
||||||
|
- { name: noindex, label: No Index, type: boolean, required: false }
|
||||||
|
- { name: nofollow, label: No Follow, type: boolean, required: false }
|
||||||
|
- { name: body, label: Body, type: rich-text }
|
||||||
@@ -21,6 +21,14 @@
|
|||||||
"useTabs": false
|
"useTabs": false
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"files": ["*.yml", "*.yaml"],
|
||||||
|
"options": {
|
||||||
|
"singleQuote": false,
|
||||||
|
"tabWidth": 2,
|
||||||
|
"useTabs": false
|
||||||
|
}
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"files": "*.astro",
|
"files": "*.astro",
|
||||||
"options": {
|
"options": {
|
||||||
|
|||||||
Reference in New Issue
Block a user