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 34084f1481 feat: implement Hugo site structure and configuration
- Add base template (baseof.html) for consistent layout
- Create home page (index.html) and content (_index.md)
- Update Hugo configuration (hugo.toml) for local development
- Improve list template with proper block definition
- Update .gitignore to exclude WordPress content
- Add .gitkeep to maintain posts directory structure
- Update package.json and dependencies
- Refactor fetch-wordpress.js to use dynamic import
- Update yarn.lock with latest dependencies
2025-08-18 15:45:20 +02:00

21 lines
578 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.name }}</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 }}