This guide will help you edit and manage content for the Better Local Government website using GitHub's web interface, without needing to install any software or use command-line tools.
- Getting Started
- Understanding the Content Structure
- Editing Content Files
- Adding New Services
- Adding Government Department Pages
- Markdown Formatting Guide
- Best Practices
- Troubleshooting
- A GitHub account (free)
- Access to the project repository
- Basic computer skills (typing, copy/paste, saving files)
- Git software
- Command line knowledge
- Programming experience
- Any special software installation
The website content is organized in two main sections under the content folder at the root level of the repository (not inside the src folder):
content/
├── government/
│ └── departments/ # Executive, legislative, and other department pages
└── services/
├── agriculture-fisheries/
├── business/
├── disaster-preparedness/
├── education/
├── environment/
├── garbage-waste-disposal/
├── health-services/
├── housing-land-use/
├── infrastructure-public-works/
└── social-welfare/
- Index Files (
index.yaml) — List all the pages in a category - Content Files (
.mdfiles) — The actual page content written in Markdown - Data Files (
.jsonfiles) — Optional companion files that supply dynamic values (names, titles, dates) into the matching.mdfile using{PLACEHOLDER}tokens
- Go to the GitHub repository in your web browser
- Click on the
contentfolder (at the root level) - Click on
servicesfor service pages, orgovernmentfor department/office pages - Choose the category folder (e.g.,
educationordepartments) - Click on the file you want to edit (e.g.,
apply-for-local-scholarships.mdorexecutive.md)
- Click the pencil icon (✏️) in the top-right corner of the file view
- Make your changes in the text editor
- Scroll down to the bottom of the page
- In the "Commit changes" section at the bottom:
- Commit message: Write a brief description of what you changed
- Example: "Updated scholarship application requirements"
- Click "Commit changes" button
- The page will refresh and show your updated content
- You can see the changes in the file history
- Navigate to the category folder (e.g.,
education) - Click "Add file" → "Create new file"
- Name the file using this format:
your-service-name.md- Use lowercase letters and hyphens
- Example:
apply-for-summer-job-programs.md
- Add your content using the markdown format (see formatting guide below)
- Click "Commit new file"
- Go back to the category folder
- Click on
index.yaml - Click the pencil icon to edit
- Add your new service to the list:
pages:
- name: 'Your Service Name'
slug: 'your-service-name'
description: 'Brief description of the service.'- Save the changes
- Go to
content/services/ - Click "Add file" → "Create new file"
- Name it:
your-category-name/index.yaml - Add the basic structure:
# Your Category Name Pages
# This file contains all the pages/services available under the Your Category Name category
pages:
- name: 'Your First Service'
slug: 'your-first-service'
description: 'Description of your first service.'Follow the same process as Method 1 to add individual service files.
Government department pages live under content/government/ and follow the same two-file pattern as services.
- Navigate to
content/government/departments/ - Click on the department file you want to edit (e.g.,
executive.md) - Click the pencil icon, make your changes, and commit
- Navigate to
content/government/departments/ - Click "Add file" → "Create new file"
- Name the file:
your-department-name.md - Add your content following the department page template (see Content Guide)
- Click "Commit new file"
- Go back to
content/government/departments/ - Click on
index.yaml - Click the pencil icon to edit
- Add your new department to the list:
pages:
- name: 'Your Department Name'
slug: 'your-department-name'
description: 'Brief description of the department.'- Save the changes
Department pages support {PLACEHOLDER} tokens that are automatically replaced with values from a companion JSON file of the same name. For example, executive.md can reference {MAYOR} and {GOVERNMENT_NAME}, which are defined in executive.json:
{
"GOVERNMENT_NAME": "Lapu Lapu City",
"MAYOR": "Ma. Cynthia K. Chan",
"MAYOR_HE_SHE": "she",
"HONORIFIC_TITLE": "Honorable",
"VICE_MAYOR": "Celedonio B. Sitoy",
"VICE_MAYOR_HE_SHE": "he",
"YEAR_ELECTED": "2022"
}To update official names or titles, edit only the JSON file — the markdown content updates automatically. If no JSON file exists, placeholders fall back to environment variables (VITE_MAYOR, etc.) or are left as-is.
Note: Adding a brand-new government category (e.g., a section alongside
departments) requires a developer to register it insrc/data/government.yamlandsrc/data/yamlLoader.ts.
Markdown is a simple way to format text. Here are the most common formatting options:
# Main Title (largest)
## Section Title
### Subsection Title
#### Smaller Title**Bold text**
_Italic text_
`Code or special terms`- Bullet point 1
- Bullet point 2
- Sub-bullet point
1. Numbered list item 1
2. Numbered list item 2[Link text](https://example.com)| Column 1 | Column 2 | Column 3 |
| ------------ | ------------ | ------------ |
| Row 1, Col 1 | Row 1, Col 2 | Row 1, Col 3 |
| Row 2, Col 1 | Row 2, Col 2 | Row 2, Col 3 |---> This is a quote or important note-
Use Clear, Simple Language
- Write for the general public
- Avoid technical jargon
- Use short sentences and paragraphs
-
Be Specific and Helpful
- Include exact steps to follow
- Mention required documents
- Provide contact information when possible
-
Include Practical Information
- Office hours
- Required documents
- Processing time
- Fees (if any)
- Contact details
When creating services, use this pattern for titles and descriptions to make them more citizen-friendly:
[Action verb] + [service/benefit] + [who/where/why if needed]
- Start with an action verb: Get, Access, Go, Join, Apply, Secure, Take, Receive
- Keep it short and simple: usually 5–10 words
- Citizen-focused: written in "you" language, no jargon
- Outcome-based: highlights the benefit or purpose of the service
- Apply for a Health Card for work or study
- Secure a Sanitary Permit for your business
- Take a free rabies vaccination after an animal bite
- Get free family planning counseling and services
- Receive free TB testing and medicines
- Access educational support programs from the LGU
- Join health programs for nutrition and dengue control
- Go to the local hospital for treatment or confinement
❌ "Health Card Application Process" (too technical)
❌ "Sanitary Permit Requirements" (not action-oriented)
❌ "LGU Educational Support Services" (jargon-heavy)
✅ "Apply for a Health Card for work or study"
✅ "Secure a Sanitary Permit for your business"
✅ "Access educational support programs from the LGU"
-
Use Descriptive File Names
apply-for-local-scholarships.md✅scholarship.md❌
-
Keep Descriptions Short
- Index file descriptions should be 1-2 sentences
- Focus on what the service does
-
Maintain Consistency
- Use the same format for similar services
- Follow the existing structure
# Service Name — Location
Brief introduction explaining what this service is for.
---
## What You Need to Know
Key information about the service.
## Requirements
- List of required documents
- Eligibility criteria
- Any prerequisites
## How to Apply
### Step 1: Prepare Documents
- List required documents
### Step 2: Submit Application
- Where to go
- What to bring
- Processing time
### Step 3: Follow Up
- How to check status
- What happens next
## Important Notes
- Any special considerations
- Deadlines
- Contact information
## Related Services
- Links to other relevant services- For service pages:
content/services/[category]/ - For government/department pages:
content/government/[category]/ - Check if the file exists by looking at the folder contents
- Remember: the
contentfolder is at the root level of the repository, not insidesrc
- Make sure you clicked "Commit changes" after editing
- Check that you're looking at the right file
- Wait a few minutes for changes to appear on the live site
- Go to the file you edited
- Click on "History" (clock icon)
- Find the version before your changes
- Click "Revert" to undo
- Make sure you have permission to edit the repository
- Check that you're in the right folder
- Try refreshing the page and starting over
- Check that you're using the correct markdown syntax
- Make sure there are no extra spaces or characters
- Compare with existing files that work correctly
If you're still having trouble:
- Check existing files for examples
- Look at similar files to see how they're formatted
- Copy the structure of working files
- Ask for help
- Contact the project administrator
- Ask a colleague who has used GitHub before
- Start small
- Make small changes first to get comfortable
- Practice with less important content before editing critical information
#= Large header##= Medium header**text**= Bold*text*= Italic- item= Bullet point[link](url)= Link---= Horizontal line
- Use lowercase letters
- Use hyphens instead of spaces
- Be descriptive but concise
- Match the slug in the index file
- Education services:
content/services/education/ - Health services:
content/services/health-services/ - Business services:
content/services/business/ - Government departments:
content/government/departments/
Note: The content folder is located at the root level of the repository, not inside the src folder.
This guide is designed to help non-technical users manage content effectively. If you need additional help or have suggestions for improving this guide, please contact the project administrator.