From 1e78df0ca11ff02531eca862de20ced1f78fffdb Mon Sep 17 00:00:00 2001 From: Lukas Wallrich Date: Fri, 20 Nov 2026 18:22:06 +0000 Subject: [PATCH 01/12] Teams and Steering Committee: area-grouped team directory and Doors portrait cards Group FORRT's 27 teams under its four Strategic Focus Areas with Doors area illustrations, counted underlined jump links, white icons on area-coloured discs (fixing the invisible white-on-mint icons) and a clear Slack joining panel. Collapse the introductory purposes paragraph behind a disclosure on phones so the four area choices, join action and first team sit on screen 1. Replace the legacy dark-gradient Steering Committee stylesheet with warm Doors portrait cards on pale panels (using area colours only on Strategic Focus Areas, Newsreader headings, sentence-case roles below photos, underlined clickable member names, a 2x2 Strategic Focus Areas grid on desktop and horizontal cards for single-member groups on phones) without editing the generated content/about/steering-committee/index.md. Co-Authored-By: Gemini 4 Neon --- assets/css/doors/article.css | 117 +++++++++++----- assets/css/doors/sections.css | 62 ++++++++- assets/js/doors/steering.js | 37 ++++- layouts/_default/single.html | 8 +- layouts/partials/widgets/featurette_team.html | 126 ++++++++++++++---- 5 files changed, 277 insertions(+), 73 deletions(-) diff --git a/assets/css/doors/article.css b/assets/css/doors/article.css index 1bbd554238e..131c1386cee 100644 --- a/assets/css/doors/article.css +++ b/assets/css/doors/article.css @@ -200,41 +200,92 @@ main:lang(ar) .article-layout .article-style,main:lang(ar) .article-layout .arti .profile-card .profile-role{font-weight:700} .profile-card a{color:var(--link);text-decoration:underline;text-underline-offset:3px} .profile-card ul.network-icon a{text-decoration:none} -.sc-page{padding:32px 0 40px} -.sc-page h1{font-size:clamp(36px,4.2vw,58px);line-height:1.06;margin:0 0 18px} +/* Steering Committee: warm Doors portrait cards on pale team panels, proper Newsreader headings and sentence-case + roles (no tracked capitals or dark photo overlays, DESIGN.md §1, §6, §7). */ +.sc-page{padding:32px 0 48px} +.sc-page h1{font-size:clamp(36px,4.2vw,58px);line-height:1.06;margin:0 0 10px} +.sc-page .standfirst{max-width:38em;margin:0 0 20px;font-size:19px;line-height:1.5;color:var(--soft)} .sc-page .crumbs{margin-bottom:18px} -.sc-page #sc-container{padding:0;font-family:var(--text);max-width:none} -/* A team's name heads its own row, so it cannot end one row with its people starting the next. */ -.sc-page .sc-grid .sc-title-card{flex:0 0 100%;grid-column:1/-1;width:100%;aspect-ratio:auto;padding:var(--box-pad-y) var(--box-pad);flex-direction:row;align-items:baseline;justify-content:flex-start;gap:10px} -.sc-page .sc-title-card :is(.sc-title-label,.sc-title-text){margin:0} -.sc-page .sc-title-card .sc-title-text{font-size:17px} -.sc-page .sc-title-card .sc-cbar{display:none} -/* "Team" before every team's name says nothing the band doesn't, so only screen readers hear it; on a - desktop each name has room for two lines, so the photos of neighbouring teams start level. */ +.sc-page #sc-container{padding:0;font-family:var(--text);max-width:none;color:var(--ink)} +.sc-page .sc-nav{display:flex;flex-wrap:wrap;gap:2px 22px;margin:0 0 32px;padding:0 0 12px;border-bottom:1px solid var(--line)} +.sc-page .sc-nav a{display:inline-flex;align-items:center;gap:5px;min-height:44px;padding:4px 0;background:none;border:0;border-radius:0;color:var(--link);font:600 16px/1.3 var(--text);text-decoration:underline;text-underline-offset:3px;text-decoration-thickness:1.5px} +.sc-page .sc-nav a:hover{color:var(--ink);text-decoration-thickness:2px} +.sc-page .sc-nav a:focus-visible{outline:3px solid var(--ink);outline-offset:2px} +.sc-page .sc-nav-count{color:var(--soft);font-weight:500} +.sc-page .sc-section{margin:0 0 48px;scroll-margin-top:24px} +.sc-page .sc-section:last-of-type{margin-bottom:0} +.sc-page .sc-section-header{margin:0 0 22px;padding-bottom:14px;border-bottom:1.5px solid var(--line)} +.sc-page .sc-section-title{margin:0 0 6px;font:var(--display-weight) clamp(28px,2.8vw,36px)/1.12 var(--display);color:var(--ink);text-transform:none;letter-spacing:0} +.sc-page .sc-section-desc{margin:0;max-width:46em;font-size:18px;line-height:1.5;color:var(--soft)} +.sc-page .sc-section-desc a{color:var(--link);text-decoration:underline;text-underline-offset:3px} +.sc-page .sc-grid{display:flex;flex-wrap:wrap;gap:20px;align-items:stretch} +@media(min-width:1001px){ + /* Four equal Strategic Focus Areas sit as a balanced 2x2 grid so row 1 does not leave 45% empty. */ + .sc-page .sc-section:first-of-type .sc-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))} + .sc-page .sc-section:first-of-type .sc-members{grid-template-columns:repeat(auto-fill,minmax(168px,196px))} + .sc-page .sc-section:not(:first-of-type) .sc-team{flex:1 1 auto} +} +/* Team panels: area pale ground for Strategic Focus Areas (DESIGN.md §6), calm surface for operational teams. + Uses --sc-accent rather than --team-color so the inline --team-color on generated .sc-title-card elements + cannot leak legacy rainbow hues into headings or borders. */ +.sc-page .sc-team{--sc-accent:var(--soft);--sc-head:var(--ink);--team-bg:var(--surface);display:flex;flex-direction:column;gap:14px;padding:18px 18px 20px;box-sizing:border-box;background:var(--team-bg);border-top:4px solid var(--sc-accent);border-radius:var(--r-large);max-width:100%} +.sc-page .sc-team[data-area=com]{--sc-accent:var(--com);--sc-head:var(--com);--team-bg:var(--com-bg)} +.sc-page .sc-team[data-area=jus]{--sc-accent:var(--jus);--sc-head:var(--jus);--team-bg:var(--jus-bg)} +.sc-page .sc-team[data-area=res]{--sc-accent:var(--res);--sc-head:var(--res);--team-bg:var(--res-bg)} +.sc-page .sc-team[data-area=edu]{--sc-accent:var(--edu);--sc-head:var(--edu);--team-bg:var(--edu-bg)} +.sc-page .sc-title-card{display:flex;align-items:baseline;gap:8px;padding:0;background:none!important;border:0} .sc-page .sc-title-card .sc-title-label{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap} -@media(min-width:761px){.sc-page :is(.sc-team,.sc-grid)>.sc-title-card{min-height:72px;align-items:center}} -/* Team bands: the four Strategic Focus Area teams in their own area colour, every other team in slate - (DESIGN.md §6: area colours only for areas). steering.js sets data-area from the team's name. */ -.sc-page :is(.sc-card,.sc-title-card){--team-color:var(--soft)!important} -.sc-page :is(.sc-team,.sc-grid):has(>[data-area=com]) .sc-card,.sc-page .sc-title-card[data-area=com]{--team-color:var(--com)!important} -.sc-page :is(.sc-team,.sc-grid):has(>[data-area=jus]) .sc-card,.sc-page .sc-title-card[data-area=jus]{--team-color:var(--jus)!important} -.sc-page :is(.sc-team,.sc-grid):has(>[data-area=res]) .sc-card,.sc-page .sc-title-card[data-area=res]{--team-color:var(--res)!important} -.sc-page :is(.sc-team,.sc-grid):has(>[data-area=edu]) .sc-card,.sc-page .sc-title-card[data-area=edu]{--team-color:var(--edu)!important} -.sc-page .sc-section-title{margin:0 0 4px} -/* 44 px targets (DESIGN.md §9). */ -.sc-page .sc-nav a{display:inline-flex;align-items:center;min-height:44px;padding:0} -.sc-close-btn,.sc-social-links a{min-width:44px;min-height:44px;display:inline-flex;align-items:center;justify-content:center} -.sc-team{display:contents} -/* On a phone the cards and team names share one grid: the box gap between them, and a team's name further - from the cards of the team before it than from its own. */ -.sc-page .sc-grid{gap:var(--box-gap)} -/* steering.js wraps each team in .sc-team, so its name card is then the first child of its own wrapper. */ -@media(max-width:760px){.sc-page .sc-grid>.sc-title-card:not(:first-child),.sc-page .sc-grid .sc-team:not(:first-child)>.sc-title-card{margin-top:var(--box-gap)}} -@media(min-width:761px){ - .sc-page .sc-grid{gap:28px 40px} - .sc-page .sc-team{display:flex;flex-wrap:wrap;align-content:flex-start;gap:1rem;width:calc(var(--sc-members)*190px + (var(--sc-members) - 1)*1rem);max-width:100%} - .sc-page .sc-grid .sc-card{width:190px} - .sc-page .sc-grid .sc-title-card{flex-wrap:wrap} +.sc-page .sc-title-card .sc-title-text{margin:0;font:var(--display-weight) 22px/1.2 var(--display);color:var(--sc-head)} +.sc-page .sc-title-card .sc-cbar,.sc-page .sc-card .sc-cbar,.sc-page .sc-card-overlay{display:none} +.sc-page .sc-members{display:grid;grid-template-columns:repeat(var(--sc-members,2),minmax(176px,196px));gap:14px} +.sc-page .sc-card{display:flex;flex-direction:column;overflow:hidden;background:#fff;border:1.5px solid color-mix(in srgb,var(--sc-accent) 24%,var(--line));border-radius:var(--r-small);cursor:pointer;transition:border-color .15s,transform .15s} +.sc-page .sc-card:hover,.sc-page .sc-card:focus-visible{border-color:var(--sc-accent);transform:translateY(-2px)} +.sc-page .sc-card:focus-visible{outline:3px solid var(--ink);outline-offset:2px} +.sc-page .sc-card-photo{position:relative;aspect-ratio:4/5;overflow:hidden;background:var(--surface)} +.sc-page .sc-card-img{display:block;width:100%;height:100%;object-fit:cover;object-position:center 20%;margin:0} +.sc-page .sc-card-content{display:flex;flex-direction:column;gap:2px;flex:1;padding:12px 13px 14px;background:#fff} +.sc-page .sc-card-name{margin:0;font:600 17px/1.25 var(--text);color:var(--ink);text-decoration:underline;text-decoration-color:color-mix(in srgb,var(--link) 62%,transparent);text-decoration-thickness:1.5px;text-underline-offset:3px} +.sc-page .sc-card:hover .sc-card-name,.sc-page .sc-card:focus-visible .sc-card-name{color:var(--link);text-decoration-color:var(--link);text-decoration-thickness:2px} +.sc-page .sc-card-role{margin:0;font:400 15px/1.35 var(--text);color:var(--soft);text-transform:none;letter-spacing:0} +@media(max-width:1000px){ + .sc-page .sc-team{width:100%} + .sc-page .sc-members{grid-template-columns:repeat(auto-fill,minmax(min(100%,168px),1fr))} +} +@media(max-width:760px){ + .sc-page{padding:20px 0 36px} + .sc-page .sc-nav{gap:0 16px;margin-bottom:20px;padding-bottom:8px} + .sc-page .sc-nav a{font-size:15px} + .sc-page .sc-team{padding:14px 14px 16px} + .sc-page .sc-members{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px} + /* Single-member panels on phones use a horizontal portrait card so half the panel is never empty. */ + .sc-page .sc-members:has(>.sc-card:only-child){grid-template-columns:1fr} + .sc-page .sc-card:only-child{flex-direction:row;align-items:center} + .sc-page .sc-card:only-child .sc-card-photo{width:112px;flex:none;aspect-ratio:4/5} + .sc-page .sc-card:only-child .sc-card-content{padding:12px 14px} + .sc-page .sc-card-content{padding:10px 11px 12px} + .sc-page .sc-card-name{font-size:16px} + .sc-page .sc-card-role{font-size:15px} +} +/* Profile dialog: Doors card modal replacing legacy steering-committee.css. */ +.sc-modal-backdrop{position:fixed;inset:0;z-index:1050;display:none;align-items:center;justify-content:center;padding:20px;background:rgba(38,45,53,.62)} +.sc-modal-backdrop.active{display:flex} +.sc-modal-content{position:relative;width:min(680px,100%);max-height:90vh;overflow-y:auto;padding:24px 28px 28px;background:var(--page);border-radius:var(--r-large);color:var(--ink);box-shadow:0 20px 48px rgba(0,0,0,.22)} +.sc-modal-header{display:flex;justify-content:flex-end;margin:-6px -8px 4px 0} +.sc-close-btn{min-width:44px;min-height:44px;display:inline-flex;align-items:center;justify-content:center;padding:0;background:transparent;border:1.5px solid var(--line);border-radius:50%;color:var(--ink);cursor:pointer} +.sc-close-btn:hover{background:var(--surface);border-color:var(--ink)} +.sc-modal-layout{display:grid;grid-template-columns:160px minmax(0,1fr);gap:24px;align-items:start} +.sc-modal-img{overflow:hidden;border-radius:var(--r-small);aspect-ratio:4/5;background:var(--surface)} +.sc-modal-img img{display:block;width:100%;height:100%;object-fit:cover;object-position:center 20%} +.sc-social-links{display:flex;flex-wrap:wrap;gap:6px;margin-top:12px} +.sc-social-links a{min-width:44px;min-height:44px;display:inline-flex;align-items:center;justify-content:center;border:1.5px solid var(--line);border-radius:50%;color:var(--link);background:#fff} +.sc-social-links a:hover{background:var(--link);border-color:var(--link);color:#fff} +.sc-modal-name{margin:0 0 4px;font:var(--display-weight) 28px/1.15 var(--display);color:var(--ink)} +.sc-modal-role{margin:0 0 14px;font:600 16px/1.35 var(--text);color:var(--soft)} +.sc-modal-bio{font-size:17px;line-height:1.58;color:var(--ink)} +@media(max-width:640px){ + .sc-modal-content{padding:18px 18px 22px} + .sc-modal-layout{grid-template-columns:1fr;gap:16px} + .sc-modal-img{width:140px} } .article-layout .post-nav-scope{font-size:16px;line-height:1.4;margin:0 0 12px} .article-layout .post-nav-scope a{text-decoration:underline} diff --git a/assets/css/doors/sections.css b/assets/css/doors/sections.css index 64b2c3a5789..7d5ca1e636e 100644 --- a/assets/css/doors/sections.css +++ b/assets/css/doors/sections.css @@ -14,13 +14,61 @@ .feature-rows img{width:96px;height:96px;object-fit:contain;padding:12px;background:var(--edu-bg);border-radius:50%} .article-layout .article-style .feature-rows h3{margin:0 0 4px;font-size:23px} .feature-rows p{margin:0 0 8px} -/* Team descriptions are list summaries: 17 px at every width (DESIGN.md §7); "more" follows the text directly. */ -.article-layout .article-style ul.team-rows>li{font-size:17px} -.article-layout .article-style .team-rows p.clamp-desc{margin-bottom:0} -.feature-rows-small .feature-icon{width:96px;font-size:40px;text-align:center;color:var(--link)} -/* Teams: picture, name, description, and a button to join. */ -.article-layout .article-style ul.team-rows{padding:0} -.team-rows .team-join{margin:10px 0 0} +/* Teams: grouped by FORRT's four Strategic Focus Areas, each with its area colour and legible white-on-colour icon disc. */ +.team-page{margin-top:4px} +.team-area-nav{display:flex;flex-wrap:wrap;gap:2px 22px;margin:0 0 22px;padding:0 0 12px;border-bottom:1px solid var(--line)} +.team-area-jump{display:inline-flex;align-items:center;gap:7px;min-height:44px;padding:4px 0;color:var(--link);font:600 16px/1.3 var(--text);text-decoration:none} +.team-area-label{text-decoration:underline;text-underline-offset:3px;text-decoration-thickness:1.5px} +.team-area-jump:hover{color:var(--ink)} +.team-area-jump:hover .team-area-label{text-decoration-thickness:2px} +.team-area-dot{width:10px;height:10px;border-radius:2px;background:var(--area,var(--soft));flex:none} +.team-area-count{color:var(--soft);font-weight:500} +:is(.team-area-jump,.team-area-group)[data-area=edu]{--area:var(--edu);--area-bg:var(--edu-bg)} +:is(.team-area-jump,.team-area-group)[data-area=res]{--area:var(--res);--area-bg:var(--res-bg)} +:is(.team-area-jump,.team-area-group)[data-area=jus]{--area:var(--jus);--area-bg:var(--jus-bg)} +:is(.team-area-jump,.team-area-group)[data-area=com]{--area:var(--com);--area-bg:var(--com-bg)} +.team-top{display:grid;grid-template-columns:minmax(0,1fr);gap:14px;margin:0 0 28px;align-items:start} +@media(min-width:1001px){.team-top{grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);gap:24px 48px}} +.team-about>summary{display:inline-flex;align-items:center;gap:8px;min-height:44px;color:var(--link);font:600 16px/1.3 var(--text);text-decoration:underline;text-underline-offset:3px;cursor:pointer} +@media(min-width:761px){.team-about>summary{display:none}} +.team-intro>:first-child{margin-top:0} +.team-intro>:last-child{margin-bottom:0} +.team-join-panel{padding:20px 22px;background:var(--surface);border-inline-start:4px solid var(--link);border-radius:var(--r-large)} +.article-layout .article-style .team-join-panel h2{margin:0 0 6px;font-size:22px;line-height:1.2} +.article-layout .article-style .team-join-panel p{margin:0 0 12px;font-size:17px;line-height:1.5} +.article-layout .article-style .team-join-panel .team-join-cta{display:flex;flex-wrap:wrap;align-items:center;gap:10px 18px;margin:0} +.team-join-panel .btn{display:inline-flex;align-items:center;min-height:44px;margin:0} +.team-more-link{display:inline-flex;align-items:center;min-height:44px;color:var(--link);font-weight:600;text-decoration:underline;text-underline-offset:3px} +.team-area-group{margin:0 0 40px;scroll-margin-top:20px} +.team-area-group:last-child{margin-bottom:0} +.team-area-head{display:grid;grid-template-columns:64px minmax(0,1fr);gap:14px 18px;align-items:center;margin:0 0 18px;padding-bottom:14px;border-bottom:2px solid var(--area)} +.team-area-plate{display:flex;align-items:flex-end;justify-content:center;width:64px;height:60px;padding:8px 6px 2px;box-sizing:border-box;background:var(--area-bg);border-radius:999px 999px 6px 6px} +.team-area-plate img{display:block;width:100%;height:100%;object-fit:contain;margin:0} +.article-layout .article-style .team-area-head h2{margin:0 0 2px;font-size:28px;line-height:1.15;color:var(--area)} +.article-layout .article-style .team-area-head p{margin:0;max-width:44em;font-size:17px;color:var(--soft)} +.article-layout .article-style ul.team-cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,340px),1fr));gap:16px;max-width:none;margin:0;padding:0;list-style:none} +.article-layout .article-style ul.team-cards>li.team-card{display:flex;flex-direction:column;max-width:none;margin:0;padding:18px 20px;background:var(--area-bg);border-radius:var(--r-large);font-size:17px;line-height:1.45} +.team-card-head{display:grid;grid-template-columns:46px minmax(0,1fr);gap:12px;align-items:center;margin:0 0 10px} +.team-icon{display:flex;align-items:center;justify-content:center;width:46px;height:46px;border-radius:50%;background:var(--area);flex:none} +.team-icon img{display:block;width:24px;height:24px;object-fit:contain;margin:0} +.article-layout .article-style .team-card h3{margin:0;font:var(--display-weight) 21px/1.2 var(--display);color:var(--ink)} +.article-layout .article-style .team-card p.clamp-desc{margin:0;font-size:17px;line-height:1.48} +.team-card .team-join{margin:auto 0 0;padding-top:14px} +.team-card .btn.dir-btn{min-height:44px;padding:8px 16px!important;background:#fff!important;border:1.5px solid var(--link)!important;border-radius:999px!important;color:var(--link)!important;font:600 15px/1.2 var(--text)!important} +.team-card .btn.dir-btn:hover{background:var(--link)!important;color:#fff!important} +@media(max-width:760px){ + .team-area-nav{gap:0 16px;margin:0 0 12px;padding-bottom:8px} + .team-area-jump{font-size:15px} + .team-top{gap:8px;margin:0 0 18px} + .team-join-panel{padding:12px 14px} + .article-layout .article-style .team-join-panel h2{margin:0 0 4px;font-size:18px} + .article-layout .article-style .team-join-panel>p:not(.team-join-cta){margin:0 0 8px;font-size:15px;line-height:1.4} + .team-join-panel .btn{padding:8px 16px!important;font-size:15px!important} + .team-area-head{grid-template-columns:52px minmax(0,1fr);gap:12px;margin-bottom:14px;padding-bottom:10px} + .team-area-plate{width:52px;height:48px;padding:6px 4px 2px} + .article-layout .article-style .team-area-head h2{font-size:24px} + .article-layout .article-style ul.team-cards>li.team-card{padding:16px} +} /* Directory buttons are small and quiet beside the card's text (DESIGN.md §3); an invisible margin around each makes a 44 px tap target (§9). */ .article-layout .article-style .dir-btn{position:relative;display:inline-flex;align-items:center;min-height:34px;padding:4px 14px!important;font-size:15px!important;line-height:1.3!important} diff --git a/assets/js/doors/steering.js b/assets/js/doors/steering.js index b7dcab244bd..3c6fc17cae8 100644 --- a/assets/js/doors/steering.js +++ b/assets/js/doors/steering.js @@ -1,6 +1,7 @@ /* The steering committee page is generated with click-only cards and always-present dialogs, so this - gives them what keyboards and screen readers need. scripts/generate_sc_profiles.py is the source. */ + gives them what keyboards, screen readers and the Doors layout need. scripts/generate_sc_profiles.py is the source. */ // Keep each team's name with its people, so that small teams can sit side by side. +// Sections without a team title card (such as Strategic Facilitation & Integration) group their cards together too. document.querySelectorAll('.sc-grid').forEach((grid) => { let team = null; [...grid.children].forEach((tile) => { @@ -8,21 +9,48 @@ document.querySelectorAll('.sc-grid').forEach((grid) => { team = document.createElement('div'); team.className = 'sc-team'; tile.before(team); + } else if (!team && tile.classList.contains('sc-card')) { + team = document.createElement('div'); + team.className = 'sc-team sc-team-plain'; + tile.before(team); } if (team) team.append(tile); }); grid.querySelectorAll('.sc-team').forEach((group) => { - group.style.setProperty('--sc-members', group.querySelectorAll('.sc-card').length); + const count = group.querySelectorAll('.sc-card').length; + group.style.setProperty('--sc-members', count); + // Group the member cards inside a clean inner grid so team headers span cleanly above them. + const members = document.createElement('div'); + members.className = 'sc-members'; + group.querySelectorAll(':scope > .sc-card').forEach((card) => members.append(card)); + group.append(members); }); }); // The four Strategic Focus Area teams are FORRT's four areas, so they, and only they, take the area -// colours (DESIGN.md §6); every other team is neutral. Matched by the team's name in the sheet. +// colours (DESIGN.md §6); every other team stays neutral. Matched by the team's name in the sheet. const areas = [[/communit/i, 'com'], [/justice|deia/i, 'jus'], [/research|meta-?science/i, 'res'], [/educat|pedagog/i, 'edu']]; document.querySelectorAll('#strategic .sc-title-card').forEach((card) => { const name = card.querySelector('.sc-title-text')?.textContent || ''; const area = areas.find(([pattern]) => pattern.test(name)); - if (area) card.dataset.area = area[1]; + if (area) { + card.dataset.area = area[1]; + const team = card.closest('.sc-team'); + if (team) team.dataset.area = area[1]; + } +}); + +// Add member counts to the section jump bar so visitors can see the shape of governance at a glance. +document.querySelectorAll('.sc-nav a[href^="#"]').forEach((link) => { + const section = document.querySelector(link.getAttribute('href')); + if (!section) return; + const count = section.querySelectorAll('.sc-card').length; + if (count) { + const badge = document.createElement('span'); + badge.className = 'sc-nav-count'; + badge.textContent = `(${count})`; + link.append(' ', badge); + } }); let trigger = null; @@ -63,7 +91,6 @@ document.querySelectorAll('.sc-card[onclick]').forEach((card) => { const observer = new MutationObserver(() => { const open = backdrops.find((backdrop) => backdrop.classList.contains('active')); if (open) { - // The dialog can't take focus until its fade-in has made it visible. if (!open.contains(document.activeElement)) setTimeout(() => open.querySelector('.sc-close-btn')?.focus(), 60); } else if (trigger) { trigger.focus(); diff --git a/layouts/_default/single.html b/layouts/_default/single.html index 7df1e4dff91..78104d00da7 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -3,16 +3,20 @@ something to put in it. */}} {{- define "main" -}} {{ if eq .Path "/about/steering-committee" }} -{{/* Generated with its own stylesheet, heading and Google Fonts link; scripts/generate_sc_profiles.py is the source. */}} +{{/* Generated with its own stylesheet, heading and Google Fonts link; scripts/generate_sc_profiles.py is the source. + Doors replaces the legacy stylesheet so portraits, roles, section headings and modals follow DESIGN.md. */}}
{{ partial "doors/crumbs" (dict "page" .) }}

