Browse Source

fix the clip path of the british flag

The Hugo minifier turns "z v15" into "z 15", which is an invalid SVG
path: the red diagonals of the flag were not clipped. Starting each
subpath with an explicit moveto avoids the issue.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01YNHsWYTXPThURz6TbVS1j3
master
Nicolas Massé 1 month ago
parent
commit
159cbc4022
  1. 2
      layouts/_partials/icons/en.svg

2
layouts/_partials/icons/en.svg

@ -4,7 +4,7 @@
<path d="M0,0 v30 h60 v-30 z"/> <path d="M0,0 v30 h60 v-30 z"/>
</clipPath> </clipPath>
<clipPath id="t"> <clipPath id="t">
<path d="M30,15 h30 v15 z v15 h-30 z h-30 v-15 z v-15 h30 z"/> <path d="M30,15 H60 V30 Z M30,15 V30 H0 Z M30,15 H0 V0 Z M30,15 V0 H60 Z"/>
</clipPath> </clipPath>
<g clip-path="url(#s)"> <g clip-path="url(#s)">
<path d="M0,0 v30 h60 v-30 z" fill="#012169"/> <path d="M0,0 v30 h60 v-30 z" fill="#012169"/>

Before

Width:  |  Height:  |  Size: 676 B

After

Width:  |  Height:  |  Size: 689 B

Loading…
Cancel
Save