-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #167 from w3c/template_indentation
Make resulting HTML more readable
- Loading branch information
Showing
3 changed files
with
49 additions
and
40 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,19 @@ | ||
{% if site is defined and site %} | ||
<nav id="lang-nav" aria-label="{{ 'page.lang.options'|trans({}, 'w3c_website_templates_bundle') }}"> | ||
<div class="l-center"> | ||
<div class="l-cluster"> | ||
<ul class="clean-list" role="list"> | ||
{% for code, data in site.getData('siteLink', true) %} | ||
{% set targetwebsitename = 'page.lang.targetname.' ~ code %} | ||
<li><a href="{{ data.url }}" hreflang="{{ code }}" lang="{{ code }}">{{ data.label }}<span class="visuallyhidden" lang="{{ site.locale|default('en') }}">{{ targetwebsitename|trans({}, 'w3c_website_templates_bundle') }}</span></a></li> | ||
{% endfor %} | ||
</ul> | ||
<nav id="lang-nav" aria-label="{{ 'page.lang.options'|trans({}, 'w3c_website_templates_bundle') }}"> | ||
<div class="l-center"> | ||
<div class="l-cluster"> | ||
<ul class="clean-list" role="list"> | ||
{%~ for code, data in site.getData('siteLink', true) %} | ||
{%- set targetwebsitename = 'page.lang.targetname.' ~ code %} | ||
<li>{#--#} | ||
<a href="{{ data.url }}" hreflang="{{ code }}" lang="{{ code }}">{#- -#} | ||
{{ data.label }}<span class="visuallyhidden" {# -#} | ||
lang="{{ site.locale|default('en') }}">{{ targetwebsitename|trans({}, 'w3c_website_templates_bundle') }}</span>{# -#} | ||
</a>{#- -#} | ||
</li> | ||
{%~ endfor %} | ||
</ul> | ||
</div> | ||
</div> | ||
</div> | ||
</nav> | ||
{% endif %} | ||
</nav> | ||
{% endif %} |