Skip to content
Snippets Groups Projects
Commit 28d9fb71 authored by Théo - Le Filament's avatar Théo - Le Filament
Browse files

add date and author in post page

parent 8f0e7153
No related branches found
No related tags found
No related merge requests found
Pipeline #976 passed
{{ define "main" }} {{ define "main" }}
<main id="main"> <main id="main">
<article> <article>
<span>{{ if not .Date.IsZero }}le {{ .Date.Format "02/01/2006" }}{{ end }}{{ if and ( not .Date.IsZero ) ( isset .Params "author" ) }} {{ end }}{{ if isset .Params "author" }}par {{ .Params.author }}{{ end }}</span>
<h1>{{ .Title }}</h1> <h1>{{ .Title }}</h1>
{{ .Content }} {{ .Content }}
</article> </article>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment