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/aurelia.github.io.git cd aurelia.github.io # Install dependencies npm install
-
Development
# Start the development server hugo server -D
Visit http://localhost:1313 to see the site.
aurelia.github.io/
├── 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
toc = true # Enables in-page navigation
+++
Post content goes here...
The theme supports automatic embedding of various external content. Simply paste the URLs in your markdown:
# Code Playgrounds
https://dumber.gist.com/your-gist-id
https://stackblitz.com/edit/your-project
https://codepen.io/username/pen/pen-id
# Videos
https://www.youtube.com/watch?v=video-id
# Package Information
https://www.npmjs.com/package/package-name
# GitHub
https://github.com/username/repo
Add toc = true
to your page's frontmatter to enable an in-page navigation sidebar that automatically generates a table of contents from your page's headings.
+++
title = "Page Title"
toc = true
+++
The table of contents will appear as a floating sidebar on desktop and can be toggled on mobile devices.
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