From 97e5eb3bd78299878d09364ebd80353b703a83a0 Mon Sep 17 00:00:00 2001 From: Fredrik Jonsson Date: Fri, 24 Feb 2023 10:42:49 +0100 Subject: [PATCH] Add param logoHeight. --- README.md | 3 ++- layouts/_default/baseof.html | 6 +++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 0eca4f6..4bf9279 100644 --- a/README.md +++ b/README.md @@ -240,8 +240,9 @@ params: internalPagination: true # Use Hugos internal pagination template, default false. jquery: true # Add jQuery, default false. languageDir: "" # Set ltr or rtl, defaults to ltr. - logo: false # Turn off the logo. + logo: false # Turn off the logo, defaults to true. logoPath: # Relative path to site logo, defaults to "images/logo.png", no leading slash. + logoHeight: # Set logo height, defaults to none. logoWidth: # Set logo width, defaults to none. mainSections: # The sections you want to have listed on the front page. - "section1" # Default to the section with most content if not set. diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index 21bc220..9eb4741 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -15,7 +15,11 @@
-{{ if $.Param "logo" | default true }}{{ end }} +{{ if $.Param "logo" | default true -}} + +{{ end -}}

{{ site.Title }}