diff --git a/.codespell-ignore.txt b/.codespell-ignore.txt index b32b37e3494..1d97dcedd1f 100644 --- a/.codespell-ignore.txt +++ b/.codespell-ignore.txt @@ -110,8 +110,10 @@ sie tru ublication doubleclick +pre-selected # German glossary label Referenz -pre-selected + +# Key of the Social Justice area jus diff --git a/.github/workflows/check_content_rules.yaml b/.github/workflows/check_content_rules.yaml index a4121a332b1..2bb6c3e8a9f 100644 --- a/.github/workflows/check_content_rules.yaml +++ b/.github/workflows/check_content_rules.yaml @@ -26,6 +26,7 @@ jobs: uses: actions/checkout@v6 with: fetch-depth: 0 + persist-credentials: false # The next step runs the PR's own script. - name: Set up Python uses: actions/setup-python@v6 diff --git a/.lychee.toml b/.lychee.toml index 0c9bed2f00a..bf1d977decd 100644 --- a/.lychee.toml +++ b/.lychee.toml @@ -18,10 +18,10 @@ exclude = [ "127\\.0\\.0\\.1", # Social media sites that block automated requests - "://(?:[^/]*\\.)?facebook\\.com(?:/|$)", + "://(?:[^/?#]*\\.)?facebook\\.com(?:[/?#]|$)", "linkedin\\.com", "twitter\\.com", - "://(?:[^/]*\\.)?x\\.com(?:/|$)", + "://(?:[^/?#]*\\.)?x\\.com(?:[/?#]|$)", # Slack workspace & invite links — always return 403 to unauthenticated # automated HTTP requests (verified separately; cannot be checked in CI) diff --git a/assets/css/cite_us.css b/assets/css/cite_us.css index ba9c2d52fb5..9da81e7e41a 100644 --- a/assets/css/cite_us.css +++ b/assets/css/cite_us.css @@ -1,6 +1,6 @@ /* The citation boxes on /about/cite-us/. */ .cite-us-section{margin:0 0 28px} -.cite-us-item{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:start;margin:0 0 12px;padding:14px 16px;background:var(--surface);border-radius:var(--r-small)} +.cite-us-item{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:start;margin:0 0 12px;padding:var(--box-pad);background:var(--surface);border-radius:var(--r-small)} .cite-us-text{font-size:16px;line-height:1.5;color:var(--ink);overflow-wrap:anywhere} .article-layout .article-style .cite-us-section .section-title{margin:0 0 10px;font-size:21px} .copy-button{display:inline-flex;align-items:center;gap:6px;padding:5px 11px;background:#fff;border:1.5px solid var(--ink);border-radius:999px;color:var(--ink);font:600 15px/1.3 var(--text);cursor:pointer} diff --git a/assets/css/gform.css b/assets/css/gform.css index a1bf40a99ec..12a68fba592 100644 --- a/assets/css/gform.css +++ b/assets/css/gform.css @@ -25,7 +25,7 @@ form.gform.gform .gform-submit:disabled{background:var(--soft);cursor:progress} form.gform.gform p.gform-note{max-width:none;margin:10px 0 0;color:var(--soft);font-size:15px;line-height:1.4} form.gform.gform .gform-note a{color:inherit;text-decoration:underline} form.gform.gform p.gform-status{max-width:none;margin:12px 0 0;font-size:16px;font-weight:600;line-height:1.5} -form.gform.gform p.gform-status:empty{display:none} +form.gform.gform p.gform-status:empty{margin:0} form.gform.gform p.gform-status.is-error{color:var(--urgent)} .gform-body[hidden]+.gform-status{margin-top:0!important} .gform-status:focus:not(:focus-visible){outline:none} diff --git a/assets/data/community_map_slack.csv b/assets/data/community_map_slack.csv index 42782f4db84..940b683b956 100644 --- a/assets/data/community_map_slack.csv +++ b/assets/data/community_map_slack.csv @@ -32,7 +32,7 @@ Hobart,1,-42.8825088,147.3281233 Istanbul,27,41.006381,28.9758715 Jerusalem,3,31.7788472,35.2257856 Karachi,5,24.8546842,67.0207055 -Katmandu,1,27.708317,85.3205817 +Kathmandu,1,27.708317,85.3205817 Kolkata,62,22.5726459,88.3638953 Kuala Lumpur,10,3.1516964,101.6942371 Kuwait,63,29.2733964,47.4979476 diff --git a/assets/js/motion.js b/assets/js/motion.js index 7fe020bf7d3..6e5ba739615 100644 --- a/assets/js/motion.js +++ b/assets/js/motion.js @@ -27,16 +27,22 @@ function showState() { }); } +// Safari before 14 has only addListener. +function onReducedChange(listener) { + if (reduced.addEventListener) reduced.addEventListener('change', listener); + else reduced.addListener(listener); +} + function changed() { showState(); listeners.forEach((listener) => listener()); } -reduced.addEventListener('change', changed); +onReducedChange(changed); document.querySelectorAll('.motion-toggle').forEach((button) => { button.hidden = reduced.matches; - reduced.addEventListener('change', () => { + onReducedChange(() => { button.hidden = reduced.matches || button.dataset.unusable === 'true'; }); button.addEventListener('click', () => { diff --git a/content/about/booklet/_index.md b/content/about/booklet/_index.md index 020a5281a13..0cb4220ffb2 100644 --- a/content/about/booklet/_index.md +++ b/content/about/booklet/_index.md @@ -4,7 +4,7 @@ type = "widget_page" headless = false url = "/booklet" phone_toc = false # Two short sections; a contents list on phones would push the flipbook off the first screen -summary = "Learn more about FORRT in the interactive flipbook below: If you prefer, you can also download the PDF directly." +summary = "A 20-page introduction to FORRT: what it is, projects from each of its four areas, and its vision for FORRT’s future." # The booklet's pages on each area, from its table of contents, shown beside the flipbook # (layouts/shortcodes/booklet_contents.html). A page with a `url` links to its page on this site; `page` is the diff --git a/content/about/get-involved/contact.md b/content/about/get-involved/contact.md index dc0cf241078..dda3e3db0d0 100644 --- a/content/about/get-involved/contact.md +++ b/content/about/get-involved/contact.md @@ -2,7 +2,7 @@ # A Skills section created with the Featurette widget. widget = "featurette_welcome" # See https://sourcethemes.com/academic/docs/page-builder/ headless = true # This file represents a page section. -active = false # Off: its email, Slack and GitHub links repeat the cards at the top and the footer. +active = false # Off: its Slack link repeats the cards at the top, and its email and GitHub links repeat the footer. weight = 70 # Order that this section will appear. title = "Get in touch" diff --git a/content/accessibility.md b/content/accessibility.md index ae6bcc2ac02..dec50a270d7 100644 --- a/content/accessibility.md +++ b/content/accessibility.md @@ -19,7 +19,7 @@ FORRT is run by volunteers, so we cannot promise a reply within a set time, but While we built the current design, every proposed change was checked automatically in a Chromium browser. The checks covered a sample of 45 pages chosen to include each type of page on the site: - the [axe-core](https://github.com/dequelabs/axe-core) rules for WCAG Level A and AA, at phone and desktop widths; -- on the main page designs, at three screen widths: text contrast, text smaller than 15 px, and lines of 80 characters or more; +- on the main page designs, at three screen widths: text contrast, text smaller than 15 px, and lines of 100 characters or more; - that pages do not run wider than the screen, at phone, tablet and desktop widths, and on the main page designs also with all text doubled in size; - on the home page: that the keyboard reaches a pause button that stops the animation, that Tab moves on from the tower's pause button to the button that starts the tower game, that the animation stays still and the 3D tower does not load when a device is set to reduce motion, and that the game is not offered where the browser cannot draw 3D graphics; - that the chat button does not cover the page, including when it has keyboard focus. diff --git a/content/adopting/index.md b/content/adopting/index.md index 166b506e73a..8794eef23dd 100644 --- a/content/adopting/index.md +++ b/content/adopting/index.md @@ -7,5 +7,5 @@ wide = true page_class = "nx-page nx-adopting" sharing_image = "img/ape.webp" sharing_image_alt = "Adopting Principled Education — commitments to integrate, teach, share, and address open science practices" -summary = "In this page, we describe easy ways to adopt principled teaching and mentoring practices. That is, (a) integrating open and reproducible science tenets into your teaching workflow; (b) striving to teach science (or scholarship) as a process of knowledge acquisition rather than a collection of scientific evidence, as doing so does not yield scientific literacy; (c) share publicly your teaching and mentoring (and Lab) materials so that other educators can make use of your excellent work, which also foster social justice through the democratization of scientific educational resources and pedagogies; (d) recognize that Higher Education is a profoundly unequal, non-inclusive and non-diverse environment due to a plethora of societal constraints, which also shapes academia itself, and which we as educators should try to address in class (whatever the subject taught) by integrating course content with topics of representation, diversity, equity, and inclusion. See below for 8 FORRT tips." +summary = "Easy ways to adopt principled teaching and mentoring practices, with 8 FORRT tips." +++ diff --git a/content/ai-metascience/index.md b/content/ai-metascience/index.md index dfaef8381ed..d34b766c609 100644 --- a/content/ai-metascience/index.md +++ b/content/ai-metascience/index.md @@ -8,7 +8,7 @@ hide_date: true summary: "Programme and recordings of the FORRT AI in Metascience Online Conference, 28–30 September 2026: 35+ talks and workshops over 3 days, most of them on YouTube." sharing_description: "Watch the talks from the FORRT AI in Metascience Online Conference, 28–30 September 2026." sharing_image_alt: "FORRT AI in Metascience Conference — online, 28–30 September 2026" -# The banner beside the title (layouts/partials/doors/page_hero.html). +# The banner beside the title (layouts/partials/page_hero.html). hero_image: "featured.webp" hero_image_alt: "FORRT AI in Metascience Conference — online, 28–30 September 2026" image: diff --git a/content/awop/index.md b/content/awop/index.md index 9e1f4aea3a9..a924d37ceee 100644 --- a/content/awop/index.md +++ b/content/awop/index.md @@ -7,7 +7,7 @@ title = "Academic Wheel of Privilege (AWoP)" summary = "Who goes first? Authorship order shapes research impact and careers, yet decisions about it often overlook equity and favour privileged researchers. The Academic Wheel of Privilege (AWoP) is a toolkit, an app with educational materials, that helps teams decide authorship order equitably, especially where contributions are hard to compare or bias may play a part." # url = "/awop" sharing_image_resource = "AWOP.webp" -# The wheel beside the title (layouts/partials/doors/page_hero.html). +# The wheel beside the title (layouts/partials/page_hero.html). hero_image = "AWOP.webp" hero_image_alt = "The Academic Wheel of Privilege: 24 socio-cultural identities around the edge, grouped into six sectors, each with three rings of circles inside it that show privilege increasing towards the centre." hero_image_link = "Open the full-size wheel" diff --git a/content/citation-politics/_index.md b/content/citation-politics/_index.md index c45e01dd965..3c19c8d11a0 100644 --- a/content/citation-politics/_index.md +++ b/content/citation-politics/_index.md @@ -6,12 +6,12 @@ subtitle: "A toolkit to encourage thoughtful citation" url: "/citation-politics/" sharing_image: "img/citation-politics-toolkit.webp" sharing_image_alt: "Towards Citational Justice Across the Whole Research Cycle — a wheel of citation politics tools and practices for planning, project, paper, and publication stages" -# The wheel beside the title (layouts/partials/doors/page_hero.html). +# The wheel beside the title (layouts/partials/page_hero.html). # A copy of static/img/citation-politics-toolkit.webp beside the page, so the opening shows a resized version. hero_image: "wheel.webp" hero_image_alt: "Towards Citational Justice Across the Whole Research Cycle: a wheel of citation politics tools and practices for the planning, project, paper and publication stages" hero_image_link: "Open the full-size wheel" -# How to cite the toolkit, in the side card under the contents (layouts/partials/doors/reading_card.html). +# How to cite the toolkit, in the side card under the contents (layouts/partials/reading_card.html). cite_as: "Sauvé, S. A., Middleton, S. L., Gellersen, H., & Azevedo, F. (2025, July 31). In Pursuit of Citational Justice: A Toolkit for Equitable Scholarship. https://doi.org/10.31222/osf.io/qjecy_v2" --- diff --git a/content/educators-corner/023-forward-a-unesco-decade-of-science-programme/index.md b/content/educators-corner/023-forward-a-unesco-decade-of-science-programme/index.md index 640b44d84a1..f5aeb60280f 100644 --- a/content/educators-corner/023-forward-a-unesco-decade-of-science-programme/index.md +++ b/content/educators-corner/023-forward-a-unesco-decade-of-science-programme/index.md @@ -1,7 +1,7 @@ --- title: "FORWARD: A UNESCO Decade of Science Programme" subtitle: "FORRT: Framework for Open and Reproducible Research Training" -summary: "FORRT is one of the few initiatives worldwide to be formally endorsed as a Programme of the International Decade of Sciences for Sustainable Development (IDSSD, 2024–2033), led by UNESCO and the United Nations (UN). This endorsement reflects the highest level of UN policy recognition and positions FORRT’s work in Education & Pedagogy (Curriculum Hub), Metascience & Research (Replication Hub) and Social Justice & DEIA as an essential contribution to the UN’s strategy for achieving the Sustainable Development Goals (SDGs)." +summary: "FORRT is one of the few initiatives worldwide to be formally endorsed as a Programme of the International Decade of Sciences for Sustainable Development (IDSSD, 2024–2033), led by UNESCO and the United Nations (UN). This endorsement reflects the highest level of UN policy recognition and positions FORRT’s work in Education & Pedagogy (Curriculum Hub), Meta-Science & Research (Replication Hub) and Social Justice & DEIA as an essential contribution to the UN’s strategy for achieving the Sustainable Development Goals (SDGs)." authors: ['FORRT'] tags: [] categories: [] diff --git a/content/feedback/form-feedback.md b/content/feedback/form-feedback.md index 2352511e21d..82e49ae26ab 100644 --- a/content/feedback/form-feedback.md +++ b/content/feedback/form-feedback.md @@ -50,4 +50,4 @@ subtitle = "Fill out the form below or ***[open the Google form in a new window] css_class = "text-center" +++ -{{< gform src="1FAIpQLSebwqYgFmH3QJIMtPFUhuKeU1Rdbz5WqwP8iXd2cUPgZvUHRg" width="100%" height="760px" alt="Loading..." >}} \ No newline at end of file +{{< gform src="1FAIpQLSebwqYgFmH3QJIMtPFUhuKeU1Rdbz5WqwP8iXd2cUPgZvUHRg" width="100%" height="500px" alt="Loading..." >}} \ No newline at end of file diff --git a/content/impact/index.md b/content/impact/index.md index 05956ea79af..f32048f5b34 100644 --- a/content/impact/index.md +++ b/content/impact/index.md @@ -7,5 +7,5 @@ wide = true page_class = "nx-page nx-impact" sharing_image_resource = "impacts-map.webp" sharing_image_alt = "World map showing the number of FORRT contributors and collaborators by country" -summary = "Motivation The scientific community has taken steps to reflect a widespread awareness of, and call for, improved practices ushering in the “credibility revolution,” including higher standards of evidence, preregistration, direct replication, transparency, and openness." +summary = "The scientific community has taken steps to reflect a widespread awareness of, and call for, improved practices ushering in the “credibility revolution,” including higher standards of evidence, preregistration, direct replication, transparency, and openness." +++ diff --git a/content/neurodiversity/index.md b/content/neurodiversity/index.md index 723a9387499..e851593f275 100644 --- a/content/neurodiversity/index.md +++ b/content/neurodiversity/index.md @@ -5,6 +5,6 @@ headless = false # Homepage is headless, other widget pages are not. title = "Neurodiversity" wide = true page_class = "nx-page nx-neurodiversity" -summary = "Our Goals This team is responsible for discussing how open scholarship can be used to support the neurodiversity movement and enhance connections between open scholarship and neurodiversity; and how neurodiversity and open scholarship can intersect to make higher education more inclusive and accessible." +summary = "Team Neurodiversity is responsible for discussing how open scholarship can be used to support the neurodiversity movement and enhance connections between open scholarship and neurodiversity; and how neurodiversity and open scholarship can intersect to make higher education more inclusive and accessible." # url = "/forrt/neurodiversity" +++ diff --git a/content/open-research-games-portal/fields.md b/content/open-research-games-portal/fields.md index 11ef85e8c6e..0ca40c1fdef 100644 --- a/content/open-research-games-portal/fields.md +++ b/content/open-research-games-portal/fields.md @@ -1,7 +1,7 @@ --- title: fields --- -This guide explains what information you'll find for each game in the Portal and how it was collected. +This guide explains what information you'll find for each game in the Portal. **Basic information** @@ -10,7 +10,7 @@ This guide explains what information you'll find for each game in the Portal and - **Description**: an overview of the game's content and purpose, typically using the official description provided by the creators. - **Where to get it**: where to find or purchase the game, including links to open-source versions when available. - **Last updated**: the year the game was most recently updated (helps assess whether content might be outdated). -- **Language**: languages in which the game is available (English, French, German, Spanish, Portuguese, and others). +- **Language**: languages in which the game is available (English, French, German, Chinese, Welsh, and others). - **Licence**: the game's licensing terms (e.g., Creative Commons, commercial license, or unknown status). **Game characteristics** diff --git a/content/summaries/diversity-equity-inclusion.md b/content/summaries/diversity-equity-inclusion.md index 13ccf3ab598..9236061a0ae 100644 --- a/content/summaries/diversity-equity-inclusion.md +++ b/content/summaries/diversity-equity-inclusion.md @@ -16,7 +16,7 @@ menu: # Prev/next pager order (if `docs_section_pager` enabled in `params.toml`) weight: 3 -# Questions to start from (layouts/partials/doors/summary_questions.html, which says how to write them): a few +# Questions to start from (layouts/partials/summary_questions.html, which says how to write them): a few # show, picked at random from different topics; without JavaScript, the first three (one on a phone). questions: - question: "How did US high-school graduates' university enrolment differ by family income in 2013?" diff --git a/content/summaries/open-reproducible.md b/content/summaries/open-reproducible.md index 351066396a4..3a00e21f300 100644 --- a/content/summaries/open-reproducible.md +++ b/content/summaries/open-reproducible.md @@ -18,7 +18,7 @@ menu: # Prev/next pager order (if `docs_section_pager` enabled in `params.toml`) weight: 2 -# Questions to start from (layouts/partials/doors/summary_questions.html, which says how to write them): a few +# Questions to start from (layouts/partials/summary_questions.html, which says how to write them): a few # show, picked at random from different topics; without JavaScript, the first three (one on a phone). questions: - question: "How often did Nature's respondents report failing to reproduce others' experiments?" diff --git a/content/syllabus/index.md b/content/syllabus/index.md index 59998ccddf3..dc7e791d201 100644 --- a/content/syllabus/index.md +++ b/content/syllabus/index.md @@ -5,5 +5,5 @@ headless = false # Homepage is headless, other widget pages are not. title = "Syllabus" wide = true page_class = "nx-page nx-syllabus" -summary = "Motivation To provide educators with an example of how they can draw resources from FORRT’s educational nexus to integrate open scholarship into their teaching, FORRT has developed an Open and Reproducible Science 101 syllabus. FORRT’s syllabus was developed as a seminar series covering 9 weeks of teaching." +summary = "To provide educators with an example of how they can draw resources from FORRT’s educational nexus to integrate open scholarship into their teaching, FORRT has developed an Open and Reproducible Science 101 syllabus. FORRT’s syllabus was developed as a seminar series covering 9 weeks of teaching." +++ diff --git a/content/testimonials/README b/content/testimonials/README index 9971e9e4b4d..931f582bd77 100644 --- a/content/testimonials/README +++ b/content/testimonials/README @@ -14,7 +14,7 @@ This testimonials lives in `content/widgets/testimonialN.md` (where `N` is the t - Ensure that it can be shown in a circle - i.e. that the face is close to the center, with some space around - Convert to WebP (e.g. `https://image.online-convert.com/convert-to-webp`). - Save in folder as `testimonials/name.webp` folder. - - Change name in picture reference, and add name in alt text + - Change name in picture reference, and keep `alt=""`, because the name is beside the picture 4. **Adjust order**: - In the front matter, set `weight = X` (lower = earlier). 5. **Pick a background color** diff --git a/content/testimonials/testimonial1.md b/content/testimonials/testimonial1.md index ca01d45b0d2..9ceee6d48ea 100644 --- a/content/testimonials/testimonial1.md +++ b/content/testimonials/testimonial1.md @@ -24,7 +24,7 @@ subtitle = ""
- Portrait of Roksana Sobolak +
diff --git a/content/testimonials/testimonial2.md b/content/testimonials/testimonial2.md index 4c97c0450ad..539b7d6f2ed 100644 --- a/content/testimonials/testimonial2.md +++ b/content/testimonials/testimonial2.md @@ -24,7 +24,7 @@ subtitle = ""
- Portrait of Max Korbmacher +
diff --git a/content/testimonials/testimonial3.md b/content/testimonials/testimonial3.md index 8deb6eecdc4..6d8898f82fd 100644 --- a/content/testimonials/testimonial3.md +++ b/content/testimonials/testimonial3.md @@ -24,7 +24,7 @@ subtitle = ""
- Portrait of Leonie A. Dudda +
diff --git a/content/testimonials/testimonial4.md b/content/testimonials/testimonial4.md index acc27e9854f..ccdb93734d3 100644 --- a/content/testimonials/testimonial4.md +++ b/content/testimonials/testimonial4.md @@ -24,7 +24,7 @@ subtitle = ""
- Portrait of Richard Dushime +
diff --git a/content/testimonials/testimonial5.md b/content/testimonials/testimonial5.md index 8555b23fb4b..e76c4b961ed 100644 --- a/content/testimonials/testimonial5.md +++ b/content/testimonials/testimonial5.md @@ -24,7 +24,7 @@ subtitle = ""
- Portrait of Dr. Andrea Kis +
diff --git a/content/testimonials/testimonial6.md b/content/testimonials/testimonial6.md index 806cc2d3b92..1ee806fd9f4 100644 --- a/content/testimonials/testimonial6.md +++ b/content/testimonials/testimonial6.md @@ -24,7 +24,7 @@ subtitle = ""
- Portrait of Adira Daniel +
diff --git a/content/testimonials/testimonial7.md b/content/testimonials/testimonial7.md index a4aa97faaa2..2312c638784 100644 --- a/content/testimonials/testimonial7.md +++ b/content/testimonials/testimonial7.md @@ -24,7 +24,7 @@ subtitle = ""
- Portrait of Ana Carolina Marinho +
diff --git a/content/testimonials/testimonials/AnaCarolinaMarinho.webp b/content/testimonials/testimonials/AnaCarolinaMarinho.webp index 5319cc6d3b1..fb046028faa 100644 Binary files a/content/testimonials/testimonials/AnaCarolinaMarinho.webp and b/content/testimonials/testimonials/AnaCarolinaMarinho.webp differ diff --git a/content/testimonials/testimonials/DrAndreaKis.webp b/content/testimonials/testimonials/DrAndreaKis.webp index 9c80858f702..6639758bd60 100644 Binary files a/content/testimonials/testimonials/DrAndreaKis.webp and b/content/testimonials/testimonials/DrAndreaKis.webp differ diff --git a/content/testimonials/testimonials/MaxKorbmacher.webp b/content/testimonials/testimonials/MaxKorbmacher.webp index 2b1baf428bb..7dff4184895 100644 Binary files a/content/testimonials/testimonials/MaxKorbmacher.webp and b/content/testimonials/testimonials/MaxKorbmacher.webp differ diff --git a/content/testimonials/testimonials/RichardDushime.webp b/content/testimonials/testimonials/RichardDushime.webp index e25830e91b2..986b95c7e17 100644 Binary files a/content/testimonials/testimonials/RichardDushime.webp and b/content/testimonials/testimonials/RichardDushime.webp differ diff --git a/content/testimonials/testimonials/Roksana.webp b/content/testimonials/testimonials/Roksana.webp index 627451a7a14..494465beab9 100644 Binary files a/content/testimonials/testimonials/Roksana.webp and b/content/testimonials/testimonials/Roksana.webp differ diff --git a/content/testimonials/testimonials/leonie.webp b/content/testimonials/testimonials/leonie.webp index d680da4f95e..c3eaabada33 100644 Binary files a/content/testimonials/testimonials/leonie.webp and b/content/testimonials/testimonials/leonie.webp differ diff --git a/i18n/ar.yaml b/i18n/ar.yaml deleted file mode 100644 index 9d7165b351b..00000000000 --- a/i18n/ar.yaml +++ /dev/null @@ -1,3 +0,0 @@ -# Overrides the theme's Arabic strings (themes/academic/i18n/ar.yaml). -- id: last_updated - translation: "آخر تحديث:" diff --git a/layouts/_default/single.html b/layouts/_default/single.html index ee1e357128c..04d0fc465cf 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -3,14 +3,13 @@ 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 and heading; scripts/generate_sc_profiles.py is the source. */}}
{{ partial "crumbs" (dict "page" .) }}

