generated from coatless-devcontainer/quarto-extension-dev
-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Re-write ads in header example page.
- Loading branch information
Showing
2 changed files
with
22 additions
and
18 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |