The official website and blog for Aurelia (aurelia.io), built with Hugo.
-
Prerequisites
- Hugo Extended (v0.110.0 or later)
- Node.js (v16 or later)
- npm (v8 or later)
-
Installation
# Clone the repository git clone https://github.com/aurelia/website.git cd website # Install dependencies npm install
-
Development
# Start the development server hugo server -D
Visit http://localhost:1313 to see the site.
website/
├── content/ # Site content
│ ├── blog/ # Blog posts organized by date
│ │ └── YYYY/ # Year folders
│ │ └── M/ # Month folders
│ │ └── D/# Day folders
│ ├── _index.md # Homepage content
│ ├── faq.md # FAQ page
│ ├── sponsor.md # Sponsor page
│ └── roadmap.md # Roadmap page
│
├── themes/
│ └── aurelia-theme/# Custom Aurelia theme
│ ├── assets/ # Theme assets (CSS, JS)
│ ├── data/ # Theme data files
│ └── layouts/ # Theme templates
│
└── static/ # Static files
Create new blog posts in content/blog/YYYY/M/D/
with this frontmatter:
+++
title = "Post Title"
author = "Author Name"
author_url = "https://example.com" # Optional
description = "Post description"
date = 2024-01-01T10:00:00Z
lastmod = 2024-01-01T10:00:00Z
draft = false
+++
Post content goes here...
Edit themes/aurelia-theme/data/header.yaml
to modify the navigation:
menu:
- name: "Home"
link: "/"
- name: "Docs"
dropdown: true
sections:
- title: "Current"
items:
- name: "Aurelia 2 Docs"
link: "https://docs.aurelia.io"
Edit themes/aurelia-theme/data/footer.yaml
to update footer links:
footer:
links:
- name: "GitHub"
link: "https://github.com/aurelia"
- name: "Twitter"
link: "https://twitter.com/aureliaeffect"
-
Start the Hugo server:
hugo server -D
-
Make changes to content or theme files
-
Hugo will automatically reload your browser
hugo
The site will be generated in the public/
directory.
- Fork the repository
- Create your feature branch (
git checkout -b feature/AmazingFeature
) - Commit your changes (
git commit -m 'Add some AmazingFeature'
) - Push to the branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
- Code: Licensed under the MIT License
- Content: Licensed under CC0