An implementation of Astro that is built from my Obsidian notes.
|
All checks were successful
Deploy to Azure Static Web Apps / deploy (push) Successful in 2m17s
|
||
|---|---|---|
| .forgejo/workflows | ||
| .github | ||
| .vscode | ||
| public | ||
| src | ||
| .gitignore | ||
| .gitmodules | ||
| astro.config.mjs | ||
| package-lock.json | ||
| package.json | ||
| README.md | ||
| tsconfig.json | ||
TheAether-Astro
An implementation of Astro that is built from my Obsidian notes.
Overview
- Obsidian vaults are loaded in
/src/data
Collections
Multiple distinct collections are defined in /src/content.config.ts, one for each location of my Obsidian vaults that I want to load as independent data types.
- Blog
- These are traditional blog posts that are loaded with all required frontmatter like titles, modifictation timestamps, sources and tags.
- Maps
- My mermaid homelab map is loaded as an independent collection for ease.
- Home
- independent pages about my homelab and the root of the site whcih are loaded as specific
.astropages.
- independent pages about my homelab and the root of the site whcih are loaded as specific
- Wiki
- The bulk of my documentation that is served in a custom dynamic folder heirarchy for viewing.
Docs
Basic pages are defined in /src/content/docs
- Blog
/blogloads the/src/components/blogList.astrocomponent to display a list of all blog posts
- Tags
/tagsloads the/src/components/tagsList.astrocomponent to display a list of all tags
- Wiki
/wikiloads the/src/components/wikiList.astrocomponent to display a list of all wiki articles
Pages
Dynamic pages are defined in /src/pages
- Blog
/blog/idis a dynamic page that will load any blog post by its ID
- Tags
/blog/idis a dynamic page that will show you all pages that have a given tag
- Wiki
/wiki/idis a dynamic page that will show you all pages in the wiki collection by ID- This uses
/src/components/customPageTitleto load in the description frontmatter attribute of a wiki article into the header. - A filter is used on this to only pull in pages that have
publish: yesin their frontmatter.
- Homelab
- Statically render my homelab page
- Index
- Statically render the root of the site
- Map
- Render my mermaid homelab map on the client side
Utilities
Custom functions are defined in /src/utils
- rewriteWikiLinks
- Rewrite links pointing to the wiki "20 IT" to /wiki"
- wikiSidebar
- A custom function to dynamically generate the contents of the Wiki collection into the Astro sidebar