diff --git a/layouts/_default/home.html b/layouts/_default/home.html index 8f613cc2..c388e265 100644 --- a/layouts/_default/home.html +++ b/layouts/_default/home.html @@ -1,23 +1,7 @@ {{ define "main" }} -{{ $title := .Title }} -{{ if not $title }} -{{ $title = .Site.Title }} -{{ end }} -{{ if $title }} -
{{ .Description | markdownify }}
-{{ end }} -{{ if .PublishDate }} - -{{ end }} +{{ partial "paige_title_content.html" . }} +{{ partial "paige_description.html" . }} +{{ partial "paige_date.html" . }} {{ if .Params.stretch }} {{ end }} diff --git a/layouts/partials/paige_date.html b/layouts/partials/paige_date.html new file mode 100644 index 00000000..5493682c --- /dev/null +++ b/layouts/partials/paige_date.html @@ -0,0 +1,3 @@ +{{ if .PublishDate }} + +{{ end }} diff --git a/layouts/partials/paige_description.html b/layouts/partials/paige_description.html new file mode 100644 index 00000000..30cb0701 --- /dev/null +++ b/layouts/partials/paige_description.html @@ -0,0 +1,3 @@ +{{ if .Description }} +{{ .Description | markdownify }}
+{{ end }} diff --git a/layouts/partials/paige_page.html b/layouts/partials/paige_page.html index cea8e67b..e9c5fc61 100644 --- a/layouts/partials/paige_page.html +++ b/layouts/partials/paige_page.html @@ -1,16 +1,4 @@ -{{ if .Title }} -{{ .Description | markdownify }}
-{{ end }} -{{ if .PublishDate }} - -{{ end }} +{{ partial "paige_title_content.html" . }} +{{ partial "paige_description.html" . }} +{{ partial "paige_date.html" . }} {{ partial "paige_content.html" . }} diff --git a/layouts/partials/paige_title_content.html b/layouts/partials/paige_title_content.html new file mode 100644 index 00000000..65090c02 --- /dev/null +++ b/layouts/partials/paige_title_content.html @@ -0,0 +1,17 @@ +{{ $title := .Title }} +{{ $class := "display-5" }} +{{ if .IsHome }} +{{ $class = "display-1" }} +{{ if not $title }} +{{ $title = .Site.Title }} +{{ end }} +{{ end }} +{{ if $title }} +