-
Notifications
You must be signed in to change notification settings - Fork 2
Managing Departments
Isaac edited this page Jul 23, 2026
·
3 revisions
Department records live in _data/departments.yml. They supply the department list, detail pages, staff groups, sitemap, and footer links.
example:
path: /departments/example
staff_department: Example
en-us:
name: Example Department
bio: Responsible for the example area of PWindows.
zh-cn:
name: 示例部门
bio: 负责派视界的示例领域。Every department needs path and staff_department. Every configured language
also needs its own name and bio.
-
example:is the department's unique key. -
pathis its unique public address. -
staff_departmentconnects staff profiles to the department and must be unique. - Each localized
biois the public description shown in that language. - Language keys must match
_config.yml; see Localization.
Every department record needs a matching file in pages/departments/:
---
layout: department
title: Example Department
permalink: /departments/example
description: Learn about the example department at PWindows.
intro: Learn what the example team contributes to PWindows.
department: example
---Three values must agree:
-
department: examplematches theexample:data key; -
permalink: /departments/examplematches the data record'spath; -
layoutremainsdepartment.
The shared layout automatically displays the department biography and matching team members.
If a department has no public staff profiles, keep the message explaining that no team members are listed. Do not add placeholder people to hide the empty state.
- Open
/departments/,/zh-cn/departments/, and both versions of the department detail page locally. - Check its name, biography, link, and team list.
- Check the footer and
/sitemappage. - Run Running Checks.
Return to Managing Site Data.