From fc429b13514c42d5327f315bf5221ddec472bc46 Mon Sep 17 00:00:00 2001 From: Johann Schopplich Date: Sun, 10 Mar 2024 11:12:43 +0100 Subject: [PATCH] docs: add site vs. page model section --- content/1.docs/2.guide/2.audit-url.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/content/1.docs/2.guide/2.audit-url.md b/content/1.docs/2.guide/2.audit-url.md index b9f60e5..e092a16 100644 --- a/content/1.docs/2.guide/2.audit-url.md +++ b/content/1.docs/2.guide/2.audit-url.md @@ -7,6 +7,12 @@ You might be wondering how the Kirby SEO Audit plugin knows which URL to process The plugin fetches the HTML content of the preview URL, performs the SEO evaluation on it and generates the SEO report. +## Site vs. Page Level + +Technically, the plugin works with any Kirby model. It uses the `previewUrl` method of the current mode (site, page or file). In the blueprint template you can customize this preview URL (see next section). + +So you can use the plugin on pages and sites, and even change the URL per template if you need to. + ## Custom Target URL In certain cases, you might want to customize the target URL used to generate the SEO report for. This can be done by adding a `preview` field to the page's options in the blueprint: