diff --git a/.editorconfig b/.editorconfig index 372c0c6..e226fc6 100644 --- a/.editorconfig +++ b/.editorconfig @@ -8,3 +8,7 @@ charset = utf-8 indent_style = tab end_of_line = lf insert_final_newline = true + +[*.{yml,yaml}] +indent_style = space +indent_size = 2 diff --git a/.pages.yml b/.pages.yml new file mode 100644 index 0000000..30d3161 --- /dev/null +++ b/.pages.yml @@ -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 } diff --git a/.prettierrc.json b/.prettierrc.json index a8daaaf..f0bc843 100644 --- a/.prettierrc.json +++ b/.prettierrc.json @@ -21,6 +21,14 @@ "useTabs": false } }, + { + "files": ["*.yml", "*.yaml"], + "options": { + "singleQuote": false, + "tabWidth": 2, + "useTabs": false + } + }, { "files": "*.astro", "options": {