diff --git a/package.json b/package.json index 506b316..fa6e0bb 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "isbot", "version": "5.0.0", - "description": "🤖 Recognise bots/crawlers/spiders using the user agent string.", + "description": "🤖/👨‍🦰 Recognise bots/crawlers/spiders using the user agent string.", "keywords": [ "bot", "crawlers", diff --git a/page/index.pug b/page/index.pug index 3fec7e8..36eacde 100644 --- a/page/index.pug +++ b/page/index.pug @@ -4,10 +4,10 @@ html(lang="en-GB") meta(charset="utf-8") meta(http-equiv="X-UA-Compatible" content="IE=edge, chrome=1") meta(name="viewport" content="width=device-width, initial-scale=1, user-scalable=yes") - meta(name="description" content="🤖/👨‍🦰 Check if user agent string belongs to a bot, crawlers, spiders") + meta(name="description" content=description) title isbot: Recognise bots/crawlers/spiders using the user agent string link(rel="search" type="application/opensearchdescription+xml" title="isbot check" href="/opensearch.xml") - link(rel="author" href="https://github.com/omrilotan/isbot") + link(rel="author" href=repositoryUrl) link(rel="stylesheet" href="./styles.css") link(rel="shortcut icon" href="./favicon.ico" type="image/x-icon") body @@ -17,5 +17,5 @@ html(lang="en-GB") output button(id="copy-link") Copy link p Powered by Javascript package  - a(href="https://github.com/omrilotan/isbot" rel="noopener noreferrer") isbot + a(href=repositoryUrl rel="noopener noreferrer") #{packageFullName} script(src="./script.ts") diff --git a/pug.config.js b/pug.config.js new file mode 100644 index 0000000..500a726 --- /dev/null +++ b/pug.config.js @@ -0,0 +1,14 @@ +const { + name, + description, + version, + repository: { url: repositoryUrl }, +} = require("./package.json"); + +module.exports = { + locals: { + packageFullName: [name, version].join("@"), + description, + repositoryUrl, + }, +};