Skip to content

Commit

Permalink
adjust conditionals
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasgrocha committed Nov 7, 2023
1 parent 943e22d commit dce4ee2
Showing 1 changed file with 9 additions and 12 deletions.
21 changes: 9 additions & 12 deletions layouts/partials/sidebar/title.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,16 @@ <h1 class="brand">
<a href="{{ .Site.BaseURL }}">
<img src="{{ .Site.Params.remote_brand_image }}" alt="brand image">
</a>
{{ else }}
{{ if .Site.Params.brand_image }}
<a href="{{ .Site.BaseURL }}">
<img src="{{ .Site.Params.brand_image }}" alt="brand image">
</a>
{{ end }}
{{ if .Site.Params.brand }}
<a href="{{ .Site.BaseURL }}">
<h1>{{ .Site.Params.brand }}</h1>
</a>
{{ end }}
{{ else if .Site.Params.brand_image }}
<a href="{{ .Site.BaseURL }}">
<img src="{{ .Site.Params.brand_image }}" alt="brand image">
</a>
{{ end }}
{{ if .Site.Params.brand }}
<a href="{{ .Site.BaseURL }}">
<h1>{{ .Site.Params.brand }}</h1>
</a>
{{ end }}

</h1>
<p class="lead">
{{ with .Site.Params.description }}{{. | safeHTML}}{{end}}
Expand Down

0 comments on commit dce4ee2

Please sign in to comment.