bearminion 1.21.0 → 1.22.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "bearminion",
3
- "version": "1.21.0",
4
- "description": "A git-based CMS for Astro with no database and no server: JSON content in your repo, edited by clicking on the page during astro dev.",
3
+ "version": "1.22.0",
4
+ "description": "Git-based CMS for Astro. Click to edit on the page, save JSON to your repo. Start with npm create bearminion.",
5
5
  "license": "MIT",
6
6
  "author": "Jakub Lange",
7
7
  "homepage": "https://bearminion.com",
@@ -30,7 +30,9 @@ const title = site.seo.titleTemplate ? site.seo.titleTemplate.replaceAll('%s', p
30
30
  const description = page.seo.description || site.seo.description || ''
31
31
  const path = pathname.startsWith('/') ? pathname : `/${pathname}`
32
32
  const canonical = page.seo.canonical ? resolveAgainstSite(page.seo.canonical) : new URL(path, site.url).href
33
- const robots = [page.seo.noindex ? 'noindex' : 'index', page.seo.nofollow ? 'nofollow' : 'follow'].join(', ')
33
+ // SEO › Indexing: with "Allow search engines" off (site.seo.robots false), every page asks not to be indexed.
34
+ const noindex = page.seo.noindex || site.seo.robots === false
35
+ const robots = [noindex ? 'noindex' : 'index', page.seo.nofollow ? 'nofollow' : 'follow'].join(', ')
34
36
  const ogImageSrc = page.seo.ogImage ?? site.seo.ogImage
35
37
  const ogImage = ogImageSrc ? absoluteImage(ogImageSrc) : undefined
36
38
 
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "schemaVersion": 1,
3
3
  "template": "default",
4
- "version": "1.21.0",
4
+ "version": "1.22.0",
5
5
  "files": {
6
6
  "src/components/atoms/Button.astro": {
7
7
  "hash": "7be42b3dc3a3b59bec169de32a9d801904689e2705473d1945724658dc799043",
@@ -325,9 +325,10 @@
325
325
  "history": []
326
326
  },
327
327
  "src/components/seo/Seo.astro": {
328
- "hash": "1bcd3ee145234663a8b3a0b101d76bb31e69dc8d6d028ad9a83d328cf3536bf4",
328
+ "hash": "de4cc22f7094d951db664b93bf2b00706136d213ec69c89e880c163a917ad17b",
329
329
  "history": [
330
330
  "cdb5e21b469dd225d8e9e1d5d5d6fdf1c4e697ce79d1dfac7069c2dc35cd67e4",
331
+ "1bcd3ee145234663a8b3a0b101d76bb31e69dc8d6d028ad9a83d328cf3536bf4",
331
332
  "0d75bdcace1e1594fdb49e71a913f4355dc7024a9a52681e9b09922fbcd7ec2b",
332
333
  "c8831250a574e852afdf0fbbe05aa5ec4aa90dd2a3bff04b39ad64a05bc1e14c"
333
334
  ]