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,3 +1,4 @@
+++
id = ""
title = ""
weight =
+++

View file

@ -1,6 +1,7 @@
+++
title = "About"
id = "about"
weight = 30
draft = false
+++
{{< figure class="image main" src="/img/pic03.jpg" >}}

View file

@ -1,6 +1,7 @@
+++
title = "Contact"
id = "contact"
weight = 40
draft = false
+++
<form method="post" action="#">

View file

@ -1,6 +1,7 @@
+++
title = "Elements"
id = "elements"
weight = 50
draft = true
+++
<h3 class="major">Hugo shortcodes in theme</h3>

View file

@ -1,6 +1,7 @@
+++
title = "Formspree"
id = "formspree"
weight = 60
draft = true
+++
<form id="contactform" method="post" action="https://formspree.io/insert.your@mail.adress">

View file

@ -1,6 +1,7 @@
+++
title = "Intro"
id = "intro"
weight = 10
draft = false
+++
{{< figure class="image main" src="/img/pic01.jpg" >}}

View file

@ -1,6 +1,7 @@
+++
title = "Work"
id = "work"
weight = 20
draft = false
+++
{{< figure class="image main" src="/img/pic02.jpg" >}}

View file

@ -16,8 +16,8 @@
</div>
<nav>
<ul>
{{ range sort .Site.Menus.main }}
<li><a href="{{ .URL }}">{{ .Name }}</a></li>
{{ range .Data.Pages }}
<li><a href="#{{ .File.BaseFileName }}">{{ .Title }}</a></li>
{{ end }}
</ul>
</nav>

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>