Comments (5)
I'll also appreciate any code feedback anyone might have, with things changing so quickly with Astro, I think some things may already be outdated. I haven't looked closer, but from the Astro announcement post, looks like I probably need to remove the custom Shiki setup?
from astro.build.
Nice! I really like the way you structured the code for loading post data, very clean 👍
As far as Shiki goes, the main difference in 0.25
is just that Shiki is now the default
{
syntaxHighlight: 'shiki', // doesn't hurt anything, but this is no longer needed since Shiki is the default
shikiConfig: {
theme: 'poimandres',
langs: [], // I'm not 100% sure, but I think you should add "astro" here to make sure Shiki is including `.astro` formatting
wrap: false,
},
}
from astro.build.
Thanks @tony-sull!
I cleaned up the config and it looks like "astro" isn't necessary in langs - tried it out here: https://simple-blog-template.netlify.app/testing/
from astro.build.
it looks like "astro" isn't necessary in langs
Learned something new! 😄 It's included in the config for one of our starter examples so I just assumed it was required, glad to see it's enabled by default in an Astro project 🚀
from astro.build.
🥳
just assumed it was required
I remember it not working for me a while back, so probably Shiki changed at some point.
from astro.build.
Related Issues (20)
- Canvas crashes(?) on mobile. HOT 1
- Typo on Astro DB Homepage in Code Example HOT 1
- Inability to publish new templates on behalf of my organization (onWidget)
- Theme filtering seems to be broken
- Blog posts with broken links
- Broken links HOT 3
- [Visual bug] "Integrations" link text in header under "Resources" submenu breaks on new line HOT 2
- INTEGRATION: astro-page-insight
- Suggestions HOT 2
- Animation feedback for the new landing page
- INTEGRATION: astro-lenis
- INTEGRATION: astro-command-palette
- Blurry Wordpress logo icon HOT 3
- INTEGRATION: add astro-github-component icon
- INTEGRATION: @voxgig/podw-astro
- INTEGRATION: icon for @igor.dvlpr/astro-easynav-button HOT 1
- [GitHub OAuth Error on Astro Dev Portal] Unable to login to submit theme HOT 3
- INTEGRATION: @matthiesenxyz/astro-ghostcms
- INTEGRATION: `@inlang/paraglide-js-adapter-astro`
- Astro.build homepage surprisingly slow to scroll in Firefox once fully loaded HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from astro.build.