All Projects → bonartm → hugo-quiz

bonartm / hugo-quiz

Licence: MIT License
A custom hugo shortcode for interactive quizzes

Projects that are alternatives of or similar to hugo-quiz

quiz-app
Quiz for Desktop Application - Java case.
Stars: ✭ 26 (+4%)
Mutual labels:  quiz
discord-music-quizzer
Discord music quiz bot
Stars: ✭ 18 (-28%)
Mutual labels:  quiz
TheJSQuiz
Test your JavaScript skills with this interactive quiz!
Stars: ✭ 33 (+32%)
Mutual labels:  quiz
javascript-questions
❔ Multiple choice JS questions as PWA
Stars: ✭ 12 (-52%)
Mutual labels:  quiz
MLH-Quizzet
This is a smart Quiz Generator that generates a dynamic quiz from any uploaded text/PDF document using NLP. This can be used for self-analysis, question paper generation, and evaluation, thus reducing human effort.
Stars: ✭ 23 (-8%)
Mutual labels:  quiz
ng2-quiz
A general purpose quiz application developed in angular (updated to angular 8) that can be used for multiple purpose.
Stars: ✭ 90 (+260%)
Mutual labels:  quiz
firebase-android-quiz-app
An android quiz app for taking and creating mcq's based quizzes using firebase.
Stars: ✭ 84 (+236%)
Mutual labels:  quiz
Ritsu
A Discord Bot based on the AnimeMusicQuiz (AMQ) game, play using your MAL/Anilist animelist and with different game modes! ✨
Stars: ✭ 24 (-4%)
Mutual labels:  quiz
amc2moodle
amc2moodle, is an automatic tool to convert multiple choice quiz between auto-muliple-choice LaTeX format and moodle XML format.
Stars: ✭ 14 (-44%)
Mutual labels:  multiple-choice
basic-lms-laravel
Basic Laravel Learning Management System
Stars: ✭ 54 (+116%)
Mutual labels:  quiz
quizquickanswer-telegram-game-bot
🎮 Funny quiz game for telegram, play with friends on your group!
Stars: ✭ 15 (-40%)
Mutual labels:  quiz
sakubun
A tool that helps you improve your Japanese vocabulary and kanji skills with practice that's customized to your needs.
Stars: ✭ 20 (-20%)
Mutual labels:  quiz
hp-quiz
Harry Potter movies quiz. Experimenting with localStorage, SVG path animations and vue.observable
Stars: ✭ 42 (+68%)
Mutual labels:  quiz
HexBot
A Relatively Simply Awesome Discord bot with Music, Games, Comics, Memes and other cool features. This bot is made in Python 3.8 using discord.py
Stars: ✭ 109 (+336%)
Mutual labels:  quiz
Quizzie
Open Sourced Quiz Portal which can be used for any event / competition with a custom leaderboard.
Stars: ✭ 31 (+24%)
Mutual labels:  quiz
OpenTrivia
Multiplayer quiz game demo using React and Opentdb API
Stars: ✭ 47 (+88%)
Mutual labels:  multiple-choice
QuizKit
⁉️ A framework for developing local or remote quiz apps for iOS or tvOS
Stars: ✭ 28 (+12%)
Mutual labels:  quiz
edX-6.00.2x-Introduction-to-Computational-Thinking-and-Data-Science
MIT edX 6.00.2x Introduction to Computational Thinking and Data Science problem sets code
Stars: ✭ 62 (+148%)
Mutual labels:  quiz
django-schools
Django Quiz Application
Stars: ✭ 55 (+120%)
Mutual labels:  quiz
react-quiz-app
A Simple React Quiz App 💎
Stars: ✭ 37 (+48%)
Mutual labels:  quiz

hugo-quiz

build and deploy

A hugo shortcode for writing quizzes with a markdown-like syntax, called quizdown.

🚀 See the demo based on the hugo learn theme or try the interactive quizdown live editor.

  • supports markdown text formatting, images and syntax highlighting.
  • different quiz-types: single-choice, multiple-choice, sequence.
  • support for hints and explanations.
  • options for color theme, question shuffling, localization.
  • mobile friendly with touch support for all question types.

Installation

Quizdown is a javascript library which is developed in a separated project. hugo-quiz uses a simple shortcode to use quizdown with Hugo. For the library, you can either use a link to a CDN or download and link to the local quizdown.js file.

Hugo-learn theme

  1. To install and setup the library, copy the file demo/layouts/partials/custom-header.html into your local layouts/partials/ folder. This inserts the nescessary javascript code inside the head section of the hugo website.
  2. To install the shortcode, copy the content from demo/layouts/shortcodes/quizdown.html into your local layouts/shortcodes/ folder.
  3. Currently, the --minify flag of the hugo command causes issues with the raw quizdown-markdown code. Please remove the flag when building your website or use the following option in your config.toml:
[minify]
  disableHTML = true

Other themes (without a custom-header.html)

If your theme does not offer a custom-header.html you need to add the library (and the extensions you want to use) to the head section of your website:

<head>
    ...
  <script 
     src="https://cdn.jsdelivr.net/npm/quizdown@latest/public/build/quizdown.js">
  </script>
  <script 
      src="https://cdn.jsdelivr.net/npm/quizdown@latest/public/build/extensions/quizdownKatex.js">
  </script>
  <script 
      src="https://cdn.jsdelivr.net/npm/quizdown@latest/public/build/extensions/quizdownHighlight.js">
  </script>
  <script>quizdown.register(quizdownHighlight).register(quizdownKatex).init()</script> 
  ...

</head>

Usage (edit example in 🚀 quizdown editor)

Write quizzes in plain markdown in any of your files in the content directory:

# Hugo Quiz

{{< quizdown >}}

---
primary_color: orange
secondary_color: lightgray
text_color: black
shuffle_questions: false
---

## The sound of dog

---
shuffle_answers: false
---

What do dogs sound like?

> Some hint

- [ ] yes
- [ ] no
- [ ] `self.sound = "meow"`
- [x] wuff

## Put the [days](https://en.wikipedia.org/wiki/Day) in order!

> Monday is the *first* day of the week.

1. Monday
2. Tuesday
3. Wednesday
4. Friday
5. Saturday  
{{< /quizdown >}}

📚 Documentation

The quizzes are for fun and not for serious assessment. Since everything is rendered on the client side, the hints and solutions to the questions become visible once javascript is disabled in the browser.

Check out the documentation on the main project page. You might be interested in:

Demo

Tested with version 0.80.0 of Hugo and the Hugo Learn theme.

Visit https://bonartm.github.io/hugo-quiz/ for a live demo based on the hugo-learn theme. You can also view a local version of the demo.

First download the theme:

git submodule update --init --recursive

Then start the server:

cd demo
hugo server -D
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].