{{ .Title }}

+

The directors, stewards and advisors guiding FORRT's four areas, operations and governance. Select any member to read their profile.

{{ $body := partial "doors/content" .Content }} {{ $body = replaceRE `` "" $body }} {{ $body = replaceRE `(?s)

.*?

` "" $body }} - {{/* Each section's title heads its part of the page, so the outline is sections, teams, people, with or without JavaScript. */}} + {{/* Each section's title heads its part of the page, without the small legacy icon, so Newsreader H2s lead cleanly. */}} + {{ $body = replaceRE `(?s)
\s*\s*(.*?)\s*
` `

$1

` $body }} {{ $body = replaceRE `(?s)
(.*?)
` `

$1

` $body }} {{ replaceRE `(` "${1}div>" $body | safeHTML }}
diff --git a/layouts/partials/widgets/featurette_team.html b/layouts/partials/widgets/featurette_team.html index 96be079326e..b5f46cbb023 100644 --- a/layouts/partials/widgets/featurette_team.html +++ b/layouts/partials/widgets/featurette_team.html @@ -1,30 +1,104 @@ -{{/* Teams: a short intro, then the teams A to Z, each with its picture, name, description and a button to join it. - The button says where it goes: a team's own Slack channel, or #forrt-community for teams without one; - screen readers also hear the team's name, so a list of the page's links still says which team each joins. */}} +{{/* Teams: grouped under FORRT's four Strategic Focus Areas, each with its area's Doors illustration and colour + (DESIGN.md §6). Each team card shows its icon clearly on a solid area-coloured disc (the team SVGs are white), + its name, full description and button to join its Slack channel or ask in #forrt-community. */}} {{ $page := .page }} -{{/* On a wide screen the introduction takes the first place in the grid of teams, so no empty band sits beside it. */}} -
-
{{ $page.Content }} -{{/* Team channels open only for members of FORRT's Slack, and signing in directly works only with some email - addresses, so the invitation comes first. */}} -

