Files
FreshRSS/docs/_includes/lang_dropdown.html
T
InverleandAlexandre Alapetite 0285dc8970 Check SVG optimization in the tests CI workflow with SVGO (#9361)
* Check SVG optimization in the tests CI workflow with SVGO

Previously it was only recommended by the documentation that SVG images should be optimized using [SVGOMG](https://github.com/jakearchibald/svgomg), the web GUI version of https://github.com/svg/svgo (CLI)


Now all SVG images are optimized, and optimization is mandatory enforced by the tests CI workflow.
\+ SVGs are sanitized of potentially malicious JS code using the https://svgo.dev/docs/plugins/removeScripts/ plugin

* Output prettified SVGs instead and remove unchanged files from stdout

Co-authored-by: Alexandre Alapetite <alexandre@alapetite.fr>

* Use `removeScripts` SVGO plugin to reduce risk of malicious SVGs

* Move the CLI options to the JS config instead

* Disable `removeComments` plugin included in the default preset

* editorconfig, and easier config

---------

Co-authored-by: Alexandre Alapetite <alexandre@alapetite.fr>
2026-09-29 16:18:01 +02:00

13 lines
430 B
HTML

<div class="lang-dropdown" id="{{ include.location }}-language">
<a class="lang-btn" href="#{{ include.location }}-language" title="{%t choose_language %}">
{% include language_icon.svg %}
</a>
<a class="close" href="#close"></a>
<nav class="lang-dropdown">
<ul>
<li><a href="{{ '/en/' | relative_url }}">English (en)</a></li>
<li><a href="{{ '/fr/' | relative_url }}">Français (fr)</a></li>
</ul>
</nav>
</div>