OpenAI | GPT-Image 2.0
168 words
1 min
Руководство по шаблону - Начало работы
Guide for Template - Getting Started
Уведомление о переводе (Не проверено)
Эта страница переведена ИИ и может содержать неточности.
Переведено с: 🇬🇧 English (Deepseek)
Посмотреть оригинал Вернуться к переводуСовет: По вопросам, не упомянутым в этом руководстве, вы можете найти ответы в документации Astro.
Метаданные постов
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---| Атрибут | Описание |
|---|---|
title | Название поста. |
published | Дата публикации поста. |
pinned | Закреплён ли этот пост в верхней части списка постов. |
description | Краткое описание поста. Отображается на главной странице. |
cover | Путь к обложке поста. 1. Начинается с http:// или https://: веб-изображение 2. Начинается с /: изображение в папке public 3. Без префиксов: относительно markdown-файла |
coverInContent | Показывать ли обложку в содержимом поста. |
tags | Теги поста. |
category | Категория поста 1. Одна категория: category: Guides 2. Несколько категорий: category: [Guides, Getting Started] |
licenseName | Название лицензии для содержимого поста. |
author | Автор поста. |
sourceLink | Ссылка на источник или ссылка для содержимого поста. |
comment | Включить ли комментарии для этого поста. По умолчанию true. |
draft | Является ли пост черновиком (не будет отображаться). |
Где размещать файлы постов
Ваши файлы постов должны быть размещены в каталоге src/content/posts/. Вы также можете создавать подкаталоги для лучшей организации ваших постов и ресурсов.
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.md Руководство по шаблону - Начало работы
/ru-RU/posts/twilight-guide-getting-started/ This page may not be the latest version.