You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit e8f7b3e
Browse filesBrowse the repository at this point in the historyBrowse files
Home: photo strip picks up new album photos automatically
Every album photo that is not in the hand-written `ticker:` list of index.html is now
added to the strip (captioned "<album>, <city>"), in front of the curated ones. Image
sizes for width/height are read from the file headers (JPEG/PNG/WebP) in
_plugins/lab_pictures.rb, so the strip does not shift while photos load.
Copy file name to clipboardExpand all lines: README.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -306,7 +306,7 @@ Albums are listed at `/lab_pictures/` (linked from the footer and the People pag
306
306
- The front matter is `title`, `name`, `location`, `folder` (the image folder) and `avatar` (the cover, relative to `images/lab_pictures/`).
307
307
- The body lists captioned figures; each shows the `web/...webp` file and links to the original. Give every `<img>` its real `width` and `height` and a short `alt`.
308
308
- Photos in the folder that the body does not list are still shown after them, without captions.
309
-
3. Optional, for the Home photo strip:add a line to the `ticker:` list in the front matter of `index.html` (`src` is relative to `images/lab_pictures/`, e.g. `web/corl2022/DSC03166.webp`, plus `w`, `h`, `alt`, `cap`). Sponsor logos are the `sponsors:` list in the same place (files in `images/logo/`).
309
+
3. **Home photo strip:** every album photo appears there automatically, captioned "<album>, <city>". To give a photo its own caption (or a fixed place in the strip), add a line to the `ticker:` list in the front matter of `index.html` (`src` is relative to `images/lab_pictures/`, e.g. `web/corl2022/DSC03166.webp`, plus `w`, `h`, `alt`, `cap`). Sponsor logos are the `sponsors:` list in the same place (files in `images/logo/`).
0 commit comments