aboutsummaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorJan Tuomi <jan@jantuomi.fi>2025-06-02 13:22:31 +0300
committerJan Tuomi <jan@jantuomi.fi>2025-06-02 13:22:31 +0300
commit11a3a2d8b275c1ef061ff37caa0a36faf5cce049 (patch)
tree1ed2a93be7dc394e286bf0eb558f2dad01a99d68 /templates
parentcce7acb16a08be22a0e62cf73ed38a206fd60362 (diff)
Add meta frontmatter
Diffstat (limited to 'templates')
-rw-r--r--templates/gallery.html25
1 files changed, 19 insertions, 6 deletions
diff --git a/templates/gallery.html b/templates/gallery.html
index 70f5d25..b5447e2 100644
--- a/templates/gallery.html
+++ b/templates/gallery.html
@@ -1,14 +1,26 @@
<!doctype html>
-<html>
+<html lang="en">
<head>
- <title>{{ title }}</title>
+ <meta charset="UTF-8" />
<link
rel="stylesheet"
href="{{ url_for('static', filename='style.css') }}"
/>
<meta name="viewport" content="width=device-width, initial-scale=1" />
- </head>
- <body>
+ <meta
+ name="description"
+ content="A photography portfolio by {{ author }}."
+ />
+ <meta name="keywords" content="photography, portfolio, gallery" />
+ <meta name="author" content="{{ author }}" />
+ <meta property="og:title" content="{{ author }}" />
+ <meta
+ property="og:description"
+ content="A photography portfolio by {{ author }}."
+ />
+ <meta property="og:image" content="{{ cover_img_url }}" />
+ <meta property="og:url" content="{{ base_url }}" />
+ <meta property="og:type" content="website" />
<script>
function layout() {
const isMobile =
@@ -39,9 +51,10 @@
document.addEventListener("DOMContentLoaded", layout);
window.addEventListener("resize", layout);
</script>
-
+ </head>
+ <body>
<h1>
- {{ title }} {% if ig_link %}
+ {{ author }} {% if ig_link %}
<a href="{{ ig_link }}" target="_blank" class="ig-link">
<img
src="{{ url_for('static', filename='ig.svg') }}"