Something went wrong. Try again.
Source code of my website codeka.io
Something went wrong. Try again.
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475{{ define "main" -}}<div class="post"> {{ partial "post/info.html" . }}
{{ partial "post/i18nlist.html" . }}
{{ $postDate := .Date }} {{ $twoYearsAgo := now.AddDate -2 0 0 }} {{ if lt $postDate $twoYearsAgo }} <blockquote class="alert alert-warning"> <p class="alert-heading"> ⚠️ Warning </p> <p class="alert-content"> {{ i18n "old-post" }} </p> </blockquote> {{ end }}
{{ if .Params.original }} <blockquote class="alert alert-info"> <p class="alert-heading"> ℹ️ Info </p> {{ $original := .Page.GetPage .Params.original }} <p class="alert-content"> {{ $lastmodDate := .Lastmod | time.Format ":date_medium" }} {{ i18n "lastmod.oldlink" (dict "date" $lastmodDate "link" $original.Permalink ) | .RenderString}} </p> </blockquote> {{ end }}
{{ if .Params.updated }} <blockquote class="alert alert-warning"> <p class="alert-heading"> ⚠️ Warning </p> {{ $updated := .Page.GetPage .Params.updated }} <p class="alert-content"> {{ $lastmodDate := .Lastmod | time.Format ":date_medium" }} {{ i18n "lastmod.newlink" (dict "date" $lastmodDate "link" $updated.Permalink ) | .RenderString }} </p> </blockquote> {{ end }}
{{ with .Resources }} {{ with .GetMatch "{cover.*}" }} {{ $cover820 := .Resize "820x webp q75 lanczos" }} {{ $cover480 := .Resize "480x webp q75 lanczos" }} <img srcset="{{ $cover820.RelPermalink }} 820w, {{ $cover480.RelPermalink }} 480w" sizes="(max-width: 480px) 480px, 820px" src="{{ $cover820.RelPermalink }}" alt="Illustration de couverture"/> {{ end }} {{ end }}
{{ .Content }} {{ if (.Site.Params.listmonk) }} {{ partial "post/listmonk_email_newsletters.html" . }} {{ end }} {{ partial "post/navigation.html" . }} {{ if or (.Site.Params.remark42) (.Site.Config.Services.Disqus.Shortname) }} {{ partial "post/comments.html" . }} {{ end }}</div>{{- end }}{{ define "sidebar" }} {{ if and (not .Params.hideToc) (not .Site.Params.hideToc) }} {{ partial "table_of_contents.html" . }} {{ end }}{{ end }}