Update FAQ Page

Add, edit, or remove frequently asked questions through Decap CMS or by editing faq.md directly.

Update FAQ Page

The FAQ Structure

Your FAQ page is defined in src/faq.md. It uses layout: faq.lax and stores every question-answer pair in a faqs array. Each item needs three fields: id (for the accordion panel), question, and answer.

Via Decap CMS

1. Open http://localhost:8080/admin/

2. Click Site Settings → FAQ

3. You will see the page title, description, section kicker, and section title

4. Scroll down to the Faqs list

5. Click an existing item to edit it, or click Add Faqs to create a new one

6. For each item, fill in:

  • Id — a unique number or slug (used for the accordion panel ID, e.g., 1, 2, 3)
  • Question — the question text
  • Answer — the answer text (supports multi-line)

7. Click Publish

Via Code

Open src/faq.md:



layout: faq.lax
title: Frequently Asked Questions
description: Clear answers on hiring a Roblox Lua developer.
section_kicker: Client Guide
section_title: Commissioning & Technical Questions
faqs:
  - id: '1'
    question: How do payments and milestones work?
    answer: Projects are broken into 2 to 4 clear milestones. We accept USD via Stripe or Wise.
  - id: '2'
    question: Do I get full ownership of the code?
    answer: Yes. Every line of custom code belongs 100% to you upon completion.
  - id: '3'
    question: How do you protect my game from exploiters?
    answer: All currency and inventory calculations stay server-authoritative.

The `id` Field

The id field is used to connect the accordion button to its panel. In the rendered HTML, the button has aria-controls="faq-panel-1" and the panel has id="faq-panel-1". If two items share the same id, the accordion will break. Always use unique values.

You can use numbers ('1', '2', '3') or slugs ('payments', 'ownership'). Numbers are simpler for beginners.

How the Accordion Works

The FAQ template renders each item as:

The JavaScript in public/js/script.js listens for clicks on .faq-trigger and toggles the hidden attribute on the corresponding panel. No additional configuration is needed.

Adding a New FAQ

1. Add a new item to the faqs array with a unique id

2. The template loops through all items automatically

3. No template changes needed

Removing an FAQ

Delete the entire item block from the faqs array. The template will render only the remaining items.

Next Step

FAQ is updated. The next guide covers editing your About page.