Skip to content

Commit

Permalink
refactor: improve front-matter ex
Browse files Browse the repository at this point in the history
  • Loading branch information
alexiscolin committed Feb 25, 2025
1 parent a68ce52 commit 135c016
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions examples/gno.land/r/docs/docs.gno
Original file line number Diff line number Diff line change
@@ -1,11 +1,16 @@
package docs

func Render(_ string) string {
func frontMatter() string {
return `---
Title: Welcome to the Gno examples documentation index
Description: Welcome to the Gno examples documentation index. Explore various examples to learn more about Gno functionality and usage.
---
---`
}

func Render(_ string) string {
content := ""
content += frontMatter()
content += `
# Gno Examples Documentation
Welcome to the Gno examples documentation index.
Expand All @@ -28,4 +33,7 @@ Explore various examples to learn more about Gno functionality and usage.
- [Official documentation](https://github.com/gnolang/gno/tree/master/docs) <!-- should be /docs with gnoweb embedding the docs/ folder. -->
`
return content
}


0 comments on commit 135c016

Please sign in to comment.