You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(seo): smarter meta-description fallbacks; trim over-long defaults (#1142, #1324)
OG/social inspectors flagged the generic 187-char description on pages that fell
back to the lab boilerplate (home + projects without a one-line summary). Give
those pages distinct, length-bounded descriptions:
- Home: a concise (~135 char) description mirroring the hero "About Us" blurb next
to the animated logo, instead of the shared generic one. Reused for the
Organization JSON-LD description too.
- Projects without a `summary`: fall back to the project's `about` text (stripped +
truncated to 160) rather than the generic boilerplate — gives each summary-less
project a distinct description (directly helps #1142's duplicate-content signal).
- Trim the last-resort generic default to ~135 chars.
Per-page descriptions for listing/member pages were already fine (144-160). The
image-headline / call-to-action warnings from opengraph.xyz are marketing heuristics
(text baked into the share image) and intentionally not addressed — inappropriate
for an academic lab and not a correctness/SEO issue.
Bumps version to 2.12.1. Template/view-only — no schema change, so no migration.
Adds DescriptionFallbackTests; full suite 270 green.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Copy file name to clipboardExpand all lines: makeabilitylab/settings.py
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -72,8 +72,8 @@
72
72
ALLOWED_HOSTS= ['*']
73
73
74
74
# Makeability Lab Global Variables, including Makeability Lab version
75
-
ML_WEBSITE_VERSION="2.12.0"# Keep this updated with each release and also change the short description below
76
-
ML_WEBSITE_VERSION_DESCRIPTION="Minor: site-wide SEO / social-sharing metadata overhaul (#1236, #1142, #1324). Centralized per-page Open Graph + Twitter Card tags with https URLs behind the TLS proxy (fixes #1236 via a site_scheme context processor), self-referential canonical links, distinct per-page meta descriptions, and schema.org JSON-LD (Organization on home, Person w/ sameAs on member pages, NewsArticle on news). Adds ORCID + Google Scholar fields to Person. IT follow-up #1329 (SECURE_PROXY_SSL_HEADER) would supersede the site_scheme workaround."
75
+
ML_WEBSITE_VERSION="2.12.1"# Keep this updated with each release and also change the short description below
76
+
ML_WEBSITE_VERSION_DESCRIPTION="Patch: tighten meta descriptions (#1142/#1324). Home now uses a concise description mirroring the hero blurb; projects without a one-line summary fall back to a truncated About instead of the generic lab boilerplate; the last-resort default is trimmed to ~135 chars. Reduces duplicate/over-long descriptions flagged by social/OG inspectors. Template/view-only — no schema change."
77
77
DATE_MAKEABILITYLAB_FORMED=datetime.date(2012, 1, 1) # Date Makeability Lab was formed
78
78
MAX_BANNERS=7# Maximum number of banners on a page
{% with meta_title=page_meta.title|default:"Makeability Lab" og_type=page_meta.og_type|default:"website" canonical_path=page_meta.canonical_path|default:request.path %}
82
-
{% firstof page_meta.description "The Makeability Lab is an advanced research lab in Human-Computer Interaction and AI directed by Professor Jon E. Froehlich at University of Washington's Allen School of Computer Science." as meta_description %}
82
+
{% firstof page_meta.description "The Makeability Lab is an advanced research lab in Human-AI directed by Prof. Jon E. Froehlich at UW's Allen School of Computer Science." as meta_description %}
0 commit comments