New version of hello-friend-ng-clone

This commit is contained in:
Aloïs Micard 2024-12-14 18:46:34 +01:00
parent 2af22c2c10
commit 3a80032b84
609 changed files with 26159 additions and 104 deletions

View file

@ -1,6 +1,6 @@
{{ define "main" }}
{{ $paginator := .Paginate .Data.Pages }}
<main class="posts">
<h1>{{ .Title }}</h1>
@ -15,13 +15,13 @@
<ul class="posts-list">
{{ range .Pages }}
<li class="post-item">
<a href="{{.Permalink}}">
<a href="{{.Permalink}}" class="post-item-inner">
<span class="post-title">{{.Title}}</span>
<span class="post-day">
{{ if .Site.Params.dateformShort }}
{{ .Date.Format .Site.Params.dateformShort }}
{{ time.Format .Site.Params.dateformShort .Date }}
{{ else }}
{{ .Date.Format "Jan 2"}}
{{ time.Format "Jan 2" .Date }}
{{ end }}
</span>
</a>