Skip to content

Commit 5231b80

Browse files
committed
Reverse the sentinel logic and include the debug message only if sentinel=true. This way it must be explicitly set and avoids breaking the html-comment-wrapped sentinel message within html-comments and html-attributes.
Ref: syslabcom/oira.prototype#559
1 parent 6fc8d87 commit 5231b80

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

i18n

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{%- unless include.sentinel == false -%}<!-- i18n: {{ include.id }} -->{%- endunless -%}
1+
{%- if include.sentinel == true -%}<!-- i18n: {{ include.id }} -->{%- endif -%}
22
{%- if page.lang -%}
33
{%- assign this_lang = page.lang -%}
44
{%- else -%}
@@ -27,4 +27,4 @@
2727
{{- site.data[ui_data_path].ui[this_id]['en'] -}}
2828
{%- else -%}
2929
{{- site.data[ui_data_path].ui[this_id][this_lang] -}}
30-
{%- endif -%}
30+
{%- endif -%}

0 commit comments

Comments
 (0)