Skip to content

Commit

Permalink
Fix #3663 — replace emoji with HTML escapes in templates
Browse files Browse the repository at this point in the history
  • Loading branch information
Kwpolska committed Jan 14, 2023
1 parent d52ff59 commit d65f412
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion nikola/data/themes/base-jinja/templates/gallery.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
{% else %}
<ul>
{% for folder, ftitle in folders %}
<li><a href="{{ folder }}">📂&nbsp;{{ ftitle|e }}</a></li>
<li><a href="{{ folder }}">&#x1f4c2;&nbsp;{{ ftitle|e }}</a></li>
{% endfor %}
</ul>
{% endif %}
Expand Down
2 changes: 1 addition & 1 deletion nikola/data/themes/base/templates/gallery.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
% else:
<ul>
% for folder, ftitle in folders:
<li><a href="${folder}">📂&nbsp;${ftitle|h}</a></li>
<li><a href="${folder}">&#x1f4c2;&nbsp;${ftitle|h}</a></li>
% endfor
</ul>
% endif
Expand Down
4 changes: 2 additions & 2 deletions nikola/data/themes/bootstrap4-jinja/templates/listing.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@
{% if folders or files %}
<ul>
{% for name in folders %}
<li><a href="{{ name|e }}">📂&nbsp;{{ name|e }}</a>
<li><a href="{{ name|e }}">&#x1f4c2;&nbsp;{{ name|e }}</a>
{% endfor %}
{% for name in files %}
<li><a href="{{ name|e }}.html">📄&nbsp;{{ name|e }}</a>
<li><a href="{{ name|e }}.html">&#x1f4c4;&nbsp;{{ name|e }}</a>
{% endfor %}
</ul>
{% endif %}
Expand Down
4 changes: 2 additions & 2 deletions nikola/data/themes/bootstrap4/templates/listing.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ ${ui.breadcrumbs(crumbs)}
%if folders or files:
<ul>
% for name in folders:
<li><a href="${name|h}">📂&nbsp;${name|h}</a>
<li><a href="${name|h}">&#x1f4c2;&nbsp;${name|h}</a>
% endfor
% for name in files:
<li><a href="${name|h}.html">📄&nbsp;${name|h}</a>
<li><a href="${name|h}.html">&#x1f4c4;&nbsp;${name|h}</a>
% endfor
</ul>
%endif
Expand Down

0 comments on commit d65f412

Please sign in to comment.