refactor: remove deps on _index pages

This commit is contained in:
Jake Wiesler 2020-06-05 10:55:22 -04:00
parent 5008682d46
commit babed030c0
5 changed files with 18 additions and 21 deletions

View File

@ -6,9 +6,6 @@ baseURL = "https://example.org/"
copyright = "© {year}"
[params]
name = "Codex"
description = "A minimal blog theme for hugo."
twitter = "hugo-theme-codex"
github = "jakewies/hugo-theme-codex"
@ -16,13 +13,20 @@ copyright = "© {year}"
# DONT OVERRIDE #
preserveTaxonomyNames = true
[[menu.main]]
identifier = "about"
name = "about"
title = "About"
url = "/"
[[menu.main]]
identifier = "blog"
name = "blog"
title = "Blog"
url = "/blog"
preserveTaxonomyNames = true
[taxonomies]
tag = "tags"

View File

@ -1,5 +0,0 @@
---
title: "About"
linktitle: "about"
keywords: []
---

View File

@ -1,6 +0,0 @@
---
title: "Blog"
description: "This is a blog description"
linktitle: "blog"
menu: "main"
---

View File

@ -0,0 +1,5 @@
---
heading: "Hi, I'm Codex"
subheading: "A minimal blog theme for hugo."
handle: "hugo-theme-codex"
---

View File

@ -7,13 +7,12 @@
<div class="splash-container">
<div class="splash">
<!-- Replace MEEEEE -->
<h1>Hi, I'm {{ .Site.Params.name }}<span class="fancy">.</span></h1>
{{ if isset .Site.Params "twitter" }}
<span class="handle">@{{ .Site.Params.twitter }}</span>
<h1>{{ .Params.heading }}<span class="fancy">.</span></h1>
{{ if isset .Params "handle" }}
<span class="handle">@{{ .Params.handle }}</span>
{{ end }}
<h2>
{{ .Site.Params.description }}
{{ .Params.subheading }}
</h2>
<!-- Replace MEEEEE -->