ran some tests

This commit is contained in:
2026-06-13 21:45:17 +02:00
parent ccd7c9dc27
commit 048245fcaf
32 changed files with 52 additions and 747 deletions
-5
View File
@@ -13,11 +13,6 @@ title = 'My New Hugo Project'
pageRef = '/posts'
weight = 20
[[menus.main]]
name = 'Tags'
pageRef = '/tags'
weight = 30
[module]
[module.hugoVersion]
extended = false
+9 -6
View File
@@ -1,9 +1,12 @@
{{ define "main" }}
{{ .Content }}
{{ range site.RegularPages }}
<section>
<h2><a href="{{ .RelPermalink }}">{{ .LinkTitle }}</a></h2>
{{ .Summary }}
</section>
<h1>{{ .Site.Title }}</h1>
{{ range first 5 (where .Site.RegularPages "Type" "posts") }}
<article>
<h2><a href="{{ .Permalink }}">{{ .Title }}</a></h2>
<time>{{ .Date.Format "Jan 2, 2006" }}</time>
<p>{{ .Summary }}</p>
<a href="{{ .Permalink }}">Read more →</a>
</article>
{{ end }}
{{ end }}