1.3.0 • Published 11 months ago

pub-pkg-seo v1.3.0

Weekly downloads
47
License
MIT
Repository
github
Last release
11 months 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.3.0

11 months ago

1.2.3

3 years ago

1.2.2

3 years ago

1.2.1

4 years ago

1.2.0

4 years ago

1.1.0

4 years ago

1.0.16

5 years ago

1.0.15

5 years ago

1.0.14

5 years ago

1.0.13

5 years ago

1.0.11

5 years ago

1.0.10

5 years ago

1.0.9

5 years ago

1.0.8

5 years ago

1.0.7

6 years ago

1.0.6

6 years ago

1.0.5

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

10 years ago

1.0.0

10 years ago