1.2.3 • Published 2 years ago

pub-pkg-seo v1.2.3

Weekly downloads
47
License
MIT
Repository
github
Last release
2 years ago

pub-pkg-seo

CI

This pub-server package provides a convenient way to generate sitemap.xml and robots.txt.

It can also inject a <meta> tag for robots and a canonical <link> tag, via handlebars helper {{{metaSeo}}}.

installation

This package is included with pub-server.

  • add pub-pkg-seo to your pub-config pkgs

usage

The generated /robots.txt file will allow all pages unless noRobots:true is set in pub-config.

Layout templates should embed {{{metaSeo}}} in the HTML header. This will also inject a <meta name="robots" content="noindex, nofollow"> unless noRobots:true

If opts.canonicalUrl is set to say https://jldec.me, the {{{metaSeo}} helper will include <link rel="canonical" href="https://jldec.me{page.href}">, appending the href for each page.

The generated /sitemap.xml will include fully qualified links to all generated pages except those with metadata values nocrawl:true or nopublish:true.

sitemap links will be qualified with the opts.appUrl prefix (also settable via the APP environment variable.)

1.2.3

2 years ago

1.2.2

2 years ago

1.2.1

3 years ago

1.2.0

3 years ago

1.1.0

3 years ago

1.0.16

3 years ago

1.0.15

4 years ago

1.0.14

4 years ago

1.0.13

4 years ago

1.0.11

4 years ago

1.0.10

4 years ago

1.0.9

4 years ago

1.0.8

4 years ago

1.0.7

5 years ago

1.0.6

5 years ago

1.0.5

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

9 years ago

1.0.0

9 years ago