Appends a configurable greeting to the footer of every page. The reference goblog WebAssembly plugin.
f04d6cc971b9008d61c8ee99dc1f59d5a4c6d35bd5d5e40e92f33806d0218e3bThe reference goblog WebAssembly plugin. It appends a configurable greeting to the footer of every page — the smallest thing that proves a plugin is loaded.
From your goblog's Admin → Plugins → Browse, search for Hello and click Install (goblog 0.2.9 or newer). Or download plugin.wasm from the latest release into plugins/wasm/ and restart goblog.
Under Admin → Settings → Hello:
| Setting | Default | Meaning |
|---|---|---|
enabled |
true |
Set to false to hide the greeting |
message |
Hello from a WebAssembly plugin |
The text shown at the bottom of every page |
GOOS=wasip1 GOARCH=wasm go build -buildmode=c-shared -ldflags="-s -w" -o plugin.wasm .Needs Go 1.25 or newer (go.mod pins the toolchain, so GOTOOLCHAIN=auto fetches it). The plugin talks to no network (allowed_hosts is empty), stores nothing, and only implements the identity, settings and template_footer exports.
Copy this repository, change the identity (name must be unique — it keys the plugin's settings) and follow the plugin directory contract. Tag a release as vX.Y.Z; the workflow builds and uploads plugin.wasm for you.
Apache-2.0.
.go file is no longer shipped.enabled and message settings.Rewritten as a WebAssembly plugin — sandboxed, installable from Admin → Plugins in goblog 0.2.9 or newer. The 1.x Yaegi .go file is no longer shipped.
Initial release: configurable footer greeting with enabled and message settings.
GoBlog
Powered by goblog v0.3.0