Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@hyas/seo

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@hyas/seo - npm Package Compare versions

Comparing version 1.0.4 to 2.0.0

config/_default/params.toml

7

CHANGELOG.md

@@ -7,6 +7,13 @@ ### Changelog

#### [v2.0.0](https://github.com/gethyas/seo/compare/v1.0.4...v2.0.0)
- feat: update partials [`e0545b7`](https://github.com/gethyas/seo/commit/e0545b7e9937517bbb4a367009b33f6dc0911b9a)
#### [v1.0.4](https://github.com/gethyas/seo/compare/v1.0.3...v1.0.4)
> 11 September 2023
- Fix `$locale_alternate` definition [`#3`](https://github.com/gethyas/seo/pull/3)
- deps: bump version from 1.0.3 to 1.0.4 [`e8b73ed`](https://github.com/gethyas/seo/commit/e8b73ed6d17e07cfbff00ca187bac3b64401657a)
- meta: update CHANGELOG.md [`5fbe633`](https://github.com/gethyas/seo/commit/5fbe6334ce91f974b28b15011acc695507f242f4)

@@ -13,0 +20,0 @@ #### [v1.0.3](https://github.com/gethyas/seo/compare/v1.0.2...v1.0.3)

30

layouts/robots.txt
User-agent: *
{{- $private := slice }}
{{- range .Data.Pages }}
{{- if eq (.Param "seo.private") true }}
{{- $private = $private | append . }}
{{- end }}
{{- end }}
{{- if eq (len $private) 0 }}
Allow: *
{{- end }}
{{- if eq (len $private) (len .Data.Pages) }}
Disallow: *
{{- else }}
{{ range $private }}
Disallow: {{ .RelPermalink }}
{{ end }}
{{ end }}
{{- if ne (len $private) (len .Data.Pages) }}
{{- with site.BaseURL }}
Sitemap: {{ . }}sitemap.xml
{{- end }}
{{- end -}}
Disallow: /admin/
Sitemap: {{ "/sitemap.xml" | absURL }}
{
"name": "@hyas/seo",
"version": "1.0.4",
"version": "2.0.0",
"description": "Hyas SEO",

@@ -5,0 +5,0 @@ "author": "Hyas",

@@ -12,3 +12,3 @@ # Hyas SEO

```bash
npm i -D @hyas/seo
npm i @hyas/seo
```

@@ -30,3 +30,3 @@

Add to `./config/_default/hugo.toml`:
Add settings to `./config/_default/hugo.toml`:

@@ -41,24 +41,21 @@ ```toml

Set the `seo` parameters in `./config/_default/params.yml`:
Set parameters in `./config/_default/params.toml`:
```bash
seo:
description: "Build your next web project with the official Bootstrap starter for Hyas."
generate:
title: true
meta: true
twitter: true
og: true
jsonld:
article: true
breadcrumbs: true
title_tag:
separator: "|"
home_text: "Bootstrap Starter"
og_article_types: [post, posts, blog, news, article, articles, event, events, course, courses]
jsonld_article_types: [article, articles]
jsonld_news_article_types: [news, updates]
jsonld_blog_posting_types: [post, posts, blog]
image: "/images/kris-mikael-krister-aGihPIbrtVE-unsplash.jpg"
private: false
```toml
# Hugo
title = "My Docs"
description = "Congrats on setting up a new Doks project!"
images = ["cover.png"]
# SEO (@hyas/seo)
[seo]
[seo.title]
separator = " | "
suffix = ""
[seo.favicons]
sizes = []
icon = "favicon.png" # favicon.png (default)
svg_icon = "favicon.svg" # favicon.svg (default)
mask_icon = "mask-icon.svg" # mask-icon.svg (default)
mask_icon_color = "white" # white (default)
```

@@ -74,4 +71,4 @@

This npm package is based on the Hugo module:
This npm package is based on:
- [future-wd/hugo-seo](https://github.com/future-wd/hugo-seo)
- [Hugo SEO](https://gitlab.com/hugo-modules/hugo-seo)

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc