Skip to content

Commit

Permalink
Add absURL to label.icon and profileMode.imageUrl
Browse files Browse the repository at this point in the history
fixes: #622 #623
  • Loading branch information
adityatelange committed Jan 13, 2022
1 parent 72abf74 commit 0fe8575
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion layouts/partials/header.html
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
{{- if .Site.Title }}
<a href="{{ "" | absLangURL }}" accesskey="h" title="{{ $label_text }} (Alt + H)">
{{- if .Site.Params.label.icon }}
<img src="{{- .Site.Params.label.icon -}}" alt="logo" aria-label="logo"
<img src="{{- .Site.Params.label.icon | absURL -}}" alt="logo" aria-label="logo"
height="{{- .Site.Params.label.iconHeight | default " 30px" -}}">
{{- end -}}
{{- $label_text -}}
Expand Down
2 changes: 1 addition & 1 deletion layouts/partials/index_profile.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
{{- with .Site.Params.profileMode }}
<div class="profile_inner">
{{- if .imageUrl -}}
<img src="{{ .imageUrl }}" alt="{{ .imageTitle | default "profile image" }}"
<img src="{{ .imageUrl | absURL }}" alt="{{ .imageTitle | default "profile image" }}"
height="{{ .imageHeight | default 150 }}" width="{{ .imageWidth | default 150 }}" />
{{- end }}
<h1>{{ .title | default $.Site.Title | markdownify }}</h1>
Expand Down

0 comments on commit 0fe8575

Please sign in to comment.