Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,5 @@ jobs:
cache: npm
- run: npm ci
- run: npm run build
- run: npm run check:seo
- run: npm run format:check
28 changes: 20 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
# hausergroup.github.io

The Hauser Group website, built with [Astro](https://astro.build) and published at
The website of the **Hauser Group** (Pharmacoinformatics) at the Department of
Drug Design and Pharmacology, University of Copenhagen, studying how human
genetic variation changes the way G protein-coupled receptors (GPCRs) respond to
drugs. Built with [Astro](https://astro.build) and published at
<https://hausergroup.org>.

## Run it locally
Expand All @@ -13,21 +16,30 @@ npm run dev
```

The site is then at <http://localhost:4321> and reloads as you edit.
`npm run build` builds the production site into `dist/`.
`npm run build` builds the production site into `dist/`, and `npm run check:seo`
verifies sitemaps, canonical links, metadata, Open Graph tags, JSON-LD and
`llms.txt` in `dist/`.
`npm run format` formats your changes with Prettier. The **Build site** check
fails on unformatted files, so run it before you push.
fails on unformatted files or failed SEO checks, so run both before you push.

## Where things live

- `src/pages/` — one file per page. `src/pages/people.astro` becomes `/people`.
- `src/data/site.ts` — people, research lines and other content lists.
- `src/layouts/Base.astro` — the page head, header and footer.
- `src/pages/` — one file per page (`src/pages/people/` becomes `/people/`,
plus build-time endpoints for `sitemap.xml`, `robots.txt` and `llms.txt`).
- `src/data/site.ts` — research scales, statement and ways to join.
- `src/data/profiles.ts` — people, roles, portraits and external profile links.
- `src/data/publications.ts` — curated publications with DOIs.
- `src/data/structuredData.ts` — Schema.org JSON-LD builders.
- `src/layouts/Base.astro` — page head, metadata, header and footer.
- `src/styles/site.css` — colors, type and components.
- `src/components/` — the logo and the receptor drawing.
- `public/` — files served as-is, such as images and PDFs.
- `src/components/` — the logo, particle receptor and page sections.
- `public/` — files served as-is (`CNAME`, `favicon.svg`, `og-image.png`,
portraits).
- `scripts/check-seo.mjs` — automated build-output SEO verification run in CI.
- `astro.config.mjs` — site configuration.
- `design/DESIGN.md` — the design choices behind the site. Read it before
changing how things look.
- `design/SEO.md` — search discoverability guide and checklist.

VS Code will suggest the Astro and Prettier extensions when you open the folder;
install them for autocomplete in `.astro` files and formatting from the editor.
Expand Down
98 changes: 98 additions & 0 deletions design/SEO.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,98 @@
# Search discoverability

A practical catalogue of actions to help researchers, prospective students,
collaborators, funders and AI search tools find the Hauser Group at
<https://hausergroup.org>.

## Ground rules

- **Static, privacy-first, no analytics scripts.** Do not add Google Analytics,
tracking pixels or cookie banners. Search measurement comes from Google Search
Console and Bing Webmaster Tools (verified via DNS in Cloudflare).
- **Generated, not hand-maintained.** `sitemap.xml`, `robots.txt`, canonical
links, Open Graph tags, Schema.org JSON-LD and `llms.txt` are generated by
Astro at build time from `src/data/*.ts` and verified in CI by
`npm run check:seo`.
- **Verifiable academic facts only.** Publications link to DOIs, news items link
to institutional sources, and statistics match published work.
- **Keep lab SEO and software SEO separated.** Product-specific discovery
(`.pzfx`/`.prism` pages, alternative directories, bio.tools, MCP registries)
belongs on `curvebook.org` and `scikit-opls`, while `hausergroup.org` owns the
lab identity, people, research, publications and recruitment.
- **No gaming.** No keyword stuffing, hidden text, doorway pages or orphaned
near-duplicate pages.

## Who we want to reach

| Search intent | Example searches | Target page |
| -------------------------- | --------------------------------------------------------------------------------- | -------------------------------------------------------- |
| Find the lab or PI | "Hauser Group Copenhagen", "Alexander Sebastian Hauser", "pharmacoinformatics KU" | `/`, `/about/`, `/people/alexander-hauser/`, `/contact/` |
| Find a group member | "<member name> UCPH", "<member name> Hauser group" | `/people/[slug]/`, `/people/`, `/alumni/` |
| Research topics & methods | "GPCR pharmacogenomics", "human genetic variation GPCR drug response" | `/`, `/about/`, `/publications/` |
| Join the lab / collaborate | "GPCR PhD Copenhagen", "computational pharmacology postdoc Denmark" | `/opportunities/`, `/services/`, `/contact/` |
| Find group software | "Hauser group software", "scikit-opls", "CurveBook Hauser" | `/software/` |
| Check papers & awards | "34% approved drugs GPCR Hauser", "DARK-PEP ERC", "NeuroPepX Lundbeck" | `/publications/`, `/news/` |

Because multiple labs and companies share the name "Hauser Group", always pair
**Hauser Group** with **Pharmacoinformatics**, **GPCR** and **University of
Copenhagen** in titles, descriptions, READMEs and external profiles.

## Status key

| Status | Meaning |
| -------- | --------------------------------------------------------------------- |
| Done | Implemented in the site and verified by `npm run check:seo` |
| Ready | Possible now in the repo without external accounts |
| Decision | Needs a maintainer choice before implementing |
| Account | Requires signing in to an external service (Cloudflare, Google, etc.) |

## 1. Technical foundations

| Action | Status | Notes |
| ---------------------------------------------------------------------------------------------------------------- | -------- | ---------------------------------------------------------------------------------------------------------------------------------------------------- |
| Custom domain (`hausergroup.org`) with HTTPS enforced | Done | Verified on `HauserGroup` org; `www` and `hausergroup.github.io` 301-redirect to `https://hausergroup.org/` |
| Publish only built Astro `dist/` via GitHub Actions | Done | Internal docs (`design/`, `README.md`) are never published or indexed |
| Generated `sitemap.xml` (`src/pages/sitemap.xml.ts`) | Done | Covers all static pages and `/people/[slug]/`, excludes `/404`, verified for exact parity with `dist/` in CI |
| Generated `robots.txt` (`src/pages/robots.txt.ts`) | Done | Points crawlers to `https://hausergroup.org/sitemap.xml` |
| Canonical `<link rel="canonical">` on every indexable page | Done | Emitted in `src/layouts/Base.astro` from `Astro.url.pathname` + `Astro.site` |
| `404.html` with `<meta name="robots" content="noindex">` and home link | Done | Keeps dead URLs out of search indexes |
| Unique per-page `<meta name="description">` | Done | Tailored per static page and auto-generated on `/people/[slug]/`; uniqueness enforced by `npm run check:seo` |
| Open Graph & Twitter summary-card tags + `public/og-image.png` | Done | `1200×630` default card image; square member portraits with `summary` card on `/people/[slug]/` |
| Schema.org JSON-LD (`ResearchOrganization`, `Person`, `SoftwareApplication`, `BreadcrumbList`, `CollectionPage`) | Done | Built in `src/data/structuredData.ts`; `Person` pages link `sameAs` directly to ORCID, Google Scholar, `researchprofiles.ku.dk`, GitHub and LinkedIn |
| Generated `llms.txt` (`src/pages/llms.txt.ts`) | Done | Built from `src/data/*.ts` so AI tools always see accurate people, ORCIDs, papers, software and contact info |
| Automated CI SEO check (`npm run check:seo`) | Done | Runs in `.github/workflows/ci.yml` on every PR |
| Portrait `alt` text on profile pages + explicit `width`/`height` + lazy loading | Done | `alt={person.name}` on `/people/[slug]/`; decorative cards keep `alt=""` next to linked name text |
| Remove orphaned `/research/` duplicate page | Done | Eliminated unlinked duplicate of `<Scales />` |
| Align `README.md` opening paragraph with canonical lab identity | Done | AI coding agents and GitHub search read READMEs directly |
| Self-host fonts (e.g. Fontsource or local `.woff2`) | Decision | Removes the last external request (`fonts.googleapis.com`) and unlocks custom/indie display fonts beyond Google Fonts |
| Deterministic `<lastmod>` in `sitemap.xml` | Decision | Omitted for simplicity; can be added from git commit timestamps if the site starts changing weekly |

## 2. Measurement

| Action | Status | Notes |
| ------------------------------------------------- | -------- | ---------------------------------------------------------------------------------------------------------- |
| Verify `hausergroup.org` in Google Search Console | Account | Add a **Domain property** via Cloudflare DNS `TXT` record and submit `https://hausergroup.org/sitemap.xml` |
| Verify in Bing Webmaster Tools | Account | Import from verified Google Search Console in one click; feeds Bing, DuckDuckGo and AI search integrations |
| Quarterly manual check in AI search tools | Ready | Run a fixed query set across ChatGPT, Claude, Perplexity and Google AI Overviews and verify cited facts |
| IndexNow pings on deploy | Decision | Optional outbound step in `deploy.yml` for faster Bing re-indexing; low urgency for a low-churn lab site |

## 3. Content

| Action | Status | Notes |
| ------------------------------------ | -------- | --------------------------------------------------------------------------------------------------------------- |
| Fill in group leader statement | Decision | `statement.text` in `src/data/site.ts` is currently empty; 2–3 sentences give search engines and AI a crisp bio |
| Direct HTTPS link to `curvebook.org` | Ready | Once `HauserGroup/curvebook` enforces HTTPS on `curvebook.org`, update `Software.astro` and `structuredData.ts` |

## 4. Off-site authority & academic backlinks

For an academic lab, links from university domains, researcher registries and
papers carry far more authority than generic directories.

| Action | Status | Notes |
| ----------------------------------------- | --------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| University of Copenhagen (`ku.dk`) links | Account | Link `https://hausergroup.org` from the department group page and from each member's `researchprofiles.ku.dk` profile |
| GitHub Organization & repository metadata | Account / Ready | Point `HauserGroup` org website (`blog`) to `https://hausergroup.org`, add `HauserGroup/.github/profile/README.md`, update `scikit-opls` homepage, and add repo topics (`pharmacoinformatics`, `gpcr`, `pharmacogenomics`, `computational-pharmacology`, `university-of-copenhagen`) |
| ORCID & Google Scholar profiles | Account | Add `https://hausergroup.org` (and individual `/people/<slug>/` links) to ORCID and Google Scholar profiles |
| Funder & consortium bios | Account | Include `https://hausergroup.org` on EMBO Young Investigator, Lundbeck Foundation, DUA, DFF and ISBUC profile pages |
| Manuscripts & preprints | Ready (ongoing) | Cite `https://hausergroup.org` and `https://hausergroup.org/software/` in Code/Data Availability sections |
| Wikidata entity & `sameAs` | Account | Link Alexander Sebastian Hauser's Wikidata item to ORCID, UCPH and `official website = https://hausergroup.org` |
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
"dev": "astro dev",
"build": "astro build",
"preview": "astro preview",
"check:seo": "node scripts/check-seo.mjs",
"format": "prettier --write .",
"format:check": "prettier --check ."
},
Expand Down
Binary file added public/og-image.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading