better inline ad docs

This commit is contained in:
Jon McClure 2024-07-25 10:14:32 +01:00
parent 98b3c6a3dc
commit 58f0e005b9
2 changed files with 5 additions and 2 deletions

View file

@ -7,7 +7,7 @@
/** Add an ID to target with SCSS. */
export let id: string = '';
/** Update to add multiple inline ads to a page. */
/** Number of the inline ad in sequence. Use to add multiple inline ads to a page. */
export let n: 1 | 2 | 3 | '1' | '2' | '3' = 1;
/** Add a class to target with SCSS. */

View file

@ -34,10 +34,13 @@ Add programmatic ads inline on your page.
{/each}
```
You may add **up to three** inline ads per page, but must set the `n` prop on multiple ads.
You may add **up to three** inline ads per page, but must set the `n` prop on multiple ads in sequential order, 1 - 3.
```svelte
<!-- First inline ad on the page -->
<InlineAd n="{1}" />
<!-- ... second ... -->
<InlineAd n="{2}" />
<!-- ... third and final. -->
<InlineAd n="{3}" />
```