- Commit
- 83240ffe88a1b8e7591ba43b469a0549f9ec40c9
- Parent
- 2f58377cbb6c5c4222e70ac933454bb697243edb
- Author
- Pablo <pablo-escobar@riseup.net>
- Date
Minor tweak in the order of attributes in some tags
Custum build of stapix for tikz.pablopie.xyz
Minor tweak in the order of attributes in some tags
1 file changed, 2 insertions, 2 deletions
Status | File Name | N° Changes | Insertions | Deletions |
Modified | src/main.rs | 4 | 2 | 2 |
diff --git a/src/main.rs b/src/main.rs @@ -101,7 +101,7 @@ fn render_index(pic_infos: &Vec<PictureInfo>) -> io::Result<()> { for pic in pic_infos { writeln!(f, - "<link as=\"image\" rel=\"preload\" href=\"/assets/thumbs/{name}.webp\">", + "<link rel=\"preload\" as=\"image\" href=\"/assets/thumbs/{name}.webp\">", name = Escaped(&pic.file_name))?; } @@ -151,7 +151,7 @@ fn render_pic_page(pic: &PictureInfo) -> io::Result<()> { name = Escaped(&pic.file_name))?; write_head(&mut f)?; writeln!(f, - "<link as=\"image\" rel=\"preload\" href=\"/assets/photos/{n}\">", + "<link rel=\"preload\" as=\"image\" href=\"/assets/photos/{n}\">", n = Escaped(&pic.file_name))?; writeln!(f, "</head>")?;