diff --git a/src/main.rs b/src/main.rs
@@ -356,19 +356,30 @@ fn render_pic_page(pic: &GalleryEntry) -> io::Result<()> {
name = Escaped(&pic.file_name))?;
}
writeln!(f, "<div id=\"picture\">")?;
+ writeln!(f, "<div>")?;
+
writeln!(f, "<div class=\"picture-container\">")?;
writeln!(
f,
- "<a aria-label=\"{name}\" href=\"/{IMAGES_PATH}/{name}\">",
- name = Escaped(&pic.file_name)
- )?;
- writeln!(
- f,
"<img alt=\"{alt}\" src=\"{path}\">",
alt = Escaped(&pic.alt),
path = ThumbPath(pic),
)?;
- writeln!(f, "</a>")?;
+ writeln!(f, "</div>")?;
+
+ writeln!(f, "<nav id=\"picture-nav\">")?;
+ writeln!(f, "<ul>")?;
+ writeln!(
+ f,
+ "<li><a href=\"/{IMAGES_PATH}/{name}\">download</a></li>",
+ name = Escaped(&pic.file_name),
+ )?;
+ if let Some(src) = &pic.source {
+ writeln!(f, "<li><a href=\"{src}\">original source</a></li>")?;
+ }
+ writeln!(f, "</ul>")?;
+ writeln!(f, "</nav>")?;
+
writeln!(f, "</div>")?;
writeln!(f, "</div>")?;
if let Some(caption) = &pic.caption {
@@ -376,11 +387,6 @@ fn render_pic_page(pic: &GalleryEntry) -> io::Result<()> {
writeln!(f, "{}", Escaped(caption))?;
writeln!(f, "</figcaption>")?;
}
- if let Some(src) = &pic.source {
- writeln!(f, "<figcaption class=\"image-source\">")?;
- writeln!(f, "original source: <a href=\"{src}\">{src}</a>")?;
- writeln!(f, "</figcaption>")?;
- }
writeln!(f, "</figure>")?;
writeln!(f, "</main>")?;