New to FORRT's Slack? Join with the invitation link first; the team buttons then open each team's channel.

-
-
    - {{ range sort $page.Params.featurealt "name" }} - {{ $team := .name | plainify }} -
  • - {{ if .img }}{{ $dims := partial "functions/static_img_dims" .img | default (safeHTMLAttr `width="96" height="96"`) }}{{ end }} -
    -

    {{ .name | markdownify | emojify }}

    - {{ with .description }}

    {{ . | markdownify | emojify }}

    {{ end }} - {{ with .buttonurl }} - {{/* A team without a channel of its own is reached through #forrt-community, not a bare workspace invite. */}} - {{ $url := . }}{{ $label := "Join the team" }} - {{ if in . "slack.com/archives/" }}{{ $label = "Join the team's Slack channel" }}{{ else if in . "join.slack.com" }}{{ $url = "https://forrt.slack.com/archives/CM6344P5E" }}{{ $label = "Ask about the team in #forrt-community" }}{{ end }} -

    {{ $label }}: {{ $team }}

    +{{ $areaMap := dict + "Team Ambassador Program" "edu" + "Team Curations" "edu" + "Team Curriculum" "edu" + "Team Feedback" "edu" + "Team Glossary" "edu" + "Team Glossary | Phase 2 | Translation" "edu" + "Team Lesson Plans" "edu" + "Team Lesson Plans | Phase 2 | Expansion" "edu" + "Team Pedagogies" "edu" + "Team Summaries" "edu" + "Team Impact" "res" + "Team JUST-OS" "res" + "Team Landscape" "res" + "Team Manuscript" "res" + "Team Replication Hub" "res" + "Team Reversals and Replication" "res" + "Team Citation Politics" "jus" + "Team Ethics" "jus" + "Team Neurodiversity" "jus" + "Team Open Science in Developing Countries" "jus" + "Team Wheel of Privilege" "jus" + "Team Cohesion" "com" + "Team Credit" "com" + "Team Ideas" "com" + "Team Mapping Open Science Communities" "com" + "Team Outreach and Impact" "com" + "Team Website" "com" +}} +{{ $groups := slice + (dict "key" "edu" "title" "Education & Pedagogy" "img" "images/doors/area-education.webp" "blurb" "Teaching materials, glossary definitions, lesson plans, summaries and curricula.") + (dict "key" "res" "title" "Meta-Science & Research" "img" "images/doors/area-research.webp" "blurb" "Replications, reversals, literature mapping, impact synthesis and open-research tools.") + (dict "key" "jus" "title" "Social Justice & DEIA" "img" "images/doors/area-justice.webp" "blurb" "Equity, neurodiversity, citational justice, ethics and global inclusion in open scholarship.") + (dict "key" "com" "title" "Community & Sustainability" "img" "images/doors/area-community.webp" "blurb" "Cohesion, contributor credit, outreach, new ideas and FORRT's web infrastructure.") +}} +{{ $buckets := newScratch }} +{{ range sort $page.Params.featurealt "name" }} + {{ $key := index $areaMap (.name | plainify | strings.TrimSpace) | default "com" }} + {{ $buckets.Add $key (slice .) }} +{{ end }} + +
    +
    -
  • + {{ end }} + + +
    +
    + About FORRT teams +
    {{ $page.Content }}
    +
    + +
    + + + {{ range $groups }} + {{ $items := $buckets.Get .key | default slice }} + {{ if gt (len $items) 0 }} + {{ $plate := resources.Get .img }} +
    +
    + {{ with $plate }}{{ $w := .Resize "160x webp q80" }}{{ end }} +
    +

    {{ .title }}

    +

    {{ .blurb }}

    +
    +
    +
      + {{ range $items }} + {{ $team := .name | plainify }} +
    • +
      + {{ if .img }}{{ end }} +

      {{ .name | markdownify | emojify }}

      +
      + {{ with .description }}

      {{ . | markdownify | emojify }}

      {{ end }} + {{ with .buttonurl }} + {{ $url := . }}{{ $label := "Join the team" }} + {{ if in . "slack.com/archives/" }}{{ $label = "Join the team's Slack channel" }}{{ else if in . "join.slack.com" }}{{ $url = "https://forrt.slack.com/archives/CM6344P5E" }}{{ $label = "Ask in #forrt-community" }}{{ end }} +

      {{ $label }}: {{ $team }} (opens in a new tab)

      + {{ end }} +
    • + {{ end }} +
    +
    + {{ end }} {{ end }} -
