diff --git a/README.md b/README.md index 8415e668..3f1a9227 100644 --- a/README.md +++ b/README.md @@ -1061,6 +1061,8 @@ Page identifiers:
The site description.
#paige-site-footer
The container of the site copyright, license, and credit content.
+
#paige-site-header
+
The container of the site title and description content.
#paige-site-title
The site title.
#paige-title
diff --git a/layouts/partials/paige/site.html b/layouts/partials/paige/site.html index 3f094c35..07c027f4 100644 --- a/layouts/partials/paige/site.html +++ b/layouts/partials/paige/site.html @@ -1,8 +1,16 @@ {{ $page := . }} -{{ with $page.Param "paige.site_title" }} -

{{ . | markdownify }}

-{{ end }} -{{ with $page.Param "paige.site_description" }} -

{{ . | markdownify }}

+{{ $description := $page.Param "paige.site_description" }} +{{ $title := $page.Param "paige.site_title" }} + +{{ if or $description $title }} +
+ {{ with $title }} +

{{ . | markdownify }}

+ {{ end }} + + {{ with $description }} +

{{ . | markdownify }}

+ {{ end }} +
{{ end }}