+2
templates/index.html
+2
templates/index.html
···
25
25
<ul class="px-0">
26
26
{{ $posts := .Extra.blog }}
27
27
{{ range $posts }}
28
+
{{ if .Allowed }}
28
29
<li class="mt-5 bg-white dark:bg-gray-800 py-4 px-6 rounded drop-shadow-sm list-none">
29
30
{{ $dateStr := .Meta.date }}
30
31
{{ $date := parsedate $dateStr }}
···
37
38
<p class="italic mt-1 mb-0">{{ .Meta.subtitle }}</p>
38
39
</div>
39
40
</li>
41
+
{{ end }}
40
42
{{ end }}
41
43
</ul>
42
44
</section>