Replies: 61 comments 46 replies
|
How to make light/dark themes with Astro? |
This comment has been hidden.
This comment has been hidden.
|
How to implement a contact form in Astro |
|
How to implement search/filtering of structured content in Astro? (There could be one example using SSR, and one that builds a search index on the server and passes it to a framework component that does the searching/filtering live on the client) |
|
How to load data from MongoDB into Astro |
|
How to open and close a modal? I did one with Nanostores. I can possibly write one if you review the code and think my approach is good. |
|
How to allow user comments on my blog posts |
|
How to get Firebase and Firestore up and running for an Astro Project. |
|
How to use Material UI components (Emotion) with Astro |
This comment has been hidden.
This comment has been hidden.
This comment has been hidden.
This comment has been hidden.
|
|
|
Is there a way to render Jupyter notebooks with Astro? I have a .ipynb file, and I'd like to render it to HTML. |
|
Optimal Filter + List I have a list of items that I want to make filterable by putting an interactive filter above. How would I do this optimally? Generally I'd like to SSG this page and sent as little javascript to the client as possible |
|
An example of using Astro.cookies in combination with manipulating the cookies from a framework (e.g. React) component. |
|
Creating a global toggle I'll create a button for this website labeled "Zen Mode". When this button is clicked, I want to display an alternate rendering for the site, across all pages. I also want to store this state in a cookie. How should I approach this? Kapa spit out: |
|
import images as blob. Making an endpoint, and would like to return a Response. I have a folder with a list of icons. Is it possible to |
|
Global Fetch Headers How do I apply a bearer token to all my fetch requests globally? |
|
Cookie button How can I make a button that sets a cookie? Kapa AI spit out: In this example, when the button with the id setCookie is clicked, a cookie with the key |
|
Seed database I have a csv file that I would like to seed my Astro DB with. How to do this? |
|
Add data to nanostores with form action Hello, how can I add data to a nanostores atom from my frontmatter using form actions? Discord ai support thread here: https://discord.com/channels/830184174198718474/1248682440512241718 |
|
Deploy vercel: A function of my application downloads files from an S3 bucket and stores them in a temporary folder. It works locally but in production it gives me an error. Is there a possibility of creating this folder in production? |
|
Starlight supports a built-in theme switcher for users to decide using light or dark mode. If I have a picture that requires to be displayed differently in light/dark modes, how do I achieve this? From Chris: |
|
recipe for analyzing bundle size From the linked issue: When using client-side JavaScript libraries, it is important to keep track of how much they will increase the final js bundle size. Knowing this, we can optimize our page performance by potentially removing, or lazy-loading our client-side code. An official guide on how to analyze/visualize our page's js budle would be super helpful to do this. For reference, some other frameworks have guides on how to do this: |
|
Heads up - might I suggest: Check out our full guide to writing recipes. Happy Showcase Friday! Vive le Docs! |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
What’s cookin’ docs?
Use this discussion to share ideas for new “Recipes” that you’d like to see added to Docs. (Or recipes you’d like to write!)
What’s a recipe?
Recipes are step-by-step how-to guides for accomplishing a specific task in Astro. Check out our full guide to writing recipes.
How many recipes can I suggest?
As many as you want! If possible, use a separate post for each idea. This will let people vote for them one by one.
See a suggestion you like?
Upvote it so we know! ⬆️
All reactions