Markdown Types with Portfolio Template #1451
iceColdChris
started this conversation in
Ideas
Replies: 1 comment
-
Hey @iceColdChris! Thanks for this, and we were all just discussing this Portfolio template yesterday! The best place to get help with this is in our Discord, as these discussions are mostly for figuring out what to document or ideas about imrpoving our docs site. If you hop into https://astro.build/chat and ask in our dedicated support-threads channel then people will be looking for, and expecting to answer questions and give advice there! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey All,
I have been trying to migrate the Portfolio template over to using Typescript and TSX files, using the Typescript Documentation for guidance. Everything was going smoothly until I hit the files that loaded in the Markdown, I did read the section on importing markdown and have created my own type for the frontmatter variable that the portfolio uses.
I have the following types
and have edited the PortfolioPreview component like so
I even went ahead and edited the respective
Astro.glob
calls to the followingindex.astro
projects.astro
When I run the build using the suggested build command in the typescript docs I am met with the following error
Any Tips would be appreciated!
Thanks
Beta Was this translation helpful? Give feedback.
All reactions