diff options
author | Adam T. Carpenter <atc@53hor.net> | 2025-04-14 12:45:28 -0400 |
---|---|---|
committer | Adam T. Carpenter <atc@53hor.net> | 2025-04-14 12:45:28 -0400 |
commit | 630003fff596f462d454a56223c02350d8b5543b (patch) | |
tree | f37b551ebf707378f55e99eec0cf07df8e759770 /templates | |
parent | a473319831b04b3d935f36ae98ebd5a9e83d4d7b (diff) | |
download | carpentertutoring-630003fff596f462d454a56223c02350d8b5543b.tar.xz carpentertutoring-630003fff596f462d454a56223c02350d8b5543b.zip |
feat: per-post open graph tags
Diffstat (limited to 'templates')
-rw-r--r-- | templates/base.html | 12 | ||||
-rw-r--r-- | templates/post.html | 11 |
2 files changed, 19 insertions, 4 deletions
diff --git a/templates/base.html b/templates/base.html index ae9fe23..b051c0f 100644 --- a/templates/base.html +++ b/templates/base.html @@ -3,7 +3,9 @@ <head> <title> + {% block title %} Tutoring Excellence Online and in Suffolk, VA - Carpenter Tutoring, LLC + {% endblock %} </title> <style> {% block style %} @@ -15,14 +17,16 @@ <link rel="stylesheet" href="/widescreen.css" /> <meta charset="utf-8" /> <meta name="viewport" content="width=device-width, initial-scale=1" /> - <meta name="description" content="Tutoring Excellence Online and in Suffolk, VA" /> - <meta property="og:description" content="Tutoring excellence online and in-person" /> <meta property="og:image" content="https://carpentertutoring.com/assets/logo.webp" /> <meta property="og:image:secure_url" content="https://carpentertutoring.com/assets/logo.webp" /> - <meta property="og:site_name" content="Carpenter Tutoring" /> - <meta property="og:title" content="Tutoring Excellence Online and in Suffolk, VA - Carpenter Tutoring, LLC" /> + <meta property="og:site_name" content="Carpenter Tutoring, LLC" /> <meta property="og:type" content="website" /> + {% block og %} + <meta name="description" content="Tutoring Excellence Online and in Suffolk, VA" /> + <meta property="og:description" content="Tutoring excellence online and in-person" /> + <meta property="og:title" content="Tutoring Excellence Online and in Suffolk, VA - Carpenter Tutoring, LLC" /> <meta property="og:url" content="https://carpentertutoring.com" /> + {% endblock %} </head> diff --git a/templates/post.html b/templates/post.html index 3155c7a..748288a 100644 --- a/templates/post.html +++ b/templates/post.html @@ -1,5 +1,16 @@ {% extends "base.html" %} +{% block title %} +{{ post.get_title() }} - Carpenter Tutoring, LLC +{% endblock %} + +{% block og %} +<meta name="description" content="{{ post.get_description() }}" /> +<meta property="og:description" content="{{ post.get_description() }}" /> +<meta property="og:title" content="{{ post.get_title() }}" /> +<meta property="og:url" content="https://carpentertutoring.com" /> +{% endblock %} + {% block main %} <section class="banner"> <h1>{{ post.get_title() }}</h1> |