he
This commit is contained in:
parent
e96655be3d
commit
82d2f01d98
2 changed files with 16 additions and 4 deletions
|
@ -8,6 +8,13 @@ summaryLength = 50
|
|||
|
||||
assetDir = "assets"
|
||||
|
||||
[module]
|
||||
[[module.mounts]]
|
||||
source="static"
|
||||
target="assets"
|
||||
[[module.mounts]]
|
||||
source="assets"
|
||||
target="assets"
|
||||
|
||||
[languages]
|
||||
[languages.fr]
|
||||
|
|
|
@ -18,17 +18,22 @@
|
|||
{{ end }}
|
||||
|
||||
|
||||
{{ if .Params.banner }}
|
||||
{{ if (and .Params.banner false ) }}
|
||||
<b>helloworld</b>
|
||||
{{/* $featuredImage := .Resources.GetMatch (.Params.banner | safeURL) }}
|
||||
{{ $featuredImagePath := (.Params.banner | safeURL)}}
|
||||
{{ $featuredImageRelPath := (strings.TrimPrefix "https://werobot.fr/" $featuredImagePath )}}
|
||||
{{ $featuredImage := resources.Get $featuredImageRelPath }}
|
||||
{{ debug.Dump $featuredImage }}
|
||||
{{ debug.Dump $featuredImagePath }}
|
||||
{{ debug.Dump $featuredImageRelPath }}
|
||||
{{ $featuredImageCaption := "Bannière représentant l'article" }}
|
||||
{{ if $featuredImage */}}
|
||||
{{ if $featuredImage }}
|
||||
{{ $featuredImage = $featuredImage.Resize "600x" }}
|
||||
<figure>
|
||||
<img alt="{{ $featuredImageCaption }}" src="{{ $featuredImage.RelPermalink }}" />
|
||||
<figcaption>{{ $featuredImageCaption }}</figcaption>
|
||||
</figure>
|
||||
{{/* end */}}
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
|
||||
{{ range .Params.tags }}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue