CodeYourFuture / CodeYourFuture/curriculum

Feature: Data folder as data source

Open
#1,000 0 comments 0 reactions 0 assignees View on GitHub
hacktoberfest help wanted Hugo lore
Dominant language
HTML
Stars
76
Forks
135
Avg merge
1d 3h
Merged PRs (30d)
20

Description

We are missing a useful source: Hugo data folder!

If we had a /data source, we could have a prebuild cache if we wanted one, for things like issues and readmes. I realise at some point we are essentially reinventing the database, so let's be minimal on this!

Things to consider:

1. Do we want to be data first or remote first for source?
1. ???

I would probably start by defining some folders in /data that match the block types and sources, like /github/readme github/issues /local . Then I would update the api value in blockData scratch.

Relevant chunk of code https://github.com/CodeYourFuture/curriculum/tree/main/common-theme/layouts/partials/block
https://common.codeyourfuture.io/common-theme/block-types/

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.