Miss any of our Open RFC calls?Watch the recordings here! »

pub-pkg-seo

1.0.11 • Public • Published

pub-pkg-seo

CI

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

installation

  • npm install --save pub-pkg-seo
  • 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

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.)

Install

npm i pub-pkg-seo

DownloadsWeekly Downloads

37

Version

1.0.11

License

MIT

Unpacked Size

3.81 kB

Total Files

8

Last publish

Collaborators

  • avatar