Skip to content

Commit

Permalink
update title.html partial
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasgrocha committed Nov 7, 2023
1 parent f6d134c commit 700658f
Showing 1 changed file with 14 additions and 7 deletions.
21 changes: 14 additions & 7 deletions layouts/partials/sidebar/title.html
Original file line number Diff line number Diff line change
@@ -1,15 +1,22 @@
<div class="sidebar-about">
<h1 class="brand">
{{ if .Site.Params.brand_image }}
{{ if .Site.Params.remote_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>
<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 }}
{{ end }}

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

0 comments on commit 700658f

Please sign in to comment.