diff --git a/example.qmd b/example.qmd deleted file mode 100644 index 13a6cde..0000000 --- a/example.qmd +++ /dev/null @@ -1,18 +0,0 @@ ---- -title: "Demo: Ads In Header" -adsense: - publisher-id: ca-pub-4979996562647159 -filters: -- adsense ---- - -On this page, you should see the Google Adsense code being found inside of the page's header tag, e.g. - -```yaml -adsense: - publisher-id: ca-pub-XXXXXXXXXXXXXXXX -filters: -- adsense -``` - -**Note:** Ads may take up to an hour to appear on the page/project for the first time the webpage is opened. diff --git a/qgads-ad-free-page.qmd b/qgads-ad-free-page.qmd new file mode 100644 index 0000000..3de55c1 --- /dev/null +++ b/qgads-ad-free-page.qmd @@ -0,0 +1,22 @@ +--- +title: "Enabling an Ad-Free Page with Global Configuration" +adsense: + enable-ads: false +--- + +## Overview + +This example demonstrates how to disable ads on specific pages by utilizing a YAML configuration setting. By following these steps, you can easily prevent the insertion of Google Adsense units on individual pages, ensuring an ad-free experience for your users on pages that you do not wish to monetize. + +## Configuration + +To disable ads on a per-page basis, insert the following code snippet into the YAML header of the desired page: + +```yaml +adsense: + enable-ads: false +``` + +## Result + +Upon setting `enable-ads` to `false`, the Google Adsense unit will not be included in the specified page. Consequently, ads will be effectively disabled, providing a cleaner and ad-free presentation for users accessing that particular page. \ No newline at end of file