This repository has been archived on 2025-08-21. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
hugo-mistergeek/layouts/_default/list.html
kbe fced4930c1 refactor: update content structure and layout templates
- Updated author format in content files
- Added section field to content files
- Simplified categories format
- Removed no-category.html layout
- Updated list.html and single.html layouts
- Updated index.html layout
- Updated generate-content.js script
- Do not index content with git
2025-08-18 17:41:53 +02:00

21 lines
573 B
HTML

{{ define "main" }}
<div class="posts-list">
<h1>{{ .Title }}</h1>
{{ range .Pages }}
<article class="post-preview">
<h2><a href="{{ .RelPermalink }}">{{ .Title }}</a></h2>
<div class="post-meta">
<time>{{ .Date.Format "Jan 2, 2006" }}</time>
{{ if .Params.author }}
<span>{{ .Params.author }}</span>
{{ end }}
</div>
{{ if .Params.excerpt }}
<p class="post-excerpt">{{ .Params.excerpt }}</p>
{{ end }}
<a href="{{ .RelPermalink }}" class="read-more">Read more →</a>
</article>
{{ end }}
</div>
{{ end }}