Add jobs page

This commit is contained in:
2022-01-11 17:09:54 +01:00
parent 6b1c31893b
commit 50b4962c91
15 changed files with 156 additions and 23 deletions

View File

@@ -1,25 +1,18 @@
{{ define "main" }}
{{if (isset .Params "titleimg")}}
{{$titleimg := resources.Get .Params.titleimg}}
<div class="bg-primary p-t-100 p-b-100 ta-c">
<img class="max-w-300" src="{{$titleimg.Permalink}}" alt="{{.Title}}" />
<h1 class="white uppercase">{{.Title}}</h1>
<p class="white">{{.Description}}</p>
</div>
{{end}}
<div class="container flex-row j-center wrap p-30">
{{ if not .Pages }}
<p class="ta-c m-200 disabled">Aucune offre d'emploi pour le moment.</p>
{{ end }}
<div class="container p-30">
{{range .Pages}}
<a href="{{.Permalink}}">
<div class="max-w-250 flex-1 m-20">
{{ if (isset .Params "featuredimage" )}}
{{$img := resources.Get .Params.featuredimage}}
<div style='background-image: url({{ $img.Permalink }}); background-size: cover; background-position: center center;' class="bg-bubble w-150 h-150 m-auto"></div>
{{end}}
<h3 class="primary ta-c">{{.Title}}</h3>
<p class="ta-c" style="font-size: 0.8em; text-style: italic;">Le {{dateFormat "02/01/2006" .Date}}</p>
<p class="ta-j">{{.Description}}</p>
</div>
</a>
<ul>
<li><a href="{{.Permalink}}">{{.Title}}</a></li>
</ul>
{{end}}
</div>