Skip to content

Commit

Permalink
migrate all cover paths
Browse files Browse the repository at this point in the history
  • Loading branch information
ianrose14 committed Sep 22, 2024
1 parent 40b9d9c commit 3ab24f3
Show file tree
Hide file tree
Showing 42 changed files with 2 additions and 9 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
website
=======

Source code for www.ianthomasrose.com (which is an alias to ian-rose.appspot.com).
Source code for www.ianthomasrose.com
9 changes: 1 addition & 8 deletions cmd/webapp/handlers.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,14 +55,7 @@ func (svr *server) albumsHandler(w http.ResponseWriter, _ *http.Request) {
}

for _, album := range results.Albums {
log.Printf("who am I? %s", album.CoverPath)
album.CoverUrl = fmt.Sprintf("/albums/thumbnail?path=%s", url.QueryEscape(album.CoverPath))
if strings.HasSuffix(album.CoverPath, "12.04.04.jpg") {
album.CoverUrl = "/images/covers/2020-07-08 12.04.04.jpg"
}
if strings.Contains(album.CoverPath, "London") {
album.CoverUrl = "/images/twitter.png"
}
album.CoverUrl = "/images/covers/" + album.CoverPath
}

if err := albumsTemplate.Execute(w, results.Albums); err != nil {
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added cmd/webapp/static/images/covers/70B_0029.jpg
Binary file added cmd/webapp/static/images/covers/IMG_1965.JPG
Binary file added cmd/webapp/static/images/covers/IMG_2762.jpg
Binary file added cmd/webapp/static/images/covers/IMG_2770.jpg
Binary file added cmd/webapp/static/images/covers/IMG_7103.jpg
Binary file added cmd/webapp/static/images/covers/IMG_9316.JPG

0 comments on commit 3ab24f3

Please sign in to comment.