ChatGPT (model unspecified)· OpenAI
ShareLM (browser-extension contributions)
what are front-matter keys in jekyll?
- User
what are front-matter keys in jekyll?
- Assistant
In Jekyll, front-matter refers to the YAML block at the top of a Markdown, HTML, or other content file. It configures how Jekyll processes the page. Front-matter keys are simply the YAML variables you define inside that block. Example yamlCopiar código--- title: "My First Post" layout: post date: 2025-02-10 tags: [jekyll, blogging] published: true
Common front-matter keys KeyPurposelayoutChooses which layout template to use (e.g., post, page).titleTitle of the post or page.datePublication date for posts; affects sorting.permalinkManually sets the output URL.categories / tagsOrganizes posts for collections, archives, filters.publishedfalse hides the post from output.excerptCustom excerpt text.authorIdentifies the author (custom key—allowed but not built-in).descriptionMeta description (often used in SEO plugins).redirect_from / redirect_toIf using the jekyll-redirect-from plugin.imageOften used for social media thumbnails (not built-in but common). Built-in vs. Custom keys
Built-in keys: ones Jekyll recognizes automatically (e.g