Fixed front matter duplication. Edited default archetype.

Fixed front matter duplication in index.html and sitemap.xml.
This commit is contained in:
Seth 2017-02-28 01:12:38 -05:00
parent a93f586dde
commit 6d10f91047
9 changed files with 19 additions and 12 deletions

View file

@ -1,8 +1,8 @@
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
{{ $baseURL := .Site.BaseURL }}
{{ range sort .Site.Menus.main }}
{{ range sort .Data.Pages }}
<url>
<loc>{{ $baseURL }}{{ .URL }}</loc>
<loc>{{ $baseURL }}#{{ .File.BaseFileName }}</loc>
</url>
{{ end }}
</urlset>