From ca9f9075ccd82f5b6c3a763034f144454636ec1d Mon Sep 17 00:00:00 2001 From: Lukas Wallrich Date: Fri, 20 Nov 2026 18:31:13 +0000 Subject: [PATCH 02/12] Address review feedback on Teams and Steering Committee - Sync .team-about disclosure on viewport resize/orientation changes via matchMedia change listener. - Prevent 5-member Steering Committee panel overflow near 1001px using responsive minmax floors, and fit 3-member Strategic Focus Areas cleanly. - Align Team JUST-OS to Education & Pedagogy, warn and route any unmapped team to a neutral Other teams section, and fall back to #forrt-community when a team has no buttonurl (Team Manuscript). - Raise specificity of .team-card .btn.dir-btn so button rules apply. Co-Authored-By: Gemini 4 Neon --- assets/css/doors/article.css | 4 ++-- assets/css/doors/sections.css | 6 ++++-- layouts/partials/widgets/featurette_team.html | 20 ++++++++++++------- 3 files changed, 19 insertions(+), 11 deletions(-) diff --git a/assets/css/doors/article.css b/assets/css/doors/article.css index 131c1386cee..a6d509e2840 100644 --- a/assets/css/doors/article.css +++ b/assets/css/doors/article.css @@ -222,7 +222,7 @@ main:lang(ar) .article-layout .article-style,main:lang(ar) .article-layout .arti @media(min-width:1001px){ /* Four equal Strategic Focus Areas sit as a balanced 2x2 grid so row 1 does not leave 45% empty. */ .sc-page .sc-section:first-of-type .sc-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))} - .sc-page .sc-section:first-of-type .sc-members{grid-template-columns:repeat(auto-fill,minmax(168px,196px))} + .sc-page .sc-section:first-of-type .sc-members{grid-template-columns:repeat(auto-fit,minmax(min(100%,156px),196px))} .sc-page .sc-section:not(:first-of-type) .sc-team{flex:1 1 auto} } /* Team panels: area pale ground for Strategic Focus Areas (DESIGN.md §6), calm surface for operational teams. @@ -237,7 +237,7 @@ main:lang(ar) .article-layout .article-style,main:lang(ar) .article-layout .arti .sc-page .sc-title-card .sc-title-label{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap} .sc-page .sc-title-card .sc-title-text{margin:0;font:var(--display-weight) 22px/1.2 var(--display);color:var(--sc-head)} .sc-page .sc-title-card .sc-cbar,.sc-page .sc-card .sc-cbar,.sc-page .sc-card-overlay{display:none} -.sc-page .sc-members{display:grid;grid-template-columns:repeat(var(--sc-members,2),minmax(176px,196px));gap:14px} +.sc-page .sc-members{display:grid;grid-template-columns:repeat(var(--sc-members,2),minmax(min(100%,144px),196px));gap:14px} .sc-page .sc-card{display:flex;flex-direction:column;overflow:hidden;background:#fff;border:1.5px solid color-mix(in srgb,var(--sc-accent) 24%,var(--line));border-radius:var(--r-small);cursor:pointer;transition:border-color .15s,transform .15s} .sc-page .sc-card:hover,.sc-page .sc-card:focus-visible{border-color:var(--sc-accent);transform:translateY(-2px)} .sc-page .sc-card:focus-visible{outline:3px solid var(--ink);outline-offset:2px} diff --git a/assets/css/doors/sections.css b/assets/css/doors/sections.css index 7d5ca1e636e..07f9f63f207 100644 --- a/assets/css/doors/sections.css +++ b/assets/css/doors/sections.css @@ -27,6 +27,7 @@ :is(.team-area-jump,.team-area-group)[data-area=res]{--area:var(--res);--area-bg:var(--res-bg)} :is(.team-area-jump,.team-area-group)[data-area=jus]{--area:var(--jus);--area-bg:var(--jus-bg)} :is(.team-area-jump,.team-area-group)[data-area=com]{--area:var(--com);--area-bg:var(--com-bg)} +:is(.team-area-jump,.team-area-group)[data-area=other]{--area:var(--ink);--area-bg:var(--surface)} .team-top{display:grid;grid-template-columns:minmax(0,1fr);gap:14px;margin:0 0 28px;align-items:start} @media(min-width:1001px){.team-top{grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);gap:24px 48px}} .team-about>summary{display:inline-flex;align-items:center;gap:8px;min-height:44px;color:var(--link);font:600 16px/1.3 var(--text);text-decoration:underline;text-underline-offset:3px;cursor:pointer} @@ -42,6 +43,7 @@ .team-area-group{margin:0 0 40px;scroll-margin-top:20px} .team-area-group:last-child{margin-bottom:0} .team-area-head{display:grid;grid-template-columns:64px minmax(0,1fr);gap:14px 18px;align-items:center;margin:0 0 18px;padding-bottom:14px;border-bottom:2px solid var(--area)} +.team-area-head:not(:has(.team-area-plate)){grid-template-columns:minmax(0,1fr)} .team-area-plate{display:flex;align-items:flex-end;justify-content:center;width:64px;height:60px;padding:8px 6px 2px;box-sizing:border-box;background:var(--area-bg);border-radius:999px 999px 6px 6px} .team-area-plate img{display:block;width:100%;height:100%;object-fit:contain;margin:0} .article-layout .article-style .team-area-head h2{margin:0 0 2px;font-size:28px;line-height:1.15;color:var(--area)} @@ -54,8 +56,8 @@ .article-layout .article-style .team-card h3{margin:0;font:var(--display-weight) 21px/1.2 var(--display);color:var(--ink)} .article-layout .article-style .team-card p.clamp-desc{margin:0;font-size:17px;line-height:1.48} .team-card .team-join{margin:auto 0 0;padding-top:14px} -.team-card .btn.dir-btn{min-height:44px;padding:8px 16px!important;background:#fff!important;border:1.5px solid var(--link)!important;border-radius:999px!important;color:var(--link)!important;font:600 15px/1.2 var(--text)!important} -.team-card .btn.dir-btn:hover{background:var(--link)!important;color:#fff!important} +.article-layout .article-style .team-card .btn.dir-btn{min-height:44px;padding:8px 16px!important;background:#fff!important;border:1.5px solid var(--link)!important;border-radius:999px!important;color:var(--link)!important;font:600 15px/1.2 var(--text)!important} +.article-layout .article-style .team-card .btn.dir-btn:hover{background:var(--link)!important;color:#fff!important} @media(max-width:760px){ .team-area-nav{gap:0 16px;margin:0 0 12px;padding-bottom:8px} .team-area-jump{font-size:15px} diff --git a/layouts/partials/widgets/featurette_team.html b/layouts/partials/widgets/featurette_team.html index b5f46cbb023..43de4cd7ee8 100644 --- a/layouts/partials/widgets/featurette_team.html +++ b/layouts/partials/widgets/featurette_team.html @@ -13,8 +13,8 @@ "Team Lesson Plans | Phase 2 | Expansion" "edu" "Team Pedagogies" "edu" "Team Summaries" "edu" + "Team JUST-OS" "edu" "Team Impact" "res" - "Team JUST-OS" "res" "Team Landscape" "res" "Team Manuscript" "res" "Team Replication Hub" "res" @@ -36,10 +36,16 @@ (dict "key" "res" "title" "Meta-Science & Research" "img" "images/doors/area-research.webp" "blurb" "Replications, reversals, literature mapping, impact synthesis and open-research tools.") (dict "key" "jus" "title" "Social Justice & DEIA" "img" "images/doors/area-justice.webp" "blurb" "Equity, neurodiversity, citational justice, ethics and global inclusion in open scholarship.") (dict "key" "com" "title" "Community & Sustainability" "img" "images/doors/area-community.webp" "blurb" "Cohesion, contributor credit, outreach, new ideas and FORRT's web infrastructure.") + (dict "key" "other" "title" "Other teams" "img" "" "blurb" "Cross-cutting and newly added FORRT teams.") }} {{ $buckets := newScratch }} {{ range sort $page.Params.featurealt "name" }} - {{ $key := index $areaMap (.name | plainify | strings.TrimSpace) | default "com" }} + {{ $teamName := .name | plainify | strings.TrimSpace }} + {{ $key := index $areaMap $teamName }} + {{ if not $key }} + {{ warnf "featurette_team: unmapped team %q — add it to $areaMap in layouts/partials/widgets/featurette_team.html" $teamName }} + {{ $key = "other" }} + {{ end }} {{ $buckets.Add $key (slice .) }} {{ end }} @@ -67,12 +73,12 @@

