AstroAuthor is a blog-focused template built using Astro and Tailwind CSS, forked from the AstroWind template. It is designed to provide a rich authoring experience out of the box.
This template expands upon the base AstroWind template with several new features and enhancements focused on improving the content authoring experience and visual presentation. Key improvements include:
- Enhanced Markdown Authoring: Intuitive Markdown syntax for common formatting needs.
- Dynamic Image Controls: Control image dimensions and alignment directly from Markdown.
- Interactive Content Elements: Collapsible sections and spoiler tags for engaging content.
- Rich Link Previews: URLs automatically transformed into visually appealing link cards.
- Improved Content Navigation: Table of Contents (TOC) for longer articles.
- Sized and Aligned Inline Images:
- Syntax:
 - Benefit: Control inline image presentation without raw HTML.
- Syntax:
- Collapsible Content Blocks (
<details>):- Syntax:
:::details[Summary Title] Hidden content goes here. :::
- Benefit: Enhances content organization with animated transitions.
- Syntax:
- Spoiler Tags:
- Syntax:
||spoiler text||or:::spoiler Spoiler block :::
- Benefit: Hides sensitive content until hovered over.
- Syntax:
- Automatic Rich Link Previews (Link Cards):
- Syntax:
https://github.com/lightningbolt047/Android-Toolbox(on its own line) - Benefit: Improves visual presentation of external links, especially optimized for GitHub.
- Syntax:
- Image Grids:
- Syntax:
:::grid[Optional Grid Title]   :::
- Benefit: Structured display of multiple images with Fancybox gallery.
- Syntax:
- Table of Contents (TOC):
- Dynamic left-side navigation for blog posts.
- Inline Code Styling:
- Enhanced visual presentation for inline code snippets.
These features are implemented using a custom Astro Markdown processing pipeline with:
- Remark Plugins:
remark-directive,remark-link-card,remark-spoilers, and custom plugins (remarkSmartImages,remarkCustomDirectives). - Tailwind CSS: Styling for all new elements, with dynamic utility classes.
- Custom CSS & Components: Specific styling for inline code blocks and TOC.
Refer to changes.md for a comprehensive list of modifications and new functionalities.
This project is licensed under the GPL3 License - see the LICENSE.md file for details.
Feel free to fork this repository and submit pull requests. All contributions are welcome!