Add param logoHeight.
This commit is contained in:
parent
338d1e8264
commit
97e5eb3bd7
2 changed files with 7 additions and 2 deletions
|
|
@ -240,8 +240,9 @@ params:
|
||||||
internalPagination: true # Use Hugos internal pagination template, default false.
|
internalPagination: true # Use Hugos internal pagination template, default false.
|
||||||
jquery: true # Add jQuery, default false.
|
jquery: true # Add jQuery, default false.
|
||||||
languageDir: "" # Set ltr or rtl, defaults to ltr.
|
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.
|
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.
|
logoWidth: # Set logo width, defaults to none.
|
||||||
mainSections: # The sections you want to have listed on the front page.
|
mainSections: # The sections you want to have listed on the front page.
|
||||||
- "section1" # Default to the section with most content if not set.
|
- "section1" # Default to the section with most content if not set.
|
||||||
|
|
|
||||||
|
|
@ -15,7 +15,11 @@
|
||||||
<body class="{{ if .IsPage }}single-page{{ else }}list-page{{ end }}{{ if .IsHome }} front{{ end }}{{ with $.Param "bodyclass" }} {{ . }}{{ end }}">
|
<body class="{{ if .IsPage }}single-page{{ else }}list-page{{ end }}{{ if .IsHome }} front{{ end }}{{ with $.Param "bodyclass" }} {{ . }}{{ end }}">
|
||||||
<div class="page layout__page{{ if $.Param "sidebar" }} layout__sidebar-second{{ end }}">
|
<div class="page layout__page{{ if $.Param "sidebar" }} layout__sidebar-second{{ end }}">
|
||||||
<header class="header layout__header">
|
<header class="header layout__header">
|
||||||
{{ if $.Param "logo" | default true }}<a href="{{ "" | relLangURL }}" title="Home" rel="home" class="header__logo"><img src="{{ with $.Param "logopath" }}{{ . | relURL }}{{ else }}{{ "images/logo.png" | relURL }}{{ end }}"{{ with $.Param "logowidth" }} width="{{ . }}"{{ end }} alt="Home" class="header__logo-image"></a>{{ end }}
|
{{ if $.Param "logo" | default true -}}
|
||||||
|
<a href="{{ "" | relLangURL }}" title="Home" rel="home" class="header__logo">
|
||||||
|
<img src="{{ with $.Param "logopath" }}{{ . | relURL }}{{ else }}{{ "images/logo.png" | relURL }}{{ end }}"{{ with $.Param "logowidth" }} width="{{ . }}"{{ end }}{{ with $.Param "logoheight" }} height="{{ . }}"{{ end }} alt="Home" class="header__logo-image">
|
||||||
|
</a>
|
||||||
|
{{ end -}}
|
||||||
<h1 class="header__site-name">
|
<h1 class="header__site-name">
|
||||||
<a href="{{ "/" | relLangURL }}" title="Home" class="header__site-link" rel="home"><span>{{ site.Title }}</span></a>
|
<a href="{{ "/" | relLangURL }}" title="Home" class="header__site-link" rel="home"><span>{{ site.Title }}</span></a>
|
||||||
</h1>
|
</h1>
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue