Files
aurora/README.md

64 lines
2.3 KiB
Markdown
Raw Normal View History

2023-05-18 17:32:19 +02:00
# aurora
2023-05-18 13:40:53 +02:00
2023-05-18 23:09:41 +02:00
## About
aurora is a minimal blog theme built with Astro, Svelte and plain CSS. It is focused on accessibility and usability.
All the interactiveness of the website is packed into three dropdowns that are located at the right of the top navigation bar. Every menu can be opened with a simple keyboard shortcut:
2023-05-18 23:31:29 +02:00
- Table of contents: **Shift + c**
- Search for an article: **Shift + s**
- Theme toggle: **Shift + t**
- Close menu: Escape (**Esc**)
2023-05-18 23:09:41 +02:00
The styles are simple, there are small improvements for some elements to keep everything consistent and responsive.
### Table of contents
Secondary headings (`<h2>`) are listed here, so each page is easy to navigate.
### Search
I wrote a simple algorithm for the search, and the matching works well. You can write the blog title words in any order, leave letters out, have multiple spaces between words, and more.
### Theme toggle
There are three websites themes: Light, Dark and System (inherits the theme of your browser or operating system).
2023-05-28 17:08:24 +02:00
## Make the theme yours
Replace the domain specified for the `site` property in the `astro.config.ts` file with your own domain:
2023-05-28 17:08:47 +02:00
```ts
2023-05-28 17:08:24 +02:00
site: "https://aurora.thilohohlt.com"
```
Change the `title` and `description` props in `index.astro` to match your website:
```html
<PageLayout title="aurora" description="Minimalistic blog theme built with Astro, focused on accessibility and usability.">
```
In the components `Head.astro` and `Footer.astro`, replace *Your Name* with your actual name:
```html
<meta name="author" content="Your Name" />
```
```html
<small>Copyright &copy; {currentDateYear} Your Name<br><a href="https://aurora.thilohohlt.com/">Astro aurora theme</a></small>
```
The about section on the main page can be modified by adjusting the markdown text in the file `src/content/about/about.md`:
```md
## About
aurora is a minimal blog theme built with Astro, Svelte and plain CSS. It is focused on accessibility and usability.
...
```
The cover image (the image people see embedded when you send a link to your website) can be changed by altering the file `public/cover.jpg`.
Blog articles are created using Astro content collections, images for individual blog posts are stored in `/src/assets/blog-post-name/image-name.jpg`. You can take a look at the example blog posts in this repository to see how it all works out.