sfbrigade / sfcivictech-site-explorations

Explorations of how to build a new website for the SF Civic Tech organization
0 stars 4 forks source link

MD Project Page Exploration #18

Closed MarcosG119 closed 5 months ago

MarcosG119 commented 6 months ago

Linked to issue #11 .

Astro supports reading from markdowns locally and from external repositories. I've displayed an example of both in this pull request if you route to the projects page.

It seems there are two options. We can have project leaders edit the markdown from within the website repository which seems like it would provide for much cleaner code. You can find the test markdown in src/content/projects/test_project_1.md.

We can also get the project page markdown from there repository using the raw file link from github. A markdown was pulled from a random markdown I made to test using frontmatter from an external markdown. I also pulled the readme from Lifeline. This requires more packages and imports. However it is definitely possible. I pulled the lifeline readme from the sfbrigade repository as a test. The markdown pulled from github is from this repository.

If we want to pull the readme's from the last ten repositories active on sfbrigade automatically, I will work on that. For now though, we know we can definitely pull markdowns into astro.