Skip to content

Commit

Permalink
Add version to isbot webpage
Browse files Browse the repository at this point in the history
  • Loading branch information
omrilotan committed Feb 15, 2024
1 parent 91dd168 commit ffe65e9
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
6 changes: 3 additions & 3 deletions page/index.pug
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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")
14 changes: 14 additions & 0 deletions pug.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
const {
name,
description,
version,
repository: { url: repositoryUrl },
} = require("./package.json");

module.exports = {
locals: {
packageFullName: [name, version].join("@"),
description,
repositoryUrl,
},
};

0 comments on commit ffe65e9

Please sign in to comment.