2022-02-22 19:21:32 +00:00
|
|
|
{{ define "main" }}
|
|
|
|
<section class="section-sm">
|
|
|
|
<div class="container">
|
|
|
|
<div class="row">
|
2023-08-02 08:48:05 +00:00
|
|
|
<div class="col-lg-8 mb-10 mb-lg-0">
|
2022-02-22 19:21:32 +00:00
|
|
|
|
|
|
|
|
|
|
|
{{- $pctx := . -}}
|
|
|
|
{{- $pages := .Site.RegularPages -}}
|
|
|
|
{{ $paginator := .Paginate (where $pages "Type" "blog") }}
|
|
|
|
{{ range sort .Paginator.Pages }}
|
|
|
|
|
2022-03-31 04:22:55 +00:00
|
|
|
<article class="posts featured-post">
|
2022-02-22 19:21:32 +00:00
|
|
|
<div class="row mb-20">
|
|
|
|
|
|
|
|
{{ if .Params.Image }}
|
|
|
|
{{ $article := .Permalink | relURL }}
|
|
|
|
{{ $image := .Params.Image | relURL }}
|
|
|
|
<div class="col-md-4">
|
2022-03-31 04:22:55 +00:00
|
|
|
<img src="{{ print $article $image }}" class="posts-img" alt="{{ .Title | markdownify }}">
|
2022-02-22 19:21:32 +00:00
|
|
|
</div>
|
|
|
|
<div class="col-md-7">
|
|
|
|
{{ else }}
|
|
|
|
<div class="col-md-10">
|
|
|
|
{{ end }}
|
|
|
|
|
|
|
|
<div class="card-body pt-0">
|
|
|
|
{{ range .Params.Categories }}
|
|
|
|
<a href="{{ `categories/` | relLangURL }}{{ . | urlize | lower }}"
|
|
|
|
class="text-primary">{{ . | title | humanize }}</a>
|
|
|
|
{{ end }}
|
|
|
|
<a href="{{ .Permalink }}" class="h3 my-3 pt-0">{{ .Title | markdownify }}</a>
|
2023-08-09 19:18:31 +00:00
|
|
|
COUCOU
|
2022-02-22 19:21:32 +00:00
|
|
|
<div class="mb-3 post-meta">
|
|
|
|
{{ if not .Params.HideDate }}
|
2022-03-31 04:22:55 +00:00
|
|
|
<span>{{ (time .Date) | time.Format (.Params.date_format | default "2 January 2006") }}</span>
|
2022-02-22 19:21:32 +00:00
|
|
|
{{ end }}
|
|
|
|
</div>
|
|
|
|
<p class="card-text">{{ .Summary }}</p>
|
|
|
|
<div class="d-flex justify-content-end">
|
2022-03-31 04:22:55 +00:00
|
|
|
<a href="{{ .Permalink }}" class="btn btn-outline-primary">{{ i18n "readMore" }}</a>
|
2022-02-22 19:21:32 +00:00
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</article>
|
|
|
|
{{ end }}
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<!-- sidebar-->
|
|
|
|
{{ partial "sidebar.html" . }}
|
|
|
|
|
|
|
|
<!-- pagination -->
|
|
|
|
<div class="col-12 mt-5">
|
|
|
|
{{ template "_internal/pagination.html" . }}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</section>
|
2023-08-02 08:48:05 +00:00
|
|
|
{{ end }}
|