Skip to content

Commit 9d622b5

Browse files
authored
Fixed Jinja error in setting nginx_tpl_welcome_title
Per issue debops#147
1 parent b2ecd31 commit 9d622b5

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

templates/srv/www/sites/welcome/public/index.html.j2

+3-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@
22
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
33
{% set nginx_tpl_domain = item.welcome_domain | d(item.name if item.name is string else item.name[0] | d(ansible_domain)) %}
44
{% if nginx_tpl_domain %}
5-
{% set nginx_tpl_welcome_title = '<a href="{{ item.welcome_url_scheme|d("https") }}://' + nginx_tpl_domain + '/">' + nginx_tpl_domain + '</a>' %}
5+
{% set nginx_tpl_welcome_title %}
6+
<a href="{{ item.welcome_url_scheme|d("https") }}://{{ nginx_tpl_domain }}/">{{ nginx_tpl_domain }}</a>
7+
{% endset %}
68
{% elif not nginx_tpl_domain %}
79
{% set nginx_tpl_welcome_title = '<a href="http://companyname.website/">CompanyName.website</a>' %}
810
{% endif %}

0 commit comments

Comments
 (0)