Add canonical and social SEO meta tags for core page templates
Some checks failed
CI / typecheck (pull_request) Failing after 2m20s
CI / lint (pull_request) Failing after 3m3s
CI / tests (pull_request) Failing after 3m7s

This commit is contained in:
Codex_B
2026-02-28 12:39:12 +00:00
parent 6fc28f9d9a
commit e279e15c9c
6 changed files with 94 additions and 9 deletions

View File

@@ -5,6 +5,7 @@
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>{% block title %}No Hype AI{% endblock %}</title>
{% block head_meta %}{% endblock %}
<script nonce="{{ request.csp_nonce|default:'' }}">
(function(){try{if(localStorage.getItem('theme')==='light'){document.documentElement.classList.remove('dark');}}catch(e){}})();
</script>

View File

@@ -1,6 +1,14 @@
{% extends 'base.html' %}
{% load core_tags %}
{% load core_tags seo_tags %}
{% block title %}Articles | No Hype AI{% endblock %}
{% block head_meta %}
{% canonical_url page as canonical %}
<link rel="canonical" href="{{ canonical }}" />
<meta name="description" content="Latest No Hype AI articles and benchmark-driven reviews." />
<meta property="og:type" content="website" />
<meta property="og:title" content="Articles | No Hype AI" />
<meta property="og:url" content="{{ canonical }}" />
{% endblock %}
{% block content %}
<h1>{{ page.title }}</h1>
{% for article in articles %}

View File

@@ -1,6 +1,21 @@
{% extends 'base.html' %}
{% load wagtailcore_tags wagtailimages_tags seo_tags %}
{% block title %}{{ page.title }} | No Hype AI{% endblock %}
{% block head_meta %}
{% canonical_url page as canonical %}
{% article_og_image_url page as og_image %}
<link rel="canonical" href="{{ canonical }}" />
<meta name="description" content="{{ page.search_description|default:page.summary }}" />
<meta property="og:type" content="article" />
<meta property="og:title" content="{{ page.title }} | No Hype AI" />
<meta property="og:description" content="{{ page.search_description|default:page.summary }}" />
<meta property="og:url" content="{{ canonical }}" />
{% if og_image %}<meta property="og:image" content="{{ og_image }}" />{% endif %}
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:title" content="{{ page.title }} | No Hype AI" />
<meta name="twitter:description" content="{{ page.search_description|default:page.summary }}" />
{% if og_image %}<meta name="twitter:image" content="{{ og_image }}" />{% endif %}
{% endblock %}
{% block content %}
<article>
<h1>{{ page.title }}</h1>

View File

@@ -1,5 +1,15 @@
{% extends 'base.html' %}
{% load seo_tags %}
{% block title %}No Hype AI{% endblock %}
{% block head_meta %}
{% canonical_url page as canonical %}
<link rel="canonical" href="{{ canonical }}" />
<meta name="description" content="Honest AI coding tool reviews for developers." />
<meta property="og:type" content="website" />
<meta property="og:title" content="No Hype AI" />
<meta property="og:description" content="Honest AI coding tool reviews for developers." />
<meta property="og:url" content="{{ canonical }}" />
{% endblock %}
{% block content %}
<section>
{% if featured_article %}