Fixed front matter duplication. Edited default archetype.
Fixed front matter duplication in index.html and sitemap.xml.
This commit is contained in:
parent
a93f586dde
commit
6d10f91047
9 changed files with 19 additions and 12 deletions
|
|
@ -1,3 +1,4 @@
|
|||
+++
|
||||
id = ""
|
||||
title = ""
|
||||
weight =
|
||||
+++
|
||||
|
|
|
|||
|
|
@ -1,6 +1,7 @@
|
|||
+++
|
||||
title = "About"
|
||||
id = "about"
|
||||
weight = 30
|
||||
draft = false
|
||||
+++
|
||||
|
||||
{{< figure class="image main" src="/img/pic03.jpg" >}}
|
||||
|
|
|
|||
|
|
@ -1,6 +1,7 @@
|
|||
+++
|
||||
title = "Contact"
|
||||
id = "contact"
|
||||
weight = 40
|
||||
draft = false
|
||||
+++
|
||||
|
||||
<form method="post" action="#">
|
||||
|
|
@ -22,4 +23,4 @@ id = "contact"
|
|||
</ul>
|
||||
</form>
|
||||
|
||||
{{< socialLinks >}}
|
||||
{{< socialLinks >}}
|
||||
|
|
|
|||
|
|
@ -1,6 +1,7 @@
|
|||
+++
|
||||
title = "Elements"
|
||||
id = "elements"
|
||||
weight = 50
|
||||
draft = true
|
||||
+++
|
||||
|
||||
<h3 class="major">Hugo shortcodes in theme</h3>
|
||||
|
|
|
|||
|
|
@ -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">
|
||||
|
|
|
|||
|
|
@ -1,6 +1,7 @@
|
|||
+++
|
||||
title = "Intro"
|
||||
id = "intro"
|
||||
weight = 10
|
||||
draft = false
|
||||
+++
|
||||
|
||||
{{< figure class="image main" src="/img/pic01.jpg" >}}
|
||||
|
|
|
|||
|
|
@ -1,6 +1,7 @@
|
|||
+++
|
||||
title = "Work"
|
||||
id = "work"
|
||||
weight = 20
|
||||
draft = false
|
||||
+++
|
||||
|
||||
{{< figure class="image main" src="/img/pic02.jpg" >}}
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue