I'm setting up a new Jekyll site and want to customize my URLs. Explain how permalinks work for both posts and pages. Specifically, what is the default permalink style for posts, and how can I change it globally for the entire site? Also, how can I override the permalink for an individual post or page, and what are at least three common variables I can use in custom permalink structures?
Navigate to 'jekyllrb.com'. Click on the 'Docs' link in the navigation menu. In the left-hand navigation, under the 'Content' section, click on the 'Posts' link to find the default permalink structure for posts. In the left-hand navigation, under the 'Site Structure' section, click on the 'Permalinks' link to understand general permalink usage, common variables, and how to override individual permalinks. In the left-hand navigation, under the 'Build' section, click on the 'Configuration' link to find how to set a global permalink style. In the left-hand navigation, under the 'Content' section, click on the 'Pages' link to confirm how to override permalinks for individual pages. Synthesize the information to explain the default post permalink, how to change it globally, how to override it for individual posts/pages, and list at least three common permalink variables.
The agent successfully navigates to the 'Posts', 'Permalinks', 'Configuration', and 'Pages' documentation pages. The agent correctly states that the default permalink style for posts is derived from the filename format (e.g., `YEAR-MONTH-DAY-title.MARKUP`) and is typically `/YEAR/MONTH/DAY/title.html` or `/YEAR/MONTH/DAY/title/`. The agent explains that the global permalink style can be changed in the `_config.yml` file using the `permalink:` key. The agent explains that permalinks for individual posts or pages can be overridden by setting the `permalink` variable in their respective Front Matter. The agent lists at least three common permalink variables, such as `:year`, `:month`, `:day`, `:title`, `:categories`, `:collection`, `:name`, or `:path`.