Skip to content
Snippets Groups Projects
Select Git revision
  • fbaa311ab5bb9158bd846bbd80cea9289b48b698
  • main default protected
  • add-tat-sample
  • 15-choses-a-faire-css
  • macao3-export
  • gitlab-ci-debug
  • 2-gitlab-deploy
  • 3-qcu-features
  • 1-navigation
  • test
10 results

head.html

Blame
  • Forked from MACAO / MACAO Hugo
    Source project has a limited visibility.
    head.html 1.04 KiB
    {{/* Included by the theme in the <head> tag */}}
    
    {{/* if a quiz.json exists in the page resources, load SurveyJS */}}
    {{ with .Resources.GetMatch "quiz.json" }}
    
        <link href="https://unpkg.com/survey-jquery/defaultV2.min.css" type="text/css" rel="stylesheet">
        <script defer type="text/javascript" src="https://unpkg.com/survey-jquery/survey.jquery.min.js"></script>
        <script defer type="text/javascript"
                src="https://unpkg.com/survey-core/themes/default-light-panelless.min.js"></script>
       <script src="https://cdn.jsdelivr.net/npm/markdown-it@14.1.0/dist/markdown-it.min.js"></script>
    
        {{- $quizjs := slice -}}
        {{- $quizjs = $quizjs | append (resources.Get "quiz.js") -}}
        {{- $quizjs = $quizjs | append (resources.Get "gapfill-select.js") -}}
        {{- $quizjs = $quizjs | append (resources.Get "gapfill-open.js") -}}
        {{- $quizjs = $quizjs | resources.Concat "quiz.bundle.js" -}}
        {{/*        {{- $quizjs = $quizjs | resources.Minify -}}*/}}
        <script type="module" src="{{- $quizjs.RelPermalink -}}"></script>
    {{ end }}