Skip to content

Commit

Permalink
Check TitleIcon before printing <img>
Browse files Browse the repository at this point in the history
  • Loading branch information
adityatelange committed May 20, 2023
1 parent ebbcfe9 commit 435a642
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion layouts/partials/header.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<header>
<h1>
<a href="{{ "" | absURL }}">
<img src="{{ site.Params.TitleIcon | absURL }}">
{{ with site.Params.TitleIcon }}<img src="{{ . | absURL }}">{{ end }}
<span>{{ site.Title }}</span>
</a>
{{- if not .IsHome }}
Expand Down

0 comments on commit 435a642

Please sign in to comment.