- 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
27 lines
888 B
HTML
27 lines
888 B
HTML
{{ define "main" }}
|
|
<div class="home">
|
|
<section class="hero">
|
|
<h1>{{ .Site.Title }}</h1>
|
|
<p>{{ .Content }}</p>
|
|
</section>
|
|
|
|
<section class="recent-posts">
|
|
<h2>Articles récents</h2>
|
|
{{ range first 10 .Site.RegularPages }}
|
|
<article class="post-preview">
|
|
<h3><a href="{{ .RelPermalink }}">{{ .Title }}</a></h3>
|
|
<div class="post-meta">
|
|
<time>{{ .Date.Format "2 Jan 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">Lire la suite →</a>
|
|
</article>
|
|
{{ end }}
|
|
</section>
|
|
</div>
|
|
{{ end }} |