add support for /assets/img/titre.png

This commit is contained in:
la Fleur 2020-11-15 13:53:52 +01:00
parent ef742ffa13
commit 0c03b64138
1 changed files with 7 additions and 1 deletions

View File

@ -1,7 +1,13 @@
{{ $currentPage := . }}
<header>
<h1>
<a href="{{ $.Site.BaseURL | relURL }}">{{ .Site.Title }}</a>
{{ with resources.Get "img/titre.png" }}
<a href="{{ $.Site.BaseURL | relURL }}">
<img src="{{ .RelPermalink }}" />
</a>
{{ else }}
<a href="{{ $.Site.BaseURL | relURL }}">{{ .Site.Title }}</a>
{{ end }}
</h1>
{{ with $.Site.Params.Description }}
{{ . }}