{{ .Title }}

{{ $body := partial "content" .Content }} - {{ $body = replaceRE `.*?` "" $body }} {{/* Each section's title heads its part of the page, so the outline is sections, teams, people, with or without JavaScript. */}} {{ $body = replaceRE `(?s)
(.*?)
` `

$1

` $body }} diff --git a/layouts/_default/term.html b/layouts/_default/term.html index 0270a6c8dbf..d8c2e72da76 100644 --- a/layouts/_default/term.html +++ b/layouts/_default/term.html @@ -1,7 +1,8 @@ {{- define "main" -}} {{/* A taxonomy term: an earlier FORRT cluster (/forrt_clusters//, its resources grouped by the current clusters, topic_resources.html) or a news category (/category//, the news list's cards, category_term.html). - Any other term is the simple list. Numbered pages stay where they were (decision D17). */}} + Any other term is the simple list, with numbered pages; a cluster term has none (decision D17: the 404 page sends + old links to the term). */}} {{ $kind := lower .Type }} {{ if eq $kind "categories" }} {{ partial "category_term.html" . }} diff --git a/layouts/partials/article_card.html b/layouts/partials/article_card.html index b7710021eb9..92de40f1b6b 100644 --- a/layouts/partials/article_card.html +++ b/layouts/partials/article_card.html @@ -8,7 +8,7 @@ {{ $issue := and (eq $p.Type "post") $tone (eq (lower $cat) "newsletter") }}
{{ if and $img (not $tone) }} - {{ partial "card_picture" (dict "img" $img "lazy" true "alt" $p.Params.image.alt_text "figures" (eq $p.Type "educators-corner")) }} + {{ partial "card_picture" (dict "img" $img "lazy" true "alt" $p.Params.image.alt_text "figures" (in (slice "educators-corner" "pedagogies") $p.Type) "whole" (eq $p.Type "pedagogies")) }} {{ else if $issue }} {{/* Newsletter brick: names the issue once as the card's linked title, matching section/post.html. */}}
diff --git a/layouts/partials/author_profile.html b/layouts/partials/author_profile.html index f4ea1da0a65..a1061d5dd03 100644 --- a/layouts/partials/author_profile.html +++ b/layouts/partials/author_profile.html @@ -1,11 +1,11 @@ {{/* The profile page (/authors//) for a name as written in a page's `authors`, or false. The slug is usually the - name made into a URL; a title such as "Dr." in front, or a profile whose folder differs from the credited name + name made into a URL; "By" or a title such as "Dr." in front, or a profile whose folder differs from the credited name ("Patrick Forscher" at patrick-s-forscher), is found by the profile's own name. Call it with partialCached and the name as the key. */}} {{ $raw := . }} {{ $found := site.GetPage (printf "/authors/%s" (urlize $raw)) }} {{ if not $found }} - {{ $plain := replaceRE `(?i)^(dr|prof|professor)\.?\s+` "" (trim $raw " ") }} + {{ $plain := replaceRE `(?i)^(by\s+)?((dr|prof|professor)\.?\s+)?` "" (trim $raw " ") }} {{ $found = site.GetPage (printf "/authors/%s" (urlize $plain)) }} {{ if not $found }} {{ with site.GetPage "/authors" }}{{ range .Sections }} diff --git a/layouts/partials/clusters/rich_text.html b/layouts/partials/clusters/rich_text.html index 84f8922fca2..c51a4c020ba 100644 --- a/layouts/partials/clusters/rich_text.html +++ b/layouts/partials/clusters/rich_text.html @@ -1,7 +1,7 @@ {{- /* Publication titles from Crossref: plain text plus , and markup, sometimes with HTML entities. Escape everything, then restore only those tags (scp as small caps). static/js/featured-resources.js has the same rule (richText). */ -}} -{{- $s := . | default "" | htmlUnescape | replaceRE `\s+` " " | strings.TrimSpace | htmlEscape -}} +{{- $s := . | default "" | htmlUnescape | replaceRE `[\s\x{00A0}]+` " " | strings.TrimSpace | htmlEscape -}} {{- $s = replaceRE `<i>(.*?)</i>` "$1" $s -}} {{- $s = replaceRE `<em>(.*?)</em>` "$1" $s -}} {{- $s = replaceRE `<scp>(.*?)</scp>` `$1` $s -}} diff --git a/layouts/shortcodes/citation_chart.html b/layouts/shortcodes/citation_chart.html index 394b4bb784f..1b7f1467903 100644 --- a/layouts/shortcodes/citation_chart.html +++ b/layouts/shortcodes/citation_chart.html @@ -21,11 +21,11 @@ {{ end }} {{ if lt $dated (int .total_citations) }}

