Skip to content

Commit

Permalink
Re-write ads in header example page.
Browse files Browse the repository at this point in the history
  • Loading branch information
coatless committed Dec 6, 2023
1 parent 2eb5ecb commit 80bba2a
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 18 deletions.
18 changes: 0 additions & 18 deletions example.qmd

This file was deleted.

22 changes: 22 additions & 0 deletions qgads-ad-free-page.qmd
Original file line number Diff line number Diff line change
@@ -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.

0 comments on commit 80bba2a

Please sign in to comment.