package main import ( "bytes" "context" ) // EditorialButtonBlock overrides the built-in `button` block for the // editorial template. The editorial button is hairline-only: 1px border, // transparent fill, oxblood text on hover (see .editorial-button CSS). // // Content shape: { "text", "url", "ariaLabel" }. func EditorialButtonBlock(ctx context.Context, content map[string]any) string { text := getString(content, "text") url := getString(content, "url") ariaLabel := getString(content, "ariaLabel") if text == "" { return "" } var buf bytes.Buffer _ = editorialButtonComponent(text, url, ariaLabel).Render(ctx, &buf) return buf.String() }