Discussion
Loading...

Post

  • About
  • Code of conduct
  • Privacy
  • Users
  • Instances
  • About Bonfire
Micah Ilbery :sloth_coffee:
@micahilbery@slothsneed.coffee  ·  activity timestamp 3 months ago

If I want to write a site with vanilla #HTML / #CSS / #JS using #Astro as my #SSG are there any doc sources, projects, general setups, or tips I should know / look to for good reference? Seems like most of the things I see are about incorporating all the various frameworks that I have no interest in. I want to build a fairly simple blog and personal site. With minimal client side js. But I also want the benefits of an SSG especially when it comes to writing blog posts. Do you use or have you used Astro for a similar workflow? How do you like to set everything up?

  • Copy link
  • Flag this post
  • Block
Thib
@thibaultamartin@mamot.fr replied  ·  activity timestamp 3 months ago
@micahilbery I use it with great joy on ergaster.org

Astro is fairly straightforward, I would only recommend

- Make use of content collections
Make use of the Image component to get responsive images for free
- Install the rss extension and configure it to use full post content
- Install the site map extension
- Defining the Props interface can go a long way
- Use pnpm astro check (in a CI?) to catch mistakes

  • Copy link
  • Flag this comment
  • Block
Log in

bonfire.cafe

A space for Bonfire maintainers and contributors to communicate

bonfire.cafe: About · Code of conduct · Privacy · Users · Instances
Bonfire social · 1.0.0-rc.2.21 no JS en
Automatic federation enabled
  • Explore
  • About
  • Members
  • Code of Conduct
Home
Login