Skip to content

Commit

Permalink
fix: Update context title for artist page
Browse files Browse the repository at this point in the history
  • Loading branch information
blackfyre committed Feb 28, 2024
1 parent 56e7ab3 commit b65ea30
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion handlers/artist.go
Original file line number Diff line number Diff line change
Expand Up @@ -291,6 +291,7 @@ func processArtwork(c echo.Context, app *pocketbase.PocketBase) error {
Name: artist.GetString("name"),
Bio: artist.GetString("bio"),
Profession: artist.GetString("profession"),
Url: "/artists/" + artistSlug,
},
}

Expand Down Expand Up @@ -334,7 +335,7 @@ func processArtwork(c echo.Context, app *pocketbase.PocketBase) error {

content.Jsonld = fmt.Sprintf(`<script type="application/ld+json">%s</script>`, marshalled)

ctx := tmplUtils.DecorateContext(context.Background(), tmplUtils.TitleKey, fmt.Sprintf("%s - %s", content.Name, content.BioExcerpt))
ctx := tmplUtils.DecorateContext(context.Background(), tmplUtils.TitleKey, fmt.Sprintf("%s - %s", content.Title, content.Artist.Name))

if isHtmx {
c.Response().Header().Set("HX-Push-Url", fullUrl)
Expand Down

0 comments on commit b65ea30

Please sign in to comment.