Skip to content

Commit

Permalink
home, typos
Browse files Browse the repository at this point in the history
  • Loading branch information
leohhhn committed Dec 9, 2024
1 parent f98f6ed commit d40cb83
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 5 deletions.
6 changes: 3 additions & 3 deletions examples/gno.land/p/moul/web25/web25.gno
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Pacakge web25 provides an opinionated way to register an external web2
// Package web25 provides an opinionated way to register an external web2
// frontend to provide a "better" web2.5 experience.
package web25

Expand Down Expand Up @@ -34,9 +34,9 @@ func (c Config) GetLink() string {
const DefaultText = "Click [here]({link}) to visit the full rendering experience.\n"

// Render displays a frontend link at the top of your realm's Render function in
// a concistent way to help gno visitors to have a consistent experience.
// a consistent way to help gno visitors to have a consistent experience.
//
// if query is not nil, then it will check if it's not disable by ?no-web25, so
// if query is not nil, then it will check if it's not disabled by ?no-web25, so
// that you can call the render function from an external point of view.
func (c Config) Render(path string) string {
if realmpath.Parse(path).Query.Get("no-web25") == "1" {
Expand Down
15 changes: 13 additions & 2 deletions examples/gno.land/r/gnoland/home/home.gno
Original file line number Diff line number Diff line change
@@ -1,16 +1,27 @@
package home

func Render(_ string) string {
import "github.com/gnolang/gno/examples/gno.land/p/moul/md"

var sections []string

func Render(_ string) string {
// what is gnoland & gno
// Latest in gno.land:
// registered users, blogs, hof items, new pkgs (maybe registry pattern)
// learn about gno:pages, github
//
// User? view r/
// Dev? View r/docs
// view: examples (p/ & r/),
// footer:
// looking at X chain's home realm render
// links, other stats
//
}

func intro() string {
out := md.H1("Welcome to gno.land")
out += md.H2("We're building gno.land, xyz")
out += md.Paragraph(`gno.land is a blockchain platform that allows users
to have full transparency over the applications they are using`)

}

0 comments on commit d40cb83

Please sign in to comment.