Giter Site home page Giter Site logo

shaileshofficial2019 / netlify-plugin-submit-sitemap Goto Github PK

View Code? Open in Web Editor NEW

This project forked from cdeleeuwe/netlify-plugin-submit-sitemap

1.0 1.0 0.0 48 KB

Automatically submit your sitemap after production build

JavaScript 97.90% HTML 2.10%

netlify-plugin-submit-sitemap's Introduction

Netlify Build Plugin: Automatically submit your sitemap after every production build

Automatically submit your sitemap to Google,Bing and Yandex after every production build!

This plugin will notify the search engines after every production build about your latest sitemap. The plugin can be used without any configuration if using the defaults.

Usage

You can install this plugin in the Netlify UI from this direct in-app installation link or from the Plugins directory.

To use file-based installation, add the following lines to your netlify.toml file:

[build]
  publish = "public"

[[plugins]]
  package = "netlify-plugin-submit-sitemap"

	[plugins.inputs]

	# The base url of your site (optional, default = main URL set in Netlify)
	baseUrl = "https://example.com"

	# Path to the sitemap URL (optional, default = /sitemap.xml)
	sitemapPath = "/sitemap.xml"

	# Time in seconds to not submit the sitemap after successful submission
	ignorePeriod = 0

	# Enabled providers to submit sitemap to (optional, default = 'google', 'yandex','bing'). Possible providers are currently only 'google', 'yandex','bing'.
	providers = [
		"google",
		"yandex",
		"bing",
	]

	# Enable IndexNow (default = false ,Required for Bing and Yandex)
	enableIndexNow = true

	#keyLocation (optional, In Case if Your key is Located at someware else)
	keyLocation = ""

Instruction For Key

  • Generate Your Key from https://bing.com/indexnow and put it in root of your site.

  • visit https://www.indexnow.org for more information about key.

  • Your-key should have a minimum of 8 and a maximum of 128 hexadecimal characters. The key can contain only the following characters: lowercase characters (a-z), uppercase characters (A-Z), numbers (0-9), and dashes (-).

  • If Your Key is Located at some where else, put the path to the key in keyLocation.

  • Make Sure That You are not exposing your key in sitemap.xml file.

  • see example for better understanding.

  • If You enable IndexNow then Set INDEXNOW_KEY Environmental Variable as your Key

Note: The [[plugins]] line is required for each plugin, even if you have other plugins in your netlify.toml file already.

To complete file-based installation, from your project's base directory, use npm, yarn, or any other Node.js package manager to add this plugin to devDependencies in package.json.

npm install -D netlify-plugin-submit-sitemap

Notes

  • DuckDuckGo is not a supported provider because it currently doesn't offer any manual method where you can enter your sitemap or webpage URLs for indexing; more information can be found here

netlify-plugin-submit-sitemap's People

Contributors

cdeleeuwe avatar shaileshofficial2019 avatar dependabot[bot] avatar blakegearin avatar lunelson avatar rstavchansky avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.