Replace all SVGs with PNGs.
h3rald h3rald@h3rald.com
Mon, 15 Jun 2026 06:59:13 +0200
426 files changed,
8 insertions(+),
20 deletions(-)
jump to
M
rules.min
→
rules.min
@@ -264,22 +264,11 @@ :match
match 0 get :content match 1 get :icon match 2 get :explicit-title - "assets/images/icons/$#.svg" (icon) =% :path + "assets/images/icons/$#.png" (icon) =% :path (path fs.file?) ( - path fs.read xml.from-xml "svg" xml.query :svgx - icon :title - (explicit-title "" !=) - (explicit-title @title) - when - ;; Add title tag - "<title>$#</title>" (title) =% xml.from-xml :svg-title - svgx stack.dup "children" dict.get svg-title stack.swap prepend "children" dict.set @svgx - ;; Add role="img" - svgx "attributes" dict.get :svg-attrs - svgx svg-attrs "img" "role" dict.set "attributes" dict.set @svgx - svgx xml.to-xml :svg - "<span class=\"icon\">$#</span>" (svg) =% @content + path "^assets" "" replace @path + "<img class=\"icon\" src=\"$#\" title=\"$#\" />" (path icon) =% @content ) ( (whitelist icon in? not)
M
templates/_header.mustache
→
templates/_header.mustache
@@ -4,8 +4,8 @@ -->
<header class="main-header box"> <h1> <a href="/" title="H3RALD"> - <img src="/images/logo-light.svg" alt="H3RALD" class="logo light-mode-hide"> - <img src="/images/logo-dark.svg" alt="H3RALD" class="logo dark-mode-hide"> + <img src="/images/logo-light.png" alt="H3RALD" class="logo light-mode-hide"> + <img src="/images/logo-dark.png" alt="H3RALD" class="logo dark-mode-hide"> </a> </h1> <div class="navlinks">