From aa7f962514fb610c417769be36541cbe2efba12f Mon Sep 17 00:00:00 2001 From: Will Faught Date: Fri, 16 Dec 2022 20:11:22 -0800 Subject: [PATCH] Remove default home page title --- exampleSite/content/_index.md | 1 + layouts/partials/paige-title.html | 10 +++------- 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/exampleSite/content/_index.md b/exampleSite/content/_index.md index 15bb39cf..65489a83 100644 --- a/exampleSite/content/_index.md +++ b/exampleSite/content/_index.md @@ -3,6 +3,7 @@ blurb: There's a new daddy in town. A discipline daddy. If I make this comeback, description: Go ahead, touch the Cornballer greeting: You know [best](https://www.youtube.com/watch?v=1WDW8XKEGgU) stretch: stretch.jpg +title: No Borders, No Limits ---

diff --git a/layouts/partials/paige-title.html b/layouts/partials/paige-title.html index f42ad60d..c0d4eb3f 100644 --- a/layouts/partials/paige-title.html +++ b/layouts/partials/paige-title.html @@ -1,17 +1,13 @@ -{{ $title := .Title }} {{ $class := "display-5" }} {{ if .IsHome }} {{ $class = "display-1" }} -{{ if not $title }} -{{ $title = .Site.Title }} {{ end }} -{{ end }} -{{ if $title }} +{{ if .Title }}

{{ with .Params.link }} - {{ $title | markdownify }} + {{ .Title | markdownify }} {{ else }} - {{ $title | markdownify }} + {{ .Title | markdownify }} {{ end }}

{{ end }}