Skip to content

Commit 3b1a89e

Browse files
authored
Update index.html
1 parent f38410b commit 3b1a89e

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

{{ cookiecutter.repo_directory }}/es/index.html

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,14 @@
108108

109109
{%- if cookiecutter.banner.links is defined and cookiecutter.banner.links %}
110110
<div class="hero-panel-cta">
111-
{%- for link in cookiecutter.banner.links %}
111+
{%- set banner_links = cookiecutter.i18n.es.banner.links
112+
if cookiecutter.i18n is defined
113+
and cookiecutter.i18n.es is defined
114+
and cookiecutter.i18n.es.banner is defined
115+
and cookiecutter.i18n.es.banner.links is defined
116+
else cookiecutter.banner.links %}
117+
118+
{%- for link in banner_links %}
112119
<a class="btn {{ link.style }} btn-lg"
113120
href="{{ link.url }}"
114121
{{ 'target="_blank"' if link.new_window else '' }}

0 commit comments

Comments
 (0)