How to join a team

- + {{ range $groups }} {{ $items := $buckets.Get .key | default slice }} {{ if gt (len $items) 0 }} - {{ $plate := resources.Get .img }} + {{ $plate := "" }}{{ with .img }}{{ $plate = resources.Get . }}{{ end }}
{{ with $plate }}{{ $w := .Resize "160x webp q80" }}{{ end }} @@ -90,11 +96,11 @@

{{ .title }}

{{ .name | markdownify | emojify }}

{{ with .description }}

{{ . | markdownify | emojify }}

{{ end }} + {{ $url := "https://forrt.slack.com/archives/CM6344P5E" }}{{ $label := "Ask in #forrt-community" }} {{ with .buttonurl }} - {{ $url := . }}{{ $label := "Join the team" }} - {{ if in . "slack.com/archives/" }}{{ $label = "Join the team's Slack channel" }}{{ else if in . "join.slack.com" }}{{ $url = "https://forrt.slack.com/archives/CM6344P5E" }}{{ $label = "Ask in #forrt-community" }}{{ end }} -

{{ $label }}: {{ $team }} (opens in a new tab)

+ {{ if in . "slack.com/archives/" }}{{ $url = . }}{{ $label = "Join the team's Slack channel" }}{{ else if not (in . "join.slack.com") }}{{ $url = . }}{{ $label = "Join the team" }}{{ end }} {{ end }} +

