refactor: remove deps on _index pages
This commit is contained in:
parent
5008682d46
commit
babed030c0
14
config.toml
14
config.toml
|
@ -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"
|
||||
|
||||
|
|
|
@ -1,5 +0,0 @@
|
|||
---
|
||||
title: "About"
|
||||
linktitle: "about"
|
||||
keywords: []
|
||||
---
|
|
@ -1,6 +0,0 @@
|
|||
---
|
||||
title: "Blog"
|
||||
description: "This is a blog description"
|
||||
linktitle: "blog"
|
||||
menu: "main"
|
||||
---
|
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
heading: "Hi, I'm Codex"
|
||||
subheading: "A minimal blog theme for hugo."
|
||||
handle: "hugo-theme-codex"
|
||||
---
|
|
@ -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 -->
|
||||
|
||||
|
|
Loading…
Reference in New Issue