Deploying with exampleSite
The PKB-theme includes an exampleSite
directory that serves as both a demo and a template for your own site.
Quick Start
Copy exampleSite Contents
cp -r themes/PKB-theme/exampleSite/* .
Update Configuration Edit
config.toml
:baseURL = "https://your-username.github.io/your-site/" title = "Your Site Title" theme = "PKB-theme"
Customize Content
- Modify content in
content/
directory - Update images in
static/
directory - Adjust layouts in
layouts/
if needed
- Modify content in
Directory Structure
The exampleSite provides a complete structure:
exampleSite/
├── config.toml # Site configuration
├── content/ # Your content
│ ├── docs/ # Documentation pages
│ └── posts/ # Blog posts
├── static/ # Static assets
└── layouts/ # Custom layouts (optional)
Configuration Reference
Key settings in config.toml
:
[params]
# Site features
enableSearch = true
enableDarkMode = true
# Navigation
enableBreadcrumb = true
enableToc = true
# Footer
showFooter = true
showCopyright = true
Next Steps
After copying exampleSite:
- Replace example content with your own
- Update site metadata and configuration
- Test locally using
hugo server
- Deploy to your hosting platform
For more details on customization, see the theme configuration guide.