From 209166a261621b3ed4e25db252914bcd71054d31 Mon Sep 17 00:00:00 2001 From: Michael Diamond Date: Thu, 6 Aug 2015 01:39:49 -0400 Subject: [PATCH] Added sitemap configuration documentation. --- docs/content/overview/configuration.md | 3 ++- docs/content/templates/sitemap.md | 10 ++++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/docs/content/overview/configuration.md b/docs/content/overview/configuration.md index afdcc4a37..fc3d9b445 100644 --- a/docs/content/overview/configuration.md +++ b/docs/content/overview/configuration.md @@ -121,7 +121,8 @@ Following is a list of Hugo-defined variables that you can configure and their c pygmentsStyle: "monokai" # true: use pygments-css or false: color-codes directly pygmentsUseClasses: false - sitemap: "" + # default sitemap configuration map + sitemap: # filesystem path to read files relative from source: "" staticdir: "static" diff --git a/docs/content/templates/sitemap.md b/docs/content/templates/sitemap.md index 893139f4b..39d9b803e 100644 --- a/docs/content/templates/sitemap.md +++ b/docs/content/templates/sitemap.md @@ -50,3 +50,13 @@ Protocol](http://www.sitemaps.org/protocol.html). on render. Please don't include this in the template as it's not valid HTML.* + +## Configuring sitemap.xml + +Defaults for `` and `` values can be set in the site's config file, e.g.: + + [sitemap] + changefreq = "monthly" + priority = 0.5 + +The same fields can be specified in an individual page's front matter in order to override the value for that page. \ No newline at end of file