Skip to content

Commit acf8b58

Browse files
committed
WIP
Signed-off-by: Michelle Dhanani <[email protected]>
1 parent 6edbea5 commit acf8b58

File tree

6 files changed

+61
-4
lines changed

6 files changed

+61
-4
lines changed

config/site.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
title = "Spin Docs"
22
base_url = ""
33
about = "Spin is an open-source multi-language framework and CLI for building and deploying WebAssembly apps."
4-
index_site_pages = ["sitemap", "home", "changelog", "hub_list_api"]
4+
index_site_pages = ["sitemap", "home", "changelog", "hub_list_api", "blog"]
55
prepend_route_info = true
66

77
[extra]

content/blog/hello.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
title = "HELLO WORLD"
2+
date = "2025-10-30T15:20:11.486765Z"
3+
template = "blog"
4+
tags = []
5+
6+
[extra]
7+
author = "Michelle Dhanani"
8+
type = "post"
9+
10+
---
11+
12+
This is the beginning of our community blog. Welcome to the Spin Framework Community!
13+
<!-- Ideally, for SEO there should be an image after the first paragraph or two -->
14+
15+
## Let's have a good time
16+
17+
More content here

content/blog/index.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
title = "blog"
2+
template = "blog"
3+
date = "2025-10-29T00:22:56Z"
4+
content_type = "application/json"
5+
6+
---

spin.toml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,11 @@ id = "trigger-hub-fileserver-static"
2929
component = "hub-fileserver-static"
3030
route = "/hub/..."
3131

32+
[[trigger.http]]
33+
id = "trigger-redirect-blog-index"
34+
component = "redirect-blog-index"
35+
route = "/blog"
36+
3237
[[trigger.http]]
3338
id = "trigger-spin-version-proxy"
3439
component = "spin-version-proxy"
@@ -133,3 +138,8 @@ route = "/kubernetes"
133138
[component.redirect-kubernetes]
134139
source = "modules/redirect.wasm"
135140
environment = { DESTINATION = "/deploying", STATUSCODE = "301" }
141+
142+
# Redirect /blog to /blog/index
143+
[component.redirect-blog-index]
144+
source = "modules/redirect.wasm"
145+
environment = { DESTINATION = "/blog/index" }

templates/blog.hbs

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
{{! This adds the HTML head section and the beginning of the body. See content_top.hbs. }}
2+
{{> content_top }}
3+
4+
<div class="container page-wrap">
5+
<div class="columns">
6+
7+
<div class="column">
8+
<article class="page content">
9+
<h1>{{{page.head.title}}}</h1>
10+
{{! Since this is HTML, we use the triple-curly }}
11+
{{{page.body}}}
12+
{{! Remove the `!` on the line below to see how to call a Rhai script }}
13+
{{! echo "world" }}
14+
</article>
15+
</div><!-- end col -->
16+
17+
</div>
18+
</div>
19+
20+
{{! This closes the body. See content_bottom.hbs. }}
21+
22+
{{> content_cta }}
23+
24+
{{> content_bottom }}

templates/content_navbar.hbs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@
1616
<div class="navbar-menu">
1717
<div class="navbar-start">
1818

19-
<a class="navbar-item plausible-event-name=docs-nav navbar-stack" href="/" title="Sample apps, plugins and templates in Spin Hub">
20-
<strong>Docs</strong>
21-
<small>Get started quickly with Spin</small>
19+
<a class="navbar-item plausible-event-name=docs-nav navbar-stack" href="/blog" title="Spin community blog">
20+
<strong>Community Blog</strong>
21+
<small>Stay up to date on latest with Spin</small>
2222

2323
</a>
2424

0 commit comments

Comments
 (0)