aboutsummaryrefslogtreecommitdiff
path: root/backend/templates/base.html
diff options
context:
space:
mode:
authorAnhgelus Morhtuuzh <william@herges.fr>2025-10-02 21:30:34 +0200
committerAnhgelus Morhtuuzh <william@herges.fr>2025-10-02 21:30:34 +0200
commit5dfd71bfe1c0e25da413f00256a302b13c88d26d (patch)
treeccf3adc4ac0a6caea36ff58f50fa929862a5bc08 /backend/templates/base.html
parent1e915322be3c370a682687614442c7853287b962 (diff)
perf(backend): generate content during load
Diffstat (limited to 'backend/templates/base.html')
-rw-r--r--backend/templates/base.html11
1 files changed, 4 insertions, 7 deletions
diff --git a/backend/templates/base.html b/backend/templates/base.html
index 34a7c7f..bef493f 100644
--- a/backend/templates/base.html
+++ b/backend/templates/base.html
@@ -1,5 +1,5 @@
<!doctype html>
-<html lang="fr">
+<html lang="fr" prefix="og: https://ogp.me/ns/article#">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
@@ -15,6 +15,7 @@
<meta property="og:description" content="{{ .Description }}" />
<meta property="og:local" content="fr_FR" />
<meta property="og:site_name" content="{{ .Name }}" />
+ {{ if ne .PubDate "" }}<meta property="article:published_time" content="{{ .PubDate }}">{{ end }}
<!-- Twitter -->
<meta name="twitter:card" content="summary_large_image" />
<meta property="twitter:domain" content="{{ .Domain }}" />
@@ -31,13 +32,9 @@
</nav>
</header>
{{ if .Article }}
-<main>
- {{ template "body" . }}
-</main>
+<main>{{ template "body" . }}</main>
{{ else }}
-<article>
- {{ template "body" . }}
-</article>
+<article>{{ template "body" . }}</article>
{{ end }}
<footer>
<p>&copy; 2025 - Anhgelus Morthuuzh</p>