Skip to content

Only show the contents of <r:if_childless> if there are no pages in mock_data.yml. #96

@adamjohnson

Description

@adamjohnson

Steps to reproduce the issue

  1. Clone the brand-patterns theme.
  2. With hammer running, visit the Profile Index template.
  3. Add the following code to the template (probably around line 11):
<r:if_childless>
  <p>No profiles found</p>
</r:if_childless>

Results

Even though there are two pages in the pages key in mock data, the contents of this tag are output.

Expected results

If there is content in the pages key in mock_data.yml, the tag should not output anything.


This bug/request is very low priority.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions