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:
Gabe Venberg 2023-06-26 02:15:27 -05:00
parent f91fbdba5e
commit 39da5c0160
3 changed files with 26 additions and 12 deletions

6
content/about.adoc Normal file
View file

@ -0,0 +1,6 @@
---
title: "About"
draft: true
type: About
toc: false
---

8
content/resume.adoc Normal file
View file

@ -0,0 +1,8 @@
---
title: "Resume"
draft: true
type: About
toc: true
---
:toc:
:toclevels: 4

View file

@ -1,5 +1,4 @@
baseURL = 'https://gabevenberg.com/' baseURL = 'https://gabevenberg.com/'
languageCode = 'en-us'
title = 'Gabe Venberg' title = 'Gabe Venberg'
theme = 'PaperMod' theme = 'PaperMod'
enableRobotsTXT = true enableRobotsTXT = true
@ -8,7 +7,7 @@ enableRobotsTXT = true
env = 'production' env = 'production'
title = 'ExampleSite' title = 'ExampleSite'
description = "ExampleSite description" description = "ExampleSite description"
author = 'Me' author = 'Gabe Venberg'
DateFormat = "2006-1-2" DateFormat = "2006-1-2"
defaultTheme = 'dark' defaultTheme = 'dark'
disableThemeToggle = false disableThemeToggle = false
@ -27,7 +26,7 @@ hidemeta = false
hideFooter = true hideFooter = true
hideSummary = false hideSummary = false
showtoc = true showtoc = true
tocopen = true tocopen = false
mainSections = ['posts', 'docs'] mainSections = ['posts', 'docs']
[params.assets] [params.assets]
@ -51,15 +50,16 @@ url = "https://git.venberg.xyz/Gabe"
name = "Rss" name = "Rss"
url = "index.xml" url = "index.xml"
[[menu.main]] # need to make custom layout without date, and with TOC optional.
name = "About" # [[menu.main]]
url = "about" # name = "About"
weight = 1 # url = "about"
# weight = 1
[[menu.main]] #
name = "Resume" # [[menu.main]]
url = "resume" # name = "Resume"
weight = 1 # url = "resume"
# weight = 1
[[menu.main]] [[menu.main]]
name = "Archive" name = "Archive"