Skip to content

Commit

Permalink
feat: add title
Browse files Browse the repository at this point in the history
  • Loading branch information
alexiscolin committed Dec 12, 2024
1 parent d3ad8dd commit 0d5f98f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions gno.land/pkg/gnoweb/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,9 @@ func (h *WebHandler) Get(w http.ResponseWriter, r *http.Request) {
h.logger.Warn("page not found", "path", r.URL.Path, "err", err)
status, err = http.StatusNotFound, components.RenderStatusComponent(&body, "page not found")
} else {
//TODO: real data (title & description)
indexData.HeadData.Title = "gno.land - " + gnourl.Path

switch gnourl.Kind() {
case KindRealm, KindPure:
status, err = h.renderPackage(&body, gnourl)
Expand Down

0 comments on commit 0d5f98f

Please sign in to comment.