This repository has been archived on 2026-02-24. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
shared/suma_browser/templates/social/meta_base.html
giles 668d9c7df8 feat: initial shared library extraction
Contains shared infrastructure for all coop services:
- shared/ (factory, urls, user_loader, context, internal_api, jinja_setup)
- models/ (User, Order, Calendar, Ticket, Product, Ghost CMS)
- db/ (SQLAlchemy async session, base)
- suma_browser/app/ (csrf, middleware, errors, authz, redis_cacher, payments, filters, utils)
- suma_browser/templates/ (shared base layouts, macros, error pages)
- static/ (CSS, JS, fonts, images)
- alembic/ (database migrations)
- config/ (app-config.yaml)
- editor/ (Lexical editor Node.js build)
- requirements.txt

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-09 23:11:36 +00:00

55 lines
1.9 KiB
HTML
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
{# social/meta_base.html — common, non-conflicting head tags #}
{# Expected context:
site: { title, url, logo, default_image, twitter_site, fb_app_id, description? }
request: Quart request (for canonical derivation)
robots_override: optional string ("index,follow" / "noindex,nofollow")
#}
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
{# Canonical #}
{% set _site_url = site().url.rstrip('/') if site and site().url else '' %}
{% set canonical = (
request.url if request and request.url
else (_site_url ~ request.path if request and _site_url else _site_url or None)
) %}
{# Robots: allow override; default to index,follow #}
<meta name="robots" content="{{ robots_override if robots_override is defined else 'index,follow' }}">
{# Theme & RSS #}
<meta name="theme-color" content="#ffffff">
{% if _site_url %}
<link rel="alternate" type="application/rss+xml"
title="{{ site().title if site and site().title else 'RSS' }}"
href="{{ _site_url }}/rss.xml">
{% endif %}
{# JSON-LD: Organization & WebSite are safe on all pages (dont conflict with BlogPosting) #}
{% set org_jsonld = {
"@context": "https://schema.org",
"@type": "Organization",
"name": site().title if site and site().title else "",
"url": _site_url if _site_url else None,
"logo": site().logo if site and site().logo else None
} %}
<script type="application/ld+json">
{{ org_jsonld | tojson }}
</script>
{% set website_jsonld = {
"@context": "https://schema.org",
"@type": "WebSite",
"name": site().title if site and site().title else "",
"url": _site_url if _site_url else canonical,
"potentialAction": {
"@type": "SearchAction",
"target": (_site_url ~ "/search?q={query}") if _site_url else None,
"query-input": "required name=query"
}
} %}
<script type="application/ld+json">
{{ website_jsonld | tojson }}
</script>