Tableau.SitemapExtension (tableau v0.24.0)
View SourceGenerate a sitemap.xml for your site, for improved search-engine indexing.
Configuration
:enabled
- boolean - Extension is active or not.
Example
config :tableau, Tableau.SitemapExtension,
enabled: true,
Custom attributes
Any page may add attributes to its sitemap <url>
entry by adding a sitemap
entry, with a map of elements to add
Frontmatter
title: "Some Page"
sitemap:
priority: 0.8
changefreq: hourly
Tableau.Page
defmodule MySite.AboutPage do
use Tableau.Page,
layout: MySite.RootLayout,
permalink: "/about",
sitemap: %{priority: 0.8, changefreq: "monthly"}
# ...
end
Generated sitemap is stored in the root of your site, at /sitemap.xml.
For more information about sitemaps, see https://www.sitemaps.org.
Summary
Functions
Callback implementation for Tableau.Extension.run/1
.
Functions
Callback implementation for Tableau.Extension.run/1
.