Skip to content

Commit

Permalink
add blog posts
Browse files Browse the repository at this point in the history
  • Loading branch information
leohhhn committed Aug 30, 2024
1 parent 6efe232 commit 5fa1e88
Showing 1 changed file with 22 additions and 6 deletions.
28 changes: 22 additions & 6 deletions examples/gno.land/r/leon/home/home.gno
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,17 @@ var (

func init() {
pfp = "https://i.imgflip.com/91vskx.jpg"
pfpCaption = "[My favourite painting](https://en.wikipedia.org/wiki/Wanderer_above_the_Sea_of_Fog)"
pfpCaption = "[My favourite painting & pfp](https://en.wikipedia.org/wiki/Wanderer_above_the_Sea_of_Fog)"
abtMe = [2]string{
"Hi, I'm Leon, a DevRel Engineer at gno.land.",
"I am a tech enthusiast, life-long learner, and sharer of knowledge.",
`### About me
Hi, I'm Leon, a DevRel Engineer at gno.land. I am a tech enthusiast,
life-long learner, and sharer of knowledge.`,
`### Contributions
My contributions to gno.land can mainly be found
[here](https://github.com/gnolang/gno/issues?q=sort:updated-desc+author:leohhhn).
TODO import r/gh
`,
}
}

Expand All @@ -42,12 +49,21 @@ func Render(path string) string {
out := "# Leon's Homepage\n\n"

out += renderAboutMe()
out += renderBlogPosts()
out += "\n\n"
out += renderArt()

return out
}

func renderBlogPosts() string {
out := "## Leon's Blog Posts"

// todo fetch blog posts authored by @leohhhn
// and render them
return out
}

func renderAboutMe() string {
out := "<div class='columns-3'>"

Expand All @@ -61,10 +77,9 @@ func renderAboutMe() string {

out += "<div>\n\n"
out += abtMe[1] + "\n\n"
out += "\n\n"
out += "</div>\n\n"

out += "</div>\n\n"
out += "</div><!-- /columns-3 -->\n\n"

return out
}
Expand All @@ -79,7 +94,8 @@ func renderArt() string {
out += renderMillipede()
out += "Empty spot :/"

out += "</div>\n\n"
out += "</div><!-- /columns-3 -->\n\n"

out += "This art is dynamic; it will change with every new block.\n\n"
out += `</div><!-- /jumbotron -->` + "\n"

Expand Down

0 comments on commit 5fa1e88

Please sign in to comment.