Utensil's technical posts in Chinese (mostly 2005-2020) utensil.tngl.sh/tech/
0

Configure Feed

Select the types of activity you want to include in your feed.

fix(tech/home): use != image_tag (raw, not HTML-escaped) in haml

haml's '=' escapes the output, so '= image_tag …' rendered the literal
'<img src=…>' text on the page instead of an actual <img> tag. Use '!='
to emit unescaped HTML — matches the surrounding '!= stylesheet_link_tag'
pattern in the same template.

+1 -1
+1 -1
source/tech/index.html.haml
··· 19 19 %span.fork-me-before<> 20 20 sil 21 21 %a{:href => "https://github.com/utensil", :target => "_blank"} 22 - = image_tag 'fork.png', class: 'fork-me-overlay' 22 + != image_tag('fork.png', class: 'fork-me-overlay') 23 23 %h2.subtitle 24 24 %p 25 25 %span In fascination of