Editing Content
| Parent pages: Contributing | README |
Table of contents
- Overview
- Add a new section to the homepage
- Add a new page
- Update the sponsorship page
- Edit navigation
- Modify header (masthead)
- Modify footer
- Update social links
- Update the Slack invite link
- Styling changes
- Safe editing checklist
Overview
Use this page for content and structure changes in the site source files.
Add a new section to the homepage
- Open
_pages/index.html. - Add a new
<section ... id="your-section-id">...</section>block where you want it to appear. - If the section should appear in top navigation, add a matching entry in
_data/navigation.ymlwithurl: /#your-section-id. - Preview locally and verify anchor scrolling.
Add a new page
- Create a file in
_pages/(for example_pages/about.md). - Add front matter:
--- title: "About" layout: page permalink: /about/ --- - Add page content below front matter.
- Add a link in
_data/navigation.ymlif the page should appear in the masthead.
Update the sponsorship page
- Edit content in
_pages/sponsorship.md(copy, headings, sponsor cards). - Add or update sponsor logos in
assets/images/, then reference them with<img src="/assets/images/...">. - If you need the link in the top navigation, add or update the entry in
_data/navigation.yml. - Adjust sponsor layout styles in
assets/css/main.scss(.sponsor-card,.principles,.support-options,.callout).
Edit navigation
Update _data/navigation.yml (main: list). For homepage sections, use anchors like /#about; for standalone pages, use their permalink paths. Set button: true on one entry to show it as the header’s call-to-action button.
Modify header (masthead)
- Navigation source:
_data/navigation.yml - Header template:
_includes/masthead.html - Logo:
_config.yml(logo)
Modify footer
- Footer markup:
_includes/footer.html - Footer links metadata:
_config.ymlunderfooter.links - Footer copyright:
_config.ymlunderfooter.copyright
Update social links
Edit _config.yml:
footer:
links:
- label: "LinkedIn"
icon: "linkedin"
url: "https://..."
These links are rendered by _includes/footer.html. icon names an icon in _includes/icon.html; add a new when branch there for a new network.
Update the Slack invite link
Slack invite links expire. When the current one does, create a new one in Slack (Invite people > Copy invite link) and paste it into _config.yml:
slack:
invite_url: "https://join.slack.com/t/kcdataprofessionals/shared_invite/..."
The homepage “Join on Slack” button and the /slack redirect (_pages/slack.html) both read this value. The /slack page is not linked anywhere on the site; it exists for the QR code on the meetup slide, so the QR code keeps working after the link is replaced.
Styling changes
All styles live in assets/css/main.scss. Colours, fonts, spacing and radii are CSS variables in its :root block (for example --navy-700, the logo colour, and --signal, the accent used for the “live” dot and focus rings), so most visual changes are a one-line edit there.
Safe editing checklist
- Keep content edits in
_pages/, configuration edits in_config.yml, and component edits in_includes//_layouts/. - Do not edit generated output in
_site/. - Preview locally before opening a PR.