Sitemap

Provide automatically generated XML sitemap.

by Sergey Romanenko


Installation

  1. Download & Install all required dependencies.
  2. Create new folder project/plugins/sitemap.
  3. Download Sitemap Plugin and unzip plugin content to the folder project.

Settings

# enabled: true or false to disable the plugin
enabled: true

# Sitemap plugin priority
priority: 100

# Sitemap route
route: /sitemap.xml

# List of entries to ignore
ignore: []

# List of additions to add
additions: []

# Default values for entries
default:

  # How frequently the page is likely to change. 
  # This value provides general information to search engines and may not correlate exactly to how often they crawl the page. 
  # Valid values are: always, hourly, daily, weekly, monthly, yearly, never.
  changefreq: daily

  # The priority of this URL relative to other URLs on your site. 
  # Valid values range from 0.0 to 1.0. This value does not affect how your pages are compared to pages on other sites—it only lets the search engines know which pages you deem most important for the crawlers. 
  # The default priority of a page is 1.
  priority: 1.0

# Date format
date_format: Y-m-d

# Settings for static sitemap generation
static:

  # sitemap.xml path (without trailing and without starting slash)
  path: '_site'

  # Site url (without trailing slash)
  site_url: ''

Generate static sitemap

You may geneate a static sitemap with help of the following console command:

./bin/flextype sitemap:generate

Version

3.1.0

Lincense

MIT

Dependencies

flextype: ^1.0.0-alpha.2
twig: ^3.1.0

Categories

seo