Realized I need to start making custom layouts.
Need to make a custom layout for 'about' type pages, with no date and optional TOC.
This commit is contained in:
parent
f91fbdba5e
commit
39da5c0160
6
content/about.adoc
Normal file
6
content/about.adoc
Normal file
|
@ -0,0 +1,6 @@
|
|||
---
|
||||
title: "About"
|
||||
draft: true
|
||||
type: About
|
||||
toc: false
|
||||
---
|
8
content/resume.adoc
Normal file
8
content/resume.adoc
Normal file
|
@ -0,0 +1,8 @@
|
|||
---
|
||||
title: "Resume"
|
||||
draft: true
|
||||
type: About
|
||||
toc: true
|
||||
---
|
||||
:toc:
|
||||
:toclevels: 4
|
24
hugo.toml
24
hugo.toml
|
@ -1,5 +1,4 @@
|
|||
baseURL = 'https://gabevenberg.com/'
|
||||
languageCode = 'en-us'
|
||||
title = 'Gabe Venberg'
|
||||
theme = 'PaperMod'
|
||||
enableRobotsTXT = true
|
||||
|
@ -8,7 +7,7 @@ enableRobotsTXT = true
|
|||
env = 'production'
|
||||
title = 'ExampleSite'
|
||||
description = "ExampleSite description"
|
||||
author = 'Me'
|
||||
author = 'Gabe Venberg'
|
||||
DateFormat = "2006-1-2"
|
||||
defaultTheme = 'dark'
|
||||
disableThemeToggle = false
|
||||
|
@ -27,7 +26,7 @@ hidemeta = false
|
|||
hideFooter = true
|
||||
hideSummary = false
|
||||
showtoc = true
|
||||
tocopen = true
|
||||
tocopen = false
|
||||
mainSections = ['posts', 'docs']
|
||||
|
||||
[params.assets]
|
||||
|
@ -51,15 +50,16 @@ url = "https://git.venberg.xyz/Gabe"
|
|||
name = "Rss"
|
||||
url = "index.xml"
|
||||
|
||||
[[menu.main]]
|
||||
name = "About"
|
||||
url = "about"
|
||||
weight = 1
|
||||
|
||||
[[menu.main]]
|
||||
name = "Resume"
|
||||
url = "resume"
|
||||
weight = 1
|
||||
# need to make custom layout without date, and with TOC optional.
|
||||
# [[menu.main]]
|
||||
# name = "About"
|
||||
# url = "about"
|
||||
# weight = 1
|
||||
#
|
||||
# [[menu.main]]
|
||||
# name = "Resume"
|
||||
# url = "resume"
|
||||
# weight = 1
|
||||
|
||||
[[menu.main]]
|
||||
name = "Archive"
|
||||
|
|
Loading…
Reference in a new issue