{{ $label }}: {{ $team }} (opens in a new tab)

{{ end }} From a6ad04f9aff73f69083432a4db24e0a95383ff72 Mon Sep 17 00:00:00 2001 From: Lukas Wallrich Date: Fri, 20 Nov 2026 18:46:16 +0000 Subject: [PATCH 03/12] Keep team-layout wrapper class and narrow section blurbs under 80 chars - Add team-layout class on the Teams outer container (and remove obsolete legacy .team-layout grid rules) so Designed screens directory-width check measures the full-width wrapper. - Narrow .team-area-head p to 34em and .sc-section-desc to 36em so every line stays under 80 characters at 1024 and 1440 px. Co-Authored-By: Gemini 4 Neon --- assets/css/doors/article.css | 2 +- assets/css/doors/sections.css | 4 +--- layouts/partials/widgets/featurette_team.html | 2 +- 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/assets/css/doors/article.css b/assets/css/doors/article.css index a6d509e2840..7aa04828f79 100644 --- a/assets/css/doors/article.css +++ b/assets/css/doors/article.css @@ -216,7 +216,7 @@ main:lang(ar) .article-layout .article-style,main:lang(ar) .article-layout .arti .sc-page .sc-section:last-of-type{margin-bottom:0} .sc-page .sc-section-header{margin:0 0 22px;padding-bottom:14px;border-bottom:1.5px solid var(--line)} .sc-page .sc-section-title{margin:0 0 6px;font:var(--display-weight) clamp(28px,2.8vw,36px)/1.12 var(--display);color:var(--ink);text-transform:none;letter-spacing:0} -.sc-page .sc-section-desc{margin:0;max-width:46em;font-size:18px;line-height:1.5;color:var(--soft)} +.sc-page .sc-section-desc{margin:0;max-width:36em;font-size:18px;line-height:1.5;color:var(--soft)} .sc-page .sc-section-desc a{color:var(--link);text-decoration:underline;text-underline-offset:3px} .sc-page .sc-grid{display:flex;flex-wrap:wrap;gap:20px;align-items:stretch} @media(min-width:1001px){ diff --git a/assets/css/doors/sections.css b/assets/css/doors/sections.css index 07f9f63f207..50a63c08f3e 100644 --- a/assets/css/doors/sections.css +++ b/assets/css/doors/sections.css @@ -47,7 +47,7 @@ .team-area-plate{display:flex;align-items:flex-end;justify-content:center;width:64px;height:60px;padding:8px 6px 2px;box-sizing:border-box;background:var(--area-bg);border-radius:999px 999px 6px 6px} .team-area-plate img{display:block;width:100%;height:100%;object-fit:contain;margin:0} .article-layout .article-style .team-area-head h2{margin:0 0 2px;font-size:28px;line-height:1.15;color:var(--area)} -.article-layout .article-style .team-area-head p{margin:0;max-width:44em;font-size:17px;color:var(--soft)} +.article-layout .article-style .team-area-head p{margin:0;max-width:34em;font-size:17px;color:var(--soft)} .article-layout .article-style ul.team-cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,340px),1fr));gap:16px;max-width:none;margin:0;padding:0;list-style:none} .article-layout .article-style ul.team-cards>li.team-card{display:flex;flex-direction:column;max-width:none;margin:0;padding:18px 20px;background:var(--area-bg);border-radius:var(--r-large);font-size:17px;line-height:1.45} .team-card-head{display:grid;grid-template-columns:46px minmax(0,1fr);gap:12px;align-items:center;margin:0 0 10px} @@ -458,8 +458,6 @@ html:has(.contributor-az){scroll-padding-top:calc(var(--contributor-az,72px) + 1 .article-layout .article-style .people-layout .people-wall{display:block;margin:0} .article-layout .article-style .people-layout .people-wall li{display:inline-block;width:200px;margin:0 16px 18px 0;vertical-align:top} .article-layout .article-style .people-layout .people-wall li[hidden]{display:none} - .article-layout-wide .article-style .team-layout{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,420px),1fr));gap:28px 40px;margin:24px 0} - .article-layout-wide .article-style .team-layout>.feature-rows{display:contents} .team-intro>:first-child{margin-top:0} .team-intro>:last-child{margin-bottom:0} } diff --git a/layouts/partials/widgets/featurette_team.html b/layouts/partials/widgets/featurette_team.html index 43de4cd7ee8..111553db6c1 100644 --- a/layouts/partials/widgets/featurette_team.html +++ b/layouts/partials/widgets/featurette_team.html @@ -49,7 +49,7 @@ {{ $buckets.Add $key (slice .) }} {{ end }} -
+
{{ with $page.Params.bio }}