{{ lang.FormatNumber 0 $dated }} of these are listed by year.

{{ end }} -
Details on Google Scholar
+
Details on Google Scholar (opens in a new tab)
{{ else }}
Bar chart of citations to FORRT's work per year, with its total citations, h-index and i10-index, from Google Scholar -
Details on Google Scholar
+
Details on Google Scholar (opens in a new tab)
{{ end }} diff --git a/static/js/clusters-page.js b/static/js/clusters-page.js index 0014434c9a7..1ca8accfcaa 100644 --- a/static/js/clusters-page.js +++ b/static/js/clusters-page.js @@ -268,7 +268,7 @@ var cardText = card.textContent.replace(/\s+/g, ' ').trim(); if (!cardText || !matchesAllTokens(cardText, tokens)) return; var titleEl = card.querySelector('.fc-title'); - var cardTitle = titleEl ? titleEl.textContent.replace(/\s+/g, ' ').trim() : ''; + var cardTitle = titleEl ? titleEl.textContent.replace(/\s+/g, ' ').replace(/ \(opens in a new tab\)\s*$/, '').trim() : ''; var paneEl = card.closest('.acc-section, .tab-pane'); var paneId = paneEl ? paneEl.id : ''; var tabId = paneEl ? (paneEl.getAttribute('aria-labelledby') || '') : ''; diff --git a/static/js/featured-resources.js b/static/js/featured-resources.js index 9d1f2e37ed5..e09a32ffa12 100644 --- a/static/js/featured-resources.js +++ b/static/js/featured-resources.js @@ -749,7 +749,7 @@ var cards = []; if (container) { container.querySelectorAll('.fc-card, .fr-card').forEach(function (card) { - var title = (card.querySelector('.fc-title') || card.querySelector('.fr-title') || {}).textContent || ''; + var title = ((card.querySelector('.fc-title') || card.querySelector('.fr-title') || {}).textContent || '').replace(/ \(opens in a new tab\)\s*$/, ''); var summary = (card.querySelector('.fc-summary') || card.querySelector('.fr-summary') || {}).textContent || ''; cards.push({ el: card,