Skip to content

Commit

Permalink
chore(examples/gnoland): fix gnoland/home realm, rename the blog (#3177)
Browse files Browse the repository at this point in the history
<!-- please provide a detailed description of the changes made in this
pull request. -->

## Description

Fixes a broken link on the home page and renames the gno.land blog. 

Two options for the blog name:
- gno.land's blog
- The Gno Blog

Option 1 seems favorable.

<details><summary>Contributors' checklist...</summary>

- [x] Added new tests, or not needed, or not feasible
- [x] Provided an example (e.g. screenshot) to aid review or the PR is
self-explanatory
- [x] Updated the official documentation or not needed
- [x] No breaking changes were made, or a `BREAKING CHANGE: xxx` message
was included in the description
- [x] Added references to related issues and PRs
- [x] Provided any useful hints for running manual tests
</details>
  • Loading branch information
leohhhn authored Nov 26, 2024
1 parent 95450ff commit 496bcba
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion examples/gno.land/r/gnoland/blog/gnoblog.gno
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
)

var b = &blog.Blog{
Title: "Gnoland's Blog",
Title: "gno.land's blog",
Prefix: "/r/gnoland/blog:",
}

Expand Down
14 changes: 7 additions & 7 deletions examples/gno.land/r/gnoland/blog/gnoblog_test.gno
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ func TestPackage(t *testing.T) {
{
got := Render("")
expected := `
# Gnoland's Blog
# gno.land's blog
No posts.
`
Expand All @@ -28,7 +28,7 @@ No posts.
ModAddPost("slug2", "title2", "body2", "2022-05-20T13:17:23Z", "moul", "tag1,tag3")
got := Render("")
expected := `
# Gnoland's Blog
# gno.land's blog
<div class='columns-3'><div>
Expand Down Expand Up @@ -59,7 +59,7 @@ Tags: [#tag1](/r/gnoland/blog:t/tag1) [#tag3](/r/gnoland/blog:t/tag3)
Written by moul on 20 May 2022
Published by g1manfred47kzduec920z88wfr64ylksmdcedlf5 to Gnoland's Blog
Published by g1manfred47kzduec920z88wfr64ylksmdcedlf5 to gno.land's blog
---
<details><summary>Comment section</summary>
Expand All @@ -74,12 +74,12 @@ Published by g1manfred47kzduec920z88wfr64ylksmdcedlf5 to Gnoland's Blog
// list by tags.
{
got := Render("t/invalid")
expected := "# [Gnoland's Blog](/r/gnoland/blog:) / t / invalid\n\nNo posts."
expected := "# [gno.land's blog](/r/gnoland/blog:) / t / invalid\n\nNo posts."
assertMDEquals(t, got, expected)

got = Render("t/tag2")
expected = `
# [Gnoland's Blog](/r/gnoland/blog:) / t / tag2
# [gno.land's blog](/r/gnoland/blog:) / t / tag2
<div>
Expand Down Expand Up @@ -110,7 +110,7 @@ Tags: [#tag1](/r/gnoland/blog:t/tag1) [#tag3](/r/gnoland/blog:t/tag3)
Written by moul on 20 May 2022
Published by g1manfred47kzduec920z88wfr64ylksmdcedlf5 to Gnoland's Blog
Published by g1manfred47kzduec920z88wfr64ylksmdcedlf5 to gno.land's blog
---
<details><summary>Comment section</summary>
Expand Down Expand Up @@ -152,7 +152,7 @@ Tags: [#tag1](/r/gnoland/blog:t/tag1) [#tag4](/r/gnoland/blog:t/tag4)
Written by manfred on 20 May 2022
Published by g1manfred47kzduec920z88wfr64ylksmdcedlf5 to Gnoland's Blog
Published by g1manfred47kzduec920z88wfr64ylksmdcedlf5 to gno.land's blog
---
<details><summary>Comment section</summary>
Expand Down
2 changes: 1 addition & 1 deletion examples/gno.land/r/gnoland/home/home.gno
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ func latestHOFItems(num int) ui.Element {
submissions := hof.RenderExhibWidget(num)

return ui.Element{
ui.H3("[Hall of Fame](/r/demo/hof)"),
ui.H3("[Hall of Fame](/r/leon/hof)"),
ui.Text(submissions),
}
}
Expand Down
2 changes: 1 addition & 1 deletion examples/gno.land/r/gnoland/home/home_filetest.gno
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ func main() {
// </div><!-- /column-->
// <div class="column">
//
// ### [Hall of Fame](/r/demo/hof)
// ### [Hall of Fame](/r/leon/hof)
//
//
// </div><!-- /column-->
Expand Down
4 changes: 2 additions & 2 deletions examples/gno.land/r/gov/dao/v2/prop2_filetest.gno
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ func main() {
//
//
// --
// # Gnoland's Blog
// # gno.land's blog
//
// No posts.
// --
Expand All @@ -101,7 +101,7 @@ func main() {
//
//
// --
// # Gnoland's Blog
// # gno.land's blog
//
// <div class='columns-3'><div>
//
Expand Down

0 comments on commit 496bcba

Please sign in to comment.