Coder Social home page Coder Social logo

hugo-quiz's People

Contributors

bonartm avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

hugo-quiz's Issues

install

hi there, one thing I do not get. From where should I install (and to where) the "quizdown.js". Cannot find it. Or can't I see it. Or am I to stupid - it is already quick later here.

CDN issue

Hello,

I successfully integrated 'hugo-quiz' into my website. However, I encountered an issue I'd like to address. Despite using Hugo without minification for the quiz-specific pages, I faced corruption problems in the production environment due to the CDN (CloudFlare).

I resolved this by configuring CloudFlare "Page Rules" to disable "Performance" for these pages.

However, I believe it would be more effective if this issue could be resolved on your end. Perhaps allowing the option to pass a JSON array with the questions instead of relying on Markdown could be a viable solution.

Statistics

Hello
Thanks for hugo and js scrips. Pretty cool !

Do you have any idea about a special needs:
I would like to do not display the scores to the candidate or any people.
The teacher or "admin" are only the person authorized to display the scores. It should be by sent mail ou just a thru a web page.

Thanks for your ideas !
Cheers

Error building site

Hello,
Thanks for hugo quiz.
first of all, I want to say that I am a beginner and I have perhaps missed something. I also want to state that I am not able to determine whether my problem is due to hugo-quiz or blogdown.

I have tried to install hugo-quiz using blogdown (from Rstudio team).
Here are the steps that I have followed:
Firstly, create blogdown with the hugo-theme-learn
This step works.
Secondly Try to modify some content
I have created new md files, and Rmarkdown files.
This step works.
Thirdly
I have added the custom-header.html file in the directory ./layouts/partials/custom-header.html
and the "quidown.html" file in the ./layouts/shortcodes
I run the local server. It works.
Fourthly
I add a markdown file with a quiz in the directory :
./content/basics/Statistiques/Quizz
I first added the file while the local server was on. I could have a quiz.
However, when I stopped the server and try to serve anew the site, it does not work anymore and I receive an error message instead.

".\content\basics\Statistiques\Quizz\index.md:1:1": unable to process menus for page "basics\\Statistiques\\Quizz\\index.md": invalid character 's' looking for beginning of value
Rebuild failed:

Logged 1 error(s)

I have tried several things :

  • delete the Quizz directory, serve site . Without the Quizz directory, the site works.
  • Add the directory 'Quizz' when the local server is off and serve site afteward, it does not work.
  • delete the Quizz directory, serve site, add the directory "Quizz" in the content directory, sometimes it works, sometimes it does not (and I cannot figure out why)

The file name is "index.md"

The content of the file is exactly:

---
title: "quizz test"
author: "NS"
date: "27/05/2022"
categories: ["R"]
tags: ["R Markdown", "Introduction", "Généralités"]
draft: false
images: []
menu:
  docs:
  parent: "statistiques"
weight: 100     
---
 

# 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 >}}

Back function

I would like to see a "Back" button starting with question 2 in a quiz - in case you realize that you've made a mistake in a previous answer.

Multi-answer issue

Dear valuable contributor,

I am creating the quiz for my site. The only issue is we could not support multi-answer for the question (can choose multiple answer for one question). Can you please help to update and share it with many many thanks?

Regards,
Viet

Cannot run local demo

(Sorry for my ignorance, this is the first time I hear of hugo, so I might be missing something totally obvious)

With current master when I:

cd demo
hugo server -D

the server starts, but serves an empty page:

$ wget -qO- "http://localhost:1313/hugo-quiz/"
<pre>
</pre>

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.