thibaudcolas / detect-wagtail

Detect whether a site or page is built with Wagtail

Home Page:https://detect-wagtail.netlify.app/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

detect-wagtail on npm Build status Netlify Status

Detect whether a site or page is built with Wagtail.

Usage

You can run the detection with:

How it works

Full read: Detecting Wagtail in the wild.

This uses regular expressions to check whether images on the page match a predetermined pattern:

We also check whether the rich text content on the page matches how Wagtail stores this data.

There can be false positives with such simple checks, but they have the benefit of working regardless of whether the target site is directly served by Wagtail, or if Wagtail is used as a headless CMS.

Related links

Contributing

git clone git@github.com:thibaudcolas/detect-wagtail.git
cd detect-wagtail
nvm use
npm install
npm run test
npm install netlify-cli -g
netlify dev

About

Detect whether a site or page is built with Wagtail

https://detect-wagtail.netlify.app/

License:MIT License


Languages

Language:JavaScript 49.8%Language:HTML 43.8%Language:Shell 6.4%