LOADING
168 words
1 min

Руководство по шаблону - Начало работы

Guide for Template - Getting Started

Уведомление о переводе (Не проверено)

Эта страница переведена ИИ и может содержать неточности.

Переведено с: 🇬🇧 English (Deepseek)

Посмотреть оригинал Вернуться к переводу

Совет: По вопросам, не упомянутым в этом руководстве, вы можете найти ответы в документации Astro.

Метаданные постов

---
title: My First Blog Post
published: 2020-02-02
description: This is the first post of my new Astro blog.
cover: ./cover.jpg
coverInContent: false
tags: []
category: Guides
comment: true
draft: false
translation:
type: "human"
reviewed: true
---
АтрибутОписание
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/. Вы также можете создавать подкаталоги для лучшей организации ваших постов и ресурсов.

src/content/posts/
├── post-1.md
└── post-2/
├── cover.jpg
└── index.md

Tip: For the things that are not mentioned in this guide, you may find the answers in the Astro Docs.

Front-matter of Posts

---
title: My First Blog Post
published: 2020-02-02
description: This is the first post of my new Astro blog.
cover: ./cover.jpg
coverInContent: false
tags: []
category: Guides
comment: true
draft: false
translation:
type: "human"
reviewed: true
---
AttributeDescription
titleThe title of the post.
publishedThe date the post was published.
pinnedWhether this post is pinned to the top of the post list.
descriptionA short description of the post. Displayed on index page.
coverThe 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
coverInContentWhether to show the cover image in the post content.
tagsThe tags of the post.
categoryThe category of the post
1. Single category: category: Guides
2. Multi-category: category: [Guides, Getting Started]
licenseNameThe license name for the post content.
authorThe author of the post.
sourceLinkThe source link or reference for the post content.
commentWhether to enable comment for this post. Default is true.
draftIf 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.

src/content/posts/
├── post-1.md
└── post-2/
├── cover.jpg
└── index.md
Руководство по шаблону - Начало работы
/ru-RU/posts/twilight-guide-getting-started/
Author
MuxBuffer
Published at
2001-10-02
License
CC BY-NC-SA 4.0
Индекс участия ИИ IIIA-0
Категория Без ИИ
Уровень 0
Описание ИИ не использовался вовсе

This page may not be the latest version.

Profile Image of the Author
MuxBuffer
Muxing life, buffering thoughts.
Категории
Table of Contents