I’d like to externalize the markdown questions to separate .md files, maybe group them by subjects in the exam or keep it 1 file = 1 question (haven’t decided, but keeping all questions in 1 content file is not something I want to go with).
How should I approach this? I’ve seen that data files cannot be in markdown format
In the example below, subject and level are taxonomies:
+++
title = 'Question 1'
date = 2023-08-18T07:14:12-07:00
draft = false
subject = ['caches']
level = ['easy']
answer = 2
+++
Which of the following is true?
1. xxx
2. yyy
3. zzz
Then create a quiz template that builds a page collection based on whatever, then range through the questions. No shortcodes.
The front matter in each quiz.md can be used to control the page collection:
The context within each iteration of the outer loop is “question” page. Remove the inner loop.
Simple example:
git clone --single-branch -b hugo-forum-topic-45786 https://github.com/jmooring/hugo-testing hugo-forum-topic-45786
cd hugo-forum-topic-45786
hugo server
Wow that’s surprising I’d think that using the installation guide would get me the latest version
I’ve installed directly from the .deb package from Github releases and the branch from @jmooring works
I’ll take some time to understand it and apply it to my use-case