Files
docs.a2v.space/themes/a2v/layouts/plans/single.html
T

38 lines
1.3 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
{{ define "main" }}
<div class="article-content">
<div class="d-flex justify-content-between align-items-start mb-3">
<h1>{{ .Title }}</h1>
<span class="status-badge h5">
{{ if eq .Params.status "planned" }}🟡 Запланировано{{ end }}
{{ if eq .Params.status "in_progress" }}🟠 В процессе{{ end }}
{{ if eq .Params.status "done" }}✅ Сделано{{ end }}
{{ if eq .Params.status "cancelled" }}❌ Отменено{{ end }}
</span>
</div>
<div class="row mb-3">
{{ if .Params.plan_date }}
<div class="col">
<strong>Планируется:</strong> {{ time .Params.plan_date | dateFormat "02.01.2006" }}
</div>
{{ end }}
{{ if .Params.done_date }}
<div class="col">
<strong>Завершено:</strong> {{ time .Params.done_date | dateFormat "02.01.2006" }}
</div>
{{ end }}
<div class="col">
<strong>Запланировано:</strong> {{ .Date.Format "02.01.2006" }}
</div>
</div>
{{ .Content }}
{{ if .Params.context_quote }}
<blockquote class="context-quote">
{{ .Params.context_quote }}
</blockquote>
{{ end }}
</div>
{{ end }}