> For the complete documentation index, see [llms.txt](https://documentation.siteglide.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://documentation.siteglide.com/site-manager/code-snippets-includes/includes-with-siteglide-cli.md).

# Includes with Siteglide CLI

Includes are all of the following: Code Snippet, Content Section, Header, Footer.

See the file structure to understand where each file should be placed:

{% content-ref url="/pages/2fsENhP5IalwuvJ0ilZ1" %}
[Includes File Structure](https://documentation.siteglide.com/site-manager/code-snippets-includes/includes-folder-structure.md)
{% endcontent-ref %}

### YAML Metadata

This is an example Include generated by Siteglide. Below, we'll list available YML parameters, and body content.

```yaml
---
metadata:
    id: 1
    name: Main Section
    file_type: content_section
physical_file_path: views/partials/includes/content_section/1.liquid
---
<!-- INCLUDE CONTENT HERE -->
```

### Parameters

`metadata`

* `id` - Used by UI to reference Includes. Must be unique in the scope of that Include type (i.e. you could have ID=1 for both a Header and Footer) (required)
* `name` - Include name shown in UI (required)
* `file_type` - Used to define where the Include shows in UI.
  * Options: `code_snippet`, `content_section`, `header`, `footer` (required)
* `last_edit` - timestamp of last edit - shown in UI

`physical_file_path` - Files should be stored in a location relative to their ID and file\_type. If your ID is '3', and file\_type is 'header', then the physical\_file\_path would be views/partials/includes/header/3.liquid