{{ . | markdownify | emojify }}

{{ end }} - {{ partial "doors/content" $page.Content }} + {{ partial "content" $page.Content }} {{/* Interests, dropping the Wowchemy template placeholders ("Interest 1"). */}} {{ $interests := slice }} @@ -87,10 +87,10 @@

{{ i18n "user_profile_latest" | default "Latest" }}

- {{ partial "doors/crumbs" (dict "page" $page) }} + {{ partial "crumbs" (dict "page" $page) }}

{{ $page.Title | default "Authors" }}

- {{ with $page.Content }}
{{ partial "doors/content" . }}
{{ end }} + {{ with $page.Content }}
{{ partial "content" . }}
{{ end }}
    {{ range $page.Pages.ByParam "name" }} {{ if partial "authors/is-substantive.html" . }} diff --git a/layouts/citation_politics/list.html b/layouts/citation_politics/list.html index 62f0ac53bc2..9d8e5f2ad48 100644 --- a/layouts/citation_politics/list.html +++ b/layouts/citation_politics/list.html @@ -1,5 +1,5 @@ {{- define "main" -}} {{/* Its numbered list pages stay at their addresses, though this layout does not list them. */}} {{ $_ := .Paginate .Data.Pages }} -{{ partial "doors/reading" . }} +{{ partial "reading" . }} {{- end -}} diff --git a/layouts/citation_politics/single.html b/layouts/citation_politics/single.html index 2b2aac2f545..20cdf1649e3 100644 --- a/layouts/citation_politics/single.html +++ b/layouts/citation_politics/single.html @@ -1,3 +1,3 @@ {{- define "main" -}} -{{ partial "doors/reading" . }} +{{ partial "reading" . }} {{- end -}} diff --git a/layouts/clusters/single.html b/layouts/clusters/single.html index 20f49d67def..0ce61645227 100644 --- a/layouts/clusters/single.html +++ b/layouts/clusters/single.html @@ -3,7 +3,7 @@ {{ partial "clusters/seo_jsonld.html" . }}
    - {{ partial "doors/crumbs" (dict "page" .) }} + {{ partial "crumbs" (dict "page" .) }}

    {{ .Params.heading_title | default .Title }}

    {{ with .Params.subtitle }}

    {{ . | markdownify }}

    {{ end }}
    diff --git a/layouts/community-map/single.html b/layouts/community-map/single.html index d637cfbf531..8eeb55537df 100644 --- a/layouts/community-map/single.html +++ b/layouts/community-map/single.html @@ -1,7 +1,7 @@ {{- define "main" -}} {{/* The community map: title, view switch ("Contributors by affiliation" default, "Slack members by time zone" secondary — matching /about/visitors/'s tab switch), summary figures, the SVG world map beside ranked locations - (doors/community_map.html), then the page's text and methodology beside a panel for taking part. + (community_map.html), then the page's text and methodology beside a panel for taking part. Content: content/community-map/index.md. Data: @@ -11,15 +11,15 @@ - Slack view: assets/data/community_map_slack.csv, the Slack time-zone snapshot from forrtproject/map-community with corrected coordinates for Athens, Santiago, and St Johns; sits in assets/ so data-processing.yml's data/ overlay never overwrites it. */}} -{{ $data := partialCached "doors/community_map_data.html" "community_map" }} -{{ $slack := partialCached "doors/community_map_slack_data.html" "community_map_slack" }} +{{ $data := partialCached "community_map_data.html" "community_map" }} +{{ $slack := partialCached "community_map_slack_data.html" "community_map_slack" }} {{ $slackSnapshot := .Params.slack_snapshot | default "September 2026" }} {{ $contributorsURL := relref . "/contributors" }} {{ $getInvolvedURL := relref . "/about/get-involved" }}
    - {{ partial "doors/crumbs" (dict "page" .) }} + {{ partial "crumbs" (dict "page" .) }}

    {{ .Title }}

    Where FORRT's community is based, by contributor affiliation or Slack time zone.

    @@ -58,7 +58,7 @@

    Contributors by affiliation

    {{ end }} {{ end }} - {{ partial "doors/community_map" (dict "page" . "dataset" "contributors" "level" 3) }} + {{ partial "community_map" (dict "page" . "dataset" "contributors" "level" 3) }}
