Skip to content

Files

reusables

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
Jan 28, 2025
Mar 6, 2025
Jan 15, 2025
Mar 6, 2025
Nov 5, 2024
Feb 5, 2025
Mar 6, 2025
Mar 6, 2025
Jan 28, 2025
Jan 28, 2025
Jan 28, 2025
Mar 6, 2025
Feb 20, 2025
Jan 28, 2025
Jan 6, 2025
Jan 28, 2025
Jun 13, 2024
Feb 20, 2025
Feb 21, 2025
Mar 3, 2025
Mar 5, 2025
Jan 28, 2025
Jan 15, 2025
Mar 10, 2025
Mar 10, 2025
Feb 20, 2025
Feb 20, 2025
Feb 10, 2025
Jan 29, 2025
Feb 20, 2025
Jan 29, 2025
Mar 3, 2025
Feb 11, 2025
Dec 20, 2024
Mar 10, 2025
Oct 29, 2024
Mar 6, 2025
Jan 29, 2025
Feb 21, 2025
Mar 5, 2025
Nov 5, 2024
Feb 20, 2025
Aug 11, 2024
Dec 20, 2024
Jan 29, 2025
Jan 16, 2025
Dec 20, 2024
Jan 30, 2025
Jan 29, 2025
Jun 21, 2023
Jan 29, 2025
Mar 27, 2023
Mar 7, 2025
Feb 7, 2024
Mar 6, 2025
Nov 12, 2024
Jun 13, 2024
Jan 29, 2025
Jan 29, 2025
Feb 18, 2025
Jan 29, 2025
Feb 5, 2024
Jan 16, 2025
Jan 29, 2025
Sep 27, 2020
Feb 13, 2025
Jan 29, 2025
Oct 29, 2024
Feb 5, 2025
Jan 8, 2025
Jan 8, 2025
Jun 6, 2022
Mar 6, 2025
Feb 20, 2025
Jan 29, 2025
Jan 7, 2025
Mar 5, 2025
Jan 7, 2025
Jan 7, 2025
Jan 7, 2025
Feb 20, 2025
Jan 16, 2025
Feb 20, 2025
Feb 25, 2025
Mar 7, 2025
Mar 3, 2025
Feb 20, 2025
Jan 29, 2025
Mar 10, 2025
Feb 20, 2025
Jan 29, 2025
Jan 29, 2025
Jan 22, 2025
Mar 10, 2025
Jan 15, 2025
Jan 29, 2025
Mar 10, 2025
Mar 6, 2025
Mar 5, 2025
Jun 26, 2023
Dec 19, 2024
Mar 3, 2025
Dec 19, 2024
Sep 21, 2023
Nov 12, 2024
Feb 25, 2025
Dec 4, 2024
Jun 23, 2023
Jan 29, 2025
Mar 10, 2025
Oct 25, 2022
Jan 29, 2025
Sep 25, 2023

Reusables

Reusables are long strings of reusable text.

Reusables are longer strings like paragraphs or procedural lists that can be referenced in multiple content files. Using Markdown (instead of YAML) makes it possible for our localization pipeline to split the strings into smaller translatable segments, leading to fewer translation errors and less churn when the source English content changes.

Each reusable lives in its own Markdown file.

The path and filename of each Markdown file determines what its path will be in the data object.

For example, a file named /data/reusables/foo/bar.md will be accessible as {% data reusables.foo.bar %} in pages.

Reusable files are divided generally into directories by task. For example, if you're creating a reusable string for articles about GitHub notifications, you'd add it in the directory data/reusables/notifications/ in a file named data/reusables/notifications/your-reusable-name.md. The content reference you'd add to the source would look like {% data reusables.notifications.your-reusable-name %}.

Indenting

Indented reusables require a special liquid tag: indented_data_reference which also requires the number of spaces to indent as an argument.

For example, to indent /data/reusables/foo/bar.md in an ordered list, you could:

1. My first list item
{% indented_data_reference reusables.foo.par spaces=2 %}
1. My second list item

Versioning

Reusables can include Liquid conditionals to conditionally render content depending on the current version being viewed. See contributing/liquid-helpers.md.