ran some tests
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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 }}
|
||||
|
||||
Reference in New Issue
Block a user