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"
|
assetDir = "assets"
|
||||||
|
|
||||||
|
[module]
|
||||||
|
[[module.mounts]]
|
||||||
|
source="static"
|
||||||
|
target="assets"
|
||||||
|
[[module.mounts]]
|
||||||
|
source="assets"
|
||||||
|
target="assets"
|
||||||
|
|
||||||
[languages]
|
[languages]
|
||||||
[languages.fr]
|
[languages.fr]
|
||||||
|
|
|
@ -18,17 +18,22 @@
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
|
|
||||||
{{ if .Params.banner }}
|
{{ if (and .Params.banner false ) }}
|
||||||
<b>helloworld</b>
|
<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" }}
|
{{ $featuredImageCaption := "Bannière représentant l'article" }}
|
||||||
{{ if $featuredImage */}}
|
{{ if $featuredImage }}
|
||||||
{{ $featuredImage = $featuredImage.Resize "600x" }}
|
{{ $featuredImage = $featuredImage.Resize "600x" }}
|
||||||
<figure>
|
<figure>
|
||||||
<img alt="{{ $featuredImageCaption }}" src="{{ $featuredImage.RelPermalink }}" />
|
<img alt="{{ $featuredImageCaption }}" src="{{ $featuredImage.RelPermalink }}" />
|
||||||
<figcaption>{{ $featuredImageCaption }}</figcaption>
|
<figcaption>{{ $featuredImageCaption }}</figcaption>
|
||||||
</figure>
|
</figure>
|
||||||
{{/* end */}}
|
{{ end }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
{{ range .Params.tags }}
|
{{ range .Params.tags }}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue