Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[refs #318] Updates to the Nunjucks templates and READMEs
Added Nunjucks options for the hero and images components. Code tidy of the Nunjucks templates and README updates. Components amended: - fieldset - footer - header - hero - hint - images
- Loading branch information
1 parent
c523ea5
commit 8da3e61
Showing
11 changed files
with
88 additions
and
50 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,10 @@ | ||
<figure class="nhsuk-image {%- if params.classes %} {{ params.classes }}{% endif %}" | ||
<figure class="nhsuk-image | ||
{%- if params.classes %} {{ params.classes }}{% endif %}" | ||
{%- for attribute, value in params.attributes %} {{attribute}}="{{value}}"{% endfor %}> | ||
<img class="nhsuk-image__img" src="{{ params.src }}" alt="{{ params.alt }}"/> | ||
{% if params.caption %} | ||
<figcaption class="nhsuk-image__caption"> | ||
{{ params.caption | safe }} | ||
</figcaption> | ||
</figure> | ||
{% else %} | ||
</figure> | ||
{% endif %} | ||
<img class="nhsuk-image__img" src="{{ params.src }}" alt="{{ params.alt }}"> | ||
{%- if params.caption %} | ||
<figcaption class="nhsuk-image__caption"> | ||
{{ params.caption | safe }} | ||
</figcaption> | ||
{%- endif %} | ||
</figure> |