Initial Hugo site with Gitea Actions deploy workflow
Some checks failed
Hugo Build & Deploy / build-deploy (push) Failing after 1m5s

This commit is contained in:
2026-02-06 19:56:10 +01:00
parent 3cb23be2d2
commit 3f087ded01
10 changed files with 123 additions and 0 deletions

View File

@@ -0,0 +1,21 @@
<!DOCTYPE html>
<html lang="{{ .Site.LanguageCode }}">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>{{ block "title" . }}{{ .Site.Title }}{{ end }}</title>
<link rel="stylesheet" href="/css/style.css">
</head>
<body>
<header>
<h1><a href="/">{{ .Site.Title }}</a></h1>
<p>{{ .Site.Params.description }}</p>
</header>
<main>
{{ block "main" . }}{{ end }}
</main>
<footer>
<p>&copy; {{ now.Year }} {{ .Site.Title }}</p>
</footer>
</body>
</html>

View File

@@ -0,0 +1,12 @@
{{ define "title" }}{{ .Title }} - {{ .Site.Title }}{{ end }}
{{ define "main" }}
<h2>{{ .Title }}</h2>
{{ .Content }}
{{ range .Pages }}
<article>
<h3><a href="{{ .Permalink }}">{{ .Title }}</a></h3>
<time>{{ .Date.Format "2 January 2006" }}</time>
<p>{{ .Summary }}</p>
</article>
{{ end }}
{{ end }}

View File

@@ -0,0 +1,9 @@
{{ define "title" }}{{ .Title }} - {{ .Site.Title }}{{ end }}
{{ define "main" }}
<article>
<h2>{{ .Title }}</h2>
<time>{{ .Date.Format "2 January 2006" }}</time>
{{ .Content }}
</article>
<a href="/">&larr; Retour</a>
{{ end }}