Skip to content

Commit 74943ab

Browse files
authored
Merge pull request #5723 from github/repo-sync
repo sync
2 parents e020709 + cab6f00 commit 74943ab

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

lib/liquid-tags/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ Note that link tags will only render links that are available in the current pag
6363
| `{% homepage_link_with_intro /href %}` | The linked page's title and intro, with homepage-specific styling.
6464
| `{% link_in_list /href %}` | The linked page's title in a list item.
6565
| `{% topic_link_in_list /href %}` | The linked map topic's title in a list item (used in category TOCs).
66-
| `{% indented_data_reference foo.bar spaces=NUMBER %}` | A data reference with the specified number of spaces prepended to each line. Defaults to 2 spaces if no spaces included. For example: `{% indented_data_reference reusables.enterprise_management_console.enable-disable-security-features %}`
66+
| `{% indented_data_reference foo.bar spaces=NUMBER %}` | A data reference with the specified number of spaces prepended to each line. Defaults to 2 spaces if no spaces included. For example: `{% indented_data_reference reusables.pages.wildcard-dns-warning spaces=3 %}`
6767

6868
## Creating tags
6969

lib/liquid-tags/indented-data-reference.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@ const assert = require('assert')
22

33
// This class supports a tag that expects two parameters, a data reference and `spaces=NUMBER`:
44
//
5-
// {% indented_data_reference site.data.foo.bar spaces=NUMBER %}
5+
// {% indented_data_reference foo.bar spaces=NUMBER %}
6+
// Example: {% indented_data_reference reusables.pages.wildcard-dns-warning spaces=3 %}
67
//
78
// This tag renders the given data reference with the specified number of spaces
89
// prepended to each line. This results in correct formatting when the data

0 commit comments

Comments
 (0)