Matthieu Bessat
293ac83a9d
All checks were successful
Deploy workflow / deploy (push) Successful in 17s
- per subject of projects page - add basic news page - new layout with bootstrap - more misc pages
37 lines
1.2 KiB
HTML
37 lines
1.2 KiB
HTML
{{ define "main" }}
|
|
<main class="container">
|
|
<article class="article">
|
|
<h1 class="page-title">{{ .Title }}</h1>
|
|
|
|
<p class="text-small">
|
|
{{ with .Date }}
|
|
<span>Publié le <b><time>{{ . | time.Format ":date_full" }}</time></b>,</span>
|
|
{{ end }}
|
|
{{ with .Lastmod }}
|
|
<span>Mis à jour le <b><time>{{ . | time.Format ":date_full" }}</time></b></span>
|
|
{{ end }}
|
|
</p>
|
|
|
|
|
|
{{ if .Params.featured_image }}
|
|
{{ $featuredImage := .Resources.GetMatch (.Params.featured_image.src | safeURL) }}
|
|
{{ if $featuredImage }}
|
|
{{ $featuredImage = $featuredImage.Resize "600x" }}
|
|
<figure>
|
|
<img alt="" src="{{ $featuredImage.RelPermalink }}" />
|
|
{{ with .Params.featured_image.caption }}
|
|
<figcaption>{{ . }}</figcaption>
|
|
{{ end }}
|
|
</figure>
|
|
{{ end }}
|
|
{{ end }}
|
|
|
|
{{ range .Params.tags }}
|
|
<a href="{{ "/tags/" | relLangURL }}{{ . | urlize }}">{{ . }}</a>
|
|
{{ end }}
|
|
<div>
|
|
{{ .Content }}
|
|
</div>
|
|
</article>
|
|
</main>
|
|
{{ end }}
|