Global Donation Test

Sep 26, 2025
test
1   Minutes
88   Words

Global Donation Control Test

This blog post does not have showDonate set in its frontmatter.

Whether donations appear depends on the global donate.enableForAllBlogs setting in src/consts.ts:

  • If enableForAllBlogs: true - donations will appear
  • If enableForAllBlogs: false - no donations will appear

This demonstrates the global control system for blog posts.

Testing Different Scenarios

  1. Global enabled, no manual setting - Donations appear
  2. Global disabled, no manual setting - No donations
  3. Global enabled, manual showDonate: false - No donations (manual override)
  4. Global disabled, manual showDonate: true - Donations appear (manual override)

The manual showDonate setting always takes precedence over global settings.

Article title Global Donation Test
Article author Anand Raja
Release time Sep 26, 2025
Copyright 2025
RSS Feed
Sitemap