This document explains how to control the visibility of various sections of the DevOpsDays Zurich website using feature flags.
Feature flags are configured in config.yaml under params.features:
params:
features:
show_program: true # Show/hide Program page and menu item
show_tickets: true # Show/hide Tickets page, menu item, and "Get Tickets" button
show_cfp: false # Show/hide "Submit Your Talk" button (Call for Proposals)
show_speakers: true # Show/hide Speakers page and menu item
show_past_events: false # Show/hide Past Events menu item and landing-page button
cfp_url: 'https://sessionize.com/devopsdays-zurich-2025/' # CFP platform URL- Default:
true - Controls:
- "Program" menu item in navigation
- "View Program" button on landing page
- "Program" link in footer
- Access to
/event/program/page
- Use case: Set to
falsebefore the program is finalized
- Default:
true - Controls:
- "Tickets" menu item in navigation
- "Get Tickets" CTA button in header (desktop and mobile)
- "Get Your Tickets" button on landing page
- "Tickets" link in footer
- Access to
/event/tickets/page
- Use case: Set to
falsebefore ticket sales open or after they close
- Default:
false - Controls:
- "Submit Your Talk" CTA button in header (desktop and mobile)
- "Submit your Proposal" button on landing page
- Links to the CFP platform specified in
cfp_url
- Use case: Set to
truewhen Call for Proposals is open - Note: Remember to update
cfp_urlwith your actual CFP platform URL
- Default:
true - Controls:
- "Speakers" menu item in navigation
- Access to
/speakers/page
- Use case: Set to
falsebefore speakers are announced
- Default:
false - Controls:
- "Past Events" menu item in navigation
- "View Past Events" button on landing page
- Use case: Set to
trueonce you want to surface previous editions (e.g. after a recent event wraps, or when the upcoming event hasn't been announced yet)
Here's a suggested timeline for toggling these flags during your event planning:
show_program: false
show_tickets: false
show_cfp: true
show_speakers: falseshow_program: false
show_tickets: false
show_cfp: false
show_speakers: trueshow_program: true
show_tickets: true
show_cfp: false
show_speakers: trueshow_program: true
show_tickets: false
show_cfp: false
show_speakers: true-
Event Menu Item: The "Event" dropdown menu will be hidden automatically if all of its child items (Program, Tickets, Speakers) are hidden.
-
Page Access: While the menu items are hidden, the pages are still accessible via direct URL. If you need to completely restrict access, consider:
- Using Hugo's draft status
- Adding a "coming soon" message to the page
- Using
.gitignoreto exclude the page from the build
-
CFP URL: Don't forget to update the
cfp_urlparameter with your actual Call for Proposals platform URL (e.g., Sessionize, Papercall, etc.)
After changing feature flags, rebuild and test your site:
hugo server -DCheck both desktop and mobile navigation to ensure the flags are working as expected.