portails/layouts/blog/single.html

29 lines
1005 B
HTML
Raw Normal View History

2020-04-15 15:48:16 +02:00
{{ define "main" }}
2022-06-24 16:32:15 +02:00
<article>
2020-04-15 15:48:16 +02:00
<div class="row justify-content-center">
2022-06-24 16:32:15 +02:00
<div class="col-md-12 col-lg-10">
<div class="blog-header">
<div class="mt-5 mb-n3">{{ if .Params.categories -}}{{ range $index, $category := .Params.categories -}}{{ if gt $index 0 -}}, {{ end -}}<a class="link-muted" href="{{ "/categories/" | absURL }}{{ . | urlize }}/">{{ . }}</a>{{ end -}}{{ end -}}</div>
<h1>{{ .Title }}</h1>
{{ partial "main/blog-meta.html" . }}
</div>
</div>
<div class="col-md-12">
<div class="mt-n3">
{{- .Scratch.Set "fillImage" "1270x620 Center" -}}
{{ partial "content/figure.html" . }}
</div>
</div>
2020-04-15 15:48:16 +02:00
<div class="col-md-12 col-lg-10 col-xl-8">
2022-06-24 16:32:15 +02:00
{{ .Content }}
{{ if .Params.tags -}}
<div class="mt-4">
{{ range $index, $tag := .Params.tags -}}
<a class="btn btn-light" href="{{ "/tags/" | absURL }}{{ . | urlize }}/" role="button">{{ . }}</a>
{{ end -}}
</div>
{{ end -}}
2020-04-15 15:48:16 +02:00
</div>
</div>
2022-06-24 16:32:15 +02:00
</article>
2020-04-15 15:48:16 +02:00
{{ end }}