39 lines
1.1 KiB
HTML
39 lines
1.1 KiB
HTML
{{ define "main" }}
|
|
<div class="info">
|
|
{{ with .Site.GetPage "/" }}
|
|
<a href="/">
|
|
<h1>{{ .Title }}</h1>
|
|
</a>
|
|
{{ .Content }}
|
|
{{ end }}
|
|
</div>
|
|
<div class="portfolio">
|
|
<ul class="categories" id="categories">
|
|
{{ $term := .Data.Term }}
|
|
{{- range $name, $items := .Site.Taxonomies.categories }}
|
|
<li>
|
|
<a {{if eq ($name | title) $term }}class="actif" {{ end }}href="{{ "categories/" | relLangURL }}{{ $name | urlize | lower }}/#categories">
|
|
#{{ $name | title | humanize }}
|
|
</a>
|
|
</li>
|
|
{{- end }}
|
|
</ul>
|
|
<ul class="projets" id="projets">
|
|
{{ $pages := .Data.Pages.Reverse }}
|
|
{{ range $pages }}
|
|
<li class="item">
|
|
{{ $image := .Resources.GetMatch (default "*" .Params.image) }}
|
|
{{ if $image }}
|
|
{{ $resized := $image.Fill "280x280 Center"}}
|
|
<img src="{{ $resized.RelPermalink }}">
|
|
{{ end }}
|
|
<a href="{{.RelPermalink}}" class="description">
|
|
<h2>{{ .Title }}</h2>
|
|
<p>{{ .Description }}</p>
|
|
</a>
|
|
</li>
|
|
{{ end }}
|
|
</ul>
|
|
</div>
|
|
{{ end }}
|