Post feedback (πŸ‘ / πŸ‘Ž)

The site shows Was this post helpful? on every blog post. Votes are stored in the browser so each reader can only vote once per post.

Show totals for everyone (optional)

GitHub Pages is staticβ€”there is no serverβ€”so aggregated counts need a tiny backend. This repo includes a Cloudflare Worker that stores counts in KV.

  1. Install Wrangler and log in.
  2. Create a KV namespace:
    cd docs/workers
    npx wrangler kv namespace create POST_FEEDBACK
    
  3. Copy wrangler.toml.example β†’ wrangler.toml and paste the KV id.
  4. Deploy:
    npx wrangler deploy
    
  5. In docs/_config.yml, set:
    post_feedback_worker_url: "https://ggundbits-post-feedback.<your-subdomain>.workers.dev"
    
  6. Rebuild and publish the site.

CORS allows any origin by default; tighten Access-Control-Allow-Origin in the Worker if you want only https://ggundbits.com.

Turn off on one post

Front matter:

feedback: false