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" title = "About"
id = "about" weight = 30
draft = false
+++ +++
{{< figure class="image main" src="/img/pic03.jpg" >}} {{< figure class="image main" src="/img/pic03.jpg" >}}

View file

@ -1,6 +1,7 @@
+++ +++
title = "Contact" title = "Contact"
id = "contact" weight = 40
draft = false
+++ +++
<form method="post" action="#"> <form method="post" action="#">
@ -22,4 +23,4 @@ id = "contact"
</ul> </ul>
</form> </form>
{{< socialLinks >}} {{< socialLinks >}}

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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