Erste Schritte mit dem Twilight-Leitfaden
Guide for Template - Getting Started
Übersetzungshinweis (Nicht geprüft)
Diese Seite wurde von einer KI übersetzt und kann Ungenauigkeiten enthalten.
Übersetzt aus: 🇬🇧 English (Deepseek)
Original ansehen Zurück zur ÜbersetzungTipp: Für Dinge, die in diesem Leitfaden nicht erwähnt werden, findest du die Antworten möglicherweise in der Astro-Dokumentation.
Frontmatter von Beiträgen
1---2title: Mein erster Blogbeitrag3published: 2020-02-024description: Dies ist der erste Beitrag meines neuen Astro-Blogs.5cover: ./cover.jpg6coverInContent: false7tags: []8category: Guides9comment: true10draft: false11translation:12 type: "human"13 reviewed: true14---| Attribut | Beschreibung |
|---|---|
title | Der Titel des Beitrags. |
published | Das Datum, an dem der Beitrag veröffentlicht wurde. |
pinned | Gibt an, ob dieser Beitrag oben in der Beitragsliste angeheftet ist. |
description | Eine kurze Beschreibung des Beitrags. Wird auf der Startseite angezeigt. |
cover | Der Pfad zum Titelbild des Beitrags. 1. Beginnt mit http:// oder https://: Für ein Web-Bild 2. Beginnt mit /: Für ein Bild im public-Verzeichnis 3. Ohne diese Präfixe: Relativ zur Markdown-Datei |
coverInContent | Gibt an, ob das Titelbild im Beitragsinhalt angezeigt werden soll. |
tags | Die Schlagwörter des Beitrags. |
category | Die Kategorie des Beitrags 1. Einzelne Kategorie: category: Guides 2. Mehrere Kategorien: category: [Guides, Getting Started] |
licenseName | Der Lizenzname für den Beitragsinhalt. |
author | Der Autor des Beitrags. |
sourceLink | Der Quelllink oder die Referenz für den Beitragsinhalt. |
comment | Gibt an, ob Kommentare für diesen Beitrag aktiviert sind. Standard ist true. |
draft | Wenn dieser Beitrag noch ein Entwurf ist, wird er nicht angezeigt. |
Wo die Beitragsdateien abgelegt werden
Deine Beitragsdateien sollten im Verzeichnis src/content/posts/ abgelegt werden. Du kannst auch Unterverzeichnisse erstellen, um deine Beiträge und Ressourcen besser zu organisieren.
1src/content/posts/2├── post-1.md3└── post-2/4 ├── cover.jpg5 └── index.mdTip: For the things that are not mentioned in this guide, you may find the answers in the Astro Docs.
Front-matter of Posts
1---2title: My First Blog Post3published: 2020-02-024description: This is the first post of my new Astro blog.5cover: ./cover.jpg6coverInContent: false7tags: []8category: Guides9comment: true10draft: false11translation:12 type: "human"13 reviewed: true14---| Attribute | Description |
|---|---|
title | The title of the post. |
published | The date the post was published. |
pinned | Whether this post is pinned to the top of the post list. |
description | A short description of the post. Displayed on index page. |
cover | The cover image path of the post. 1. Start with http:// or https://: For web image 2. Start with /: For image in public dir 3. With none of the prefixes: Relative to the markdown file |
coverInContent | Whether to show the cover image in the post content. |
tags | The tags of the post. |
category | The category of the post 1. Single category: category: Guides 2. Multi-category: category: [Guides, Getting Started] |
licenseName | The license name for the post content. |
author | The author of the post. |
sourceLink | The source link or reference for the post content. |
comment | Whether to enable comment for this post. Default is true. |
draft | If this post is still a draft, which won’t be displayed. |
Where to Place the Post Files
Your post files should be placed in src/content/posts/ directory. You can also create sub-directories to better organize your posts and assets.
1src/content/posts/2├── post-1.md3└── post-2/4 ├── cover.jpg5 └── index.mdThis page may not be the latest version.