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
This commit is contained in:
27
layouts/_default/baseof.html
Normal file
27
layouts/_default/baseof.html
Normal file
@@ -0,0 +1,27 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="fr">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>{{ if .IsHome }}{{ .Site.Title }}{{ else }}{{ .Title }} - {{ .Site.Title }}{{ end }}</title>
|
||||
<meta name="description" content="{{ if .Description }}{{ .Description }}{{ else }}{{ .Site.Title }}{{ end }}">
|
||||
<link rel="canonical" href="{{ .Permalink }}">
|
||||
<link rel="stylesheet" href="/css/style.css">
|
||||
</head>
|
||||
<body>
|
||||
<header>
|
||||
<nav>
|
||||
<a href="/">{{ .Site.Title }}</a>
|
||||
<a href="/posts/">Articles</a>
|
||||
</nav>
|
||||
</header>
|
||||
|
||||
<main>
|
||||
{{ block "main" . }}{{ end }}
|
||||
</main>
|
||||
|
||||
<footer>
|
||||
<p>© {{ now.Format "2006" }} {{ .Site.Title }}. Tous droits réservés.</p>
|
||||
</footer>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user