Add `absURL` to `label.icon` and `profileMode.imageUrl`
fixes: #622 #623
This commit is contained in:
parent
72abf7440a
commit
0fe857539b
|
@ -46,7 +46,7 @@
|
||||||
{{- if .Site.Title }}
|
{{- if .Site.Title }}
|
||||||
<a href="{{ "" | absLangURL }}" accesskey="h" title="{{ $label_text }} (Alt + H)">
|
<a href="{{ "" | absLangURL }}" accesskey="h" title="{{ $label_text }} (Alt + H)">
|
||||||
{{- if .Site.Params.label.icon }}
|
{{- 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" -}}">
|
height="{{- .Site.Params.label.iconHeight | default " 30px" -}}">
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
{{- $label_text -}}
|
{{- $label_text -}}
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
{{- with .Site.Params.profileMode }}
|
{{- with .Site.Params.profileMode }}
|
||||||
<div class="profile_inner">
|
<div class="profile_inner">
|
||||||
{{- if .imageUrl -}}
|
{{- 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 }}" />
|
height="{{ .imageHeight | default 150 }}" width="{{ .imageWidth | default 150 }}" />
|
||||||
{{- end }}
|
{{- end }}
|
||||||
<h1>{{ .title | default $.Site.Title | markdownify }}</h1>
|
<h1>{{ .title | default $.Site.Title | markdownify }}</h1>
|
||||||
|
|
Loading…
Reference in New Issue