@@ -87,12 +87,12 @@

Slack members by time zone

{{ end }} - {{ partial "doors/community_map" (dict "page" . "dataset" "slack" "level" 3 "omit_js" true) }} + {{ partial "community_map" (dict "page" . "dataset" "slack" "level" 3 "omit_js" true) }}
- {{ partial "doors/content" .Content }} + {{ partial "content" .Content }}

How this map is built

The default view places {{ lang.FormatNumberCustom 0 $data.mapped }} of FORRT's {{ lang.FormatNumberCustom 0 $data.total }} credited contributors ({{ $data.coverage_pct }}%) across {{ len $data.cities }} cities in {{ $data.countries }} countries and regions. It gathers ORCID iDs from FORRT's project contribution sheets, steering committee records and website author profiles ({{ lang.FormatNumberCustom 0 $data.with_orcid }} contributors have a recorded ORCID iD, of whom {{ $data.orcid_coverage_pct }}% resolve to a city).

Each contributor is placed once, preferring their current public employment or education on ORCID ({{ lang.FormatNumberCustom 0 (index $data.sources "orcid_current" | default 0) }}), then their most recent institutional affiliation in OpenAlex ({{ lang.FormatNumberCustom 0 (index $data.sources "openalex" | default 0) }}) or most recent past ORCID affiliation ({{ lang.FormatNumberCustom 0 (index $data.sources "orcid_past" | default 0) }}), geocoded through ROR and GeoNames. diff --git a/layouts/contributors_analysis/single.html b/layouts/contributors_analysis/single.html index b43e0a3f7f0..25df9e1efed 100644 --- a/layouts/contributors_analysis/single.html +++ b/layouts/contributors_analysis/single.html @@ -6,12 +6,12 @@ {{- with findRESubmatch `` .RawContent 1 -}} {{- $data = index . 0 1 | transform.Unmarshal -}} {{- end -}} -{{- $network := partial "doors/analysis/network_data.html" . -}} +{{- $network := partial "analysis/network_data.html" . -}} {{- $contributors := relref . "/contributors" -}} {{- $join := relref . "/about/get-involved" -}}

- {{ partial "doors/crumbs" (dict "page" .) }} + {{ partial "crumbs" (dict "page" .) }}

{{ .Title }}

How many people contribute to FORRT, where they work and what they do, and how shared projects connect them.

@@ -52,10 +52,10 @@

Where the most people work

{{ $top.name }} has the most contributors, with {{ $top.n }}. The mean across all {{ $data.projects }} projects and teams is {{ $data.mean_contributors }}.

- {{ partial "doors/analysis/bars.html" (dict "rows" (first 10 $data.per_project) "max" $top.n) }} + {{ partial "analysis/bars.html" (dict "rows" (first 10 $data.per_project) "max" $top.n) }}
All {{ $data.projects }} projects and teams - {{ partial "doors/analysis/bars.html" (dict "rows" (after 10 $data.per_project) "max" $top.n) }} + {{ partial "analysis/bars.html" (dict "rows" (after 10 $data.per_project) "max" $top.n) }}
@@ -66,15 +66,15 @@

What contributors do

{{ $topRole.name }} is the most common role, with {{ $topRole.n }} entries. One person can hold several roles, on one project or across many, so these add up to more than the number of contributors.

- {{ partial "doors/analysis/bars.html" (dict "rows" $data.roles "max" $topRole.n) }} + {{ partial "analysis/bars.html" (dict "rows" $data.roles "max" $topRole.n) }}
{{ else }} -
{{ partial "doors/content" .Content }}
+
{{ partial "content" .Content }}
{{ end }} {{ if $network.people }} - {{ partial "doors/analysis/network.html" (dict "network" $network "counts" $data) }} + {{ partial "analysis/network.html" (dict "network" $network "counts" $data) }} {{ else }} {{ warnf "contributor-analysis: no network data in static/partials/network-graph.html" }} {{ end }} diff --git a/layouts/curated_resources/single.html b/layouts/curated_resources/single.html index e9278753246..3d6a76af067 100644 --- a/layouts/curated_resources/single.html +++ b/layouts/curated_resources/single.html @@ -26,7 +26,7 @@ {{ range $c := site.Data.clusters_v4.clusters }} {{ with site.GetPage (printf "/clusters/cluster-%d" (int $c.number)) }}{{ $clusterPages = merge $clusterPages (dict (lower $c.name) .RelPermalink) }}{{ end }} {{ end }} -{{ $url := partial "doors/resource_url" . }} +{{ $url := partial "resource_url" . }} {{/* Where the button goes: the link's host without "www.", and doi.org for any DOI resolver. */}} {{ $host := "" }} {{ with $url }} @@ -38,8 +38,8 @@ with the button, which takes the pale colour and door icon of the first cluster that has one; Previous and Next follow that cluster. With none, the panel stays neutral. */}} {{ $clusterItems := slice }}{{ $lead := 0 }} -{{ with index (partialCached "doors/resource_index" (site.GetPage "/resources") "resources").items .RelPermalink }}{{ with .clusters }} - {{ $num := partialCached "doors/cluster_numbers.html" "n" }} +{{ with index (partialCached "resource_index" (site.GetPage "/resources") "resources").items .RelPermalink }}{{ with .clusters }} + {{ $num := partialCached "cluster_numbers.html" "n" }} {{ range $name := . }} {{ $n := index $num (lower $name | urlize) }}{{ $mark := "" }} {{ with $n }}{{ $mark = printf `` . }}{{ if not $lead }}{{ $lead = . }}{{ end }}{{ end }} @@ -107,13 +107,13 @@ {{ $abstract = replaceRE `([^\s])\n(\p{Lu}|\p{Ll}[\p{L}\- ]{0,30}:\s)` "$1 \n$2" $abstract }}

{{ i18n "abstract" }}

{{ $.RenderString (dict "display" "block") $abstract }} {{ end }} - {{ partial "doors/content" .Content }} + {{ partial "content" .Content }}
- {{ partial "doors/resource_keywords" . }} + {{ partial "resource_keywords" . }} {{/* Previous and Next stay within the resource's first cluster, A to Z as in the directory. On a desktop they are the side card, beside the entry, the way a glossary term has its list of terms; on a phone they follow it. */}} - {{ if site.Params.section_pager }}{{ with index (partialCached "doors/resource_neighbours" (site.GetPage "/resources") "resources") .RelPermalink }}{{ if or .prev .next }} + {{ if site.Params.section_pager }}{{ with index (partialCached "resource_neighbours" (site.GetPage "/resources") "resources") .RelPermalink }}{{ if or .prev .next }} {{ $cluster := .cluster }}