#16920: Page rendering error on Haiku Website
---------------------------------------+--------------------------
Reporter: jt15s | Owner: waddlesplash
Type: bug | Status: new
Priority: normal | Milestone: Unscheduled
Component: Website/www.haiku-os.org | Version: R1/beta2
Resolution: | Keywords:
Blocked By: | Blocking:
Platform: All |
---------------------------------------+--------------------------
Comment (by madmax):
BTW, if you want to test, just install the [https://gohugo.io/getting-
started/installing site builder] and type `hugo server`. Even if it may
not be the exact same version and configuration, that builds the pages and
starts a local server, with live changes as your save sources, and may
show more detailed errors.
{{{
[madmax@localhost website]$ hugo server
Built in 42620 ms
Error: Error building site:
"/home/madmax/src/haiku/website/content/community/getting-
involved/promotion.md:2:1": unmarshal failed: Near line 1 (last key parsed
''): bare keys cannot contain ':'
}}}
Probably not very helpful unless you already know your stuff, but
something about keys and colons, and I see two values assigned with '='
and the other two with ':'. Let's change all to '=' and see:
{{{
[madmax@localhost website]$ git diff content/community/getting-
involved/promotion.md
diff --git a/content/community/getting-involved/promotion.md
b/content/community/getting-involved/promotion.md
index 47b8865..e3b26a4 100644
--- a/content/community/getting-involved/promotion.md
+++ b/content/community/getting-involved/promotion.md
@@ -1,7 +1,7 @@
+++
type = "article"
-title: "Promotion"
-date: 2021-04-14T15:16:45+10:00
+title = "Promotion"
+date = 2021-04-14T15:16:45+10:00
tags = []
+++
[madmax@localhost website]$ hugo server
| EN
-------------------+-------
Pages | 3285
Paginator pages | 312
Non-page files | 57
Static files | 2582
Processed images | 0
Aliases | 913
Sitemaps | 0
Cleaned | 0
Built in 53269 ms
Watching for changes in
/home/madmax/src/haiku/website/{content,data,static,themes}
Watching for config changes in /home/madmax/src/haiku/website/config.toml
Environment: "development"
Serving pages from memory
Running in Fast Render Mode. For full rebuilds on change: hugo server
--disableFastRender
Web Server is available at http://localhost:1313/ ;(bind address 127.0.0.1)
Press Ctrl+C to stop
}}}
That works, the site builds and the page loads. Now the really difficult
part, which is content, I haven't checked :-)
--
Ticket URL: <https://dev.haiku-os.org/ticket/16920#comment:5>
Haiku <https://dev.haiku-os.org>
The Haiku operating system.