@@ -55,8 +55,11 @@ func imageMiddleware(page PageHeader) func(w io.Writer, node ast.Node, entering
|
||||
}
|
||||
|
||||
img.Attribute = &ast.Attribute{Attrs: map[string][]byte{
|
||||
"srcset": []byte(images.SourceSet(src)),
|
||||
"src": []byte(src),
|
||||
"srcset": []byte(images.SourceSet(src)),
|
||||
"fetchpriority": []byte("low"),
|
||||
"loading": []byte("lazy"),
|
||||
"class": []byte("min-h-48"),
|
||||
"src": []byte(src),
|
||||
}}
|
||||
// // img.Attrs["srcset"] =
|
||||
|
||||
|
||||
Reference in New Issue
Block a user