Skip to content
Snippets Groups Projects
Commit 37c08da8 authored by Eliott Sammier's avatar Eliott Sammier
Browse files

Merge branch '1-navigation'

parents 9decbbba f905a653
No related branches found
No related tags found
No related merge requests found
Showing with 123 additions and 180 deletions
[submodule "macao/themes/hugo-pure"] [submodule "macao/themes/hugo-pure"]
path = macao/themes/hugo-pure path = macao/themes/hugo-pure
url = https://github.com/undus5/hugo-pure url = https://github.com/undus5/hugo-pure
[submodule "macao/themes/hugo-book"]
path = macao/themes/hugo-book
url = https://github.com/alex-shpak/hugo-book
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
Expérimentation avec le *static site generator* [Hugo](https://gohugo.io/) pour Macao-New Expérimentation avec le *static site generator* [Hugo](https://gohugo.io/) pour Macao-New
# Setup # Setup
- [Installer Hugo](https://gohugo.io/installation/) - [Installer Hugo](https://gohugo.io/installation/) **(version 0.124 minimum)**
- `git clone gitlab@gitlab.tetras-libre.fr:macao/macao-hugo.git` - `git clone gitlab@gitlab.tetras-libre.fr:macao/macao-hugo.git`
- `cd macao-hugo/macao` - `cd macao-hugo/macao`
......
public/ public/
resources/_gen/
.hugo_build.lock .hugo_build.lock
# Activity content is generated by the Macao-Legacy converter, will be added to Git when final
content/activities/*
function showCorrectIndic(correct) { function showCorrectIndic(correct) {
indic = document.getElementById("correct-indic"); let indic = document.getElementById("correct-indic");
if (correct === undefined) { if (correct === undefined) {
indic.innerText = ""; indic.innerText = "";
} else if (correct) { } else if (correct) {
......
+++
title = "Ecoutez et complétez (2)"
+++
Ecoutez maintenant les extraits sonores en cliquant sur les flèches et sélectionnez la bonne réponse dans les listes déroulantes.
{{% quiz %}}
\ No newline at end of file
{
"elements": [
{
"type": "gapfill-select",
"name": "pg20",
"title": "pg20",
"segments": [
"So, ",
[
"mother",
"my mother",
"our mother"
],
" told us we were not to pick ",
[
"the apples",
"apples",
"an apple"
],
". My mother said, 'It’s naughty to pick the apples when they are growing upon ",
[
"a tree",
"the tree",
"tree"
],
", because we want them to go on growing until they are ripe and rosy, and then we shall pick them and put them quite away ",
[
"for",
"for a",
"for the"
],
" winter-time'."
],
"correctAnswer": [
"my mother",
"the apples",
"the tree",
"for the"
]
}
]
}
\ No newline at end of file
+++
title = "L'auxiliaire MUST (1)"
+++
[Change page](../861)
<div id=\"STY_question\" class=\"STY_question\" style=\" \"><p align=\"\"><br>Ecoutez chacun de ces deux énoncés en
cliquant sur la flèche.<br><br>
</p><table class=\"STY_tableau\" width=\"300\" cellpadding=\"3\" cellspacing=\"0\" valign=\"top\" border=\"0\">
<tr>
<td>
<audio/>
</td>
<td valign=\"top\">We must leave at once.</td>
</tr>
<tr>
<td valign=\"top\">
<script type=\"text/javascript\">ajDocW(PF_clipAV('clipAV7', 'e29_macao1_2a2.swf', '18', '18', 'false', 'Flash', 'false', '', 'Quality:high;wmode:transparent', ''));</script>
</td>
<td valign=\"top\">You must be joking.</td>
</tr>
</table>
<p align=\"\">Dans ces énoncés, l'auxiliaire MUST est-il prononcé de façon identique ?<br></p></div>
{{% quiz %}}
\ No newline at end of file
{
"elements": [
{
"name": "FirstName",
"title": "Enter your first question:",
"type": "radiogroup",
"choices": [
"l'auxiliaire MUST est prononcé de façon identique.",
"l'auxiliaire MUST n'est pas prononcé de façon identique."
],
"correctAnswer": "l'auxiliaire MUST est prononcé de façon identique."
}
]
}
\ No newline at end of file
+++
title = "Repérer les syllabes orales"
+++
[Change page](../381)
En cliquant sur la flèche, combien de [syllabes]() entendez-vous pour chacun des 3 mots ci-dessous ?
Pour chaque mot, écouter et sélectionnez 1, 2, 3, 4 ou 5 selon le nombre de syllabes entendues.
{{% quiz %}}
\ No newline at end of file
{
"elements": [
{
"type": "matrix",
"name": "question1",
"title": "Nombre de syllabes",
"hideNumber": true,
"columns": [
{
"value": 1,
"text": "1"
},
{
"value": 2,
"text": "2"
},
{
"value": 3,
"text": "3"
},
{
"value": 4,
"text": "4"
},
{
"value": 5,
"text": "5"
}
],
"rows": [
{
"text": "every3"
},
{
"text": "interresting1"
},
{
"text": "dangerous1"
}
],
"correctAnswer": {
"every3": 2,
"interresting1": 3,
"dangerous1": 2
}
}
]
}
\ No newline at end of file
baseURL = 'http://example.org/' baseURL = 'http://example.org/'
languageCode = 'fr-fr' languageCode = 'fr-fr'
title = 'Macao-Hugo' title = 'Macao-Hugo'
theme = 'hugo-pure' theme = 'hugo-book'
#minify = true
[markup.goldmark.renderer] [markup.goldmark.renderer]
# Unsafe mode allows arbitrary HTML in Markdown, useful for testing with raw blocks extracted from Macao-Legacy
unsafe = true unsafe = true
# Hugo-Book theme config ###############################################################################################
enableGitInfo = true
[markup.tableOfContents]
startLevel = 1
[menu]
[[menu.after]]
name = "➡ GitLab"
url = "https://gitlab.tetras-libre.fr/macao/macao-hugo"
weight = 10
[params]
# (Optional, default light) Sets color theme: light, dark or auto.
# Theme 'auto' switches between dark and light modes based on browser/os preferences
BookTheme = 'auto'
# (Optional, default true) Controls table of contents visibility on right side of pages.
# Start and end levels can be controlled with markup.tableOfContents setting.
# You can also specify this parameter per page in front matter.
BookToC = false
# (Optional, default favicon.png) Set the path to a favicon file.
# If the favicon is /static/favicon.png then the path would be favicon.png
# BookFavicon = 'favicon.png'
# (Optional, default none) Set the path to a logo for the book.
# If the logo is /static/logo.png then the path would be logo.png
# BookLogo = 'logo.png'
# (Optional, default docs) Specify root page to render child pages as menu.
# Page is resoled by .GetPage function: https://gohugo.io/functions/getpage/
# For backward compatibility you can set '*' to render all sections to menu. Acts same as '/'
BookSection = 'activities'
# Set source repository location.
# Used for 'Last Modified' and 'Edit this page' links.
BookRepo = 'https://gitlab.tetras-libre.fr/macao/macao-hugo'
# (Optional, default 'commit') Specifies commit portion of the link to the page's last modified
# commit hash for 'doc' page type.
# Requires 'BookRepo' param.
# Value used to construct a URL consisting of BookRepo/BookCommitPath/<commit-hash>
# Github uses 'commit', Bitbucket uses 'commits'
BookCommitPath = 'commit'
# Enable "Edit this page" links for 'doc' page type.
# Disabled by default. Uncomment to enable. Requires 'BookRepo' param.
# Edit path must point to root directory of repo.
BookEditPath = 'tree/main/macao'
# Configure the date format used on the pages
# - In git information
# - In blog posts
BookDateFormat = 'January 2, 2006'
# (Optional, default true) Enables search function with flexsearch,
# Index is built on fly, therefore it might slowdown your website.
# Configuration for indexing can be adjusted in i18n folder per language.
BookSearch = true
# (Optional, default true) Enables comments template on pages
# By default partals/docs/comments.html includes Disqus template
# See https://gohugo.io/content-management/comments/#configure-disqus
# Can be overwritten by same param in page frontmatter
BookComments = false
# /!\ This is an experimental feature, might be removed or changed at any time
# (Optional, experimental, default false) Enables portable links and link checks in markdown pages.
# Portable links meant to work with text editors and let you write markdown without {{< relref >}} shortcode
# Theme will print warning if page referenced in markdown does not exists.
BookPortableLinks = false
# /!\ This is an experimental feature, might be removed or changed at any time
# (Optional, experimental, default false) Enables service worker that caches visited pages and resources for offline use.
BookServiceWorker = true
# /!\ This is an experimental feature, might be removed or changed at any time
# (Optional, experimental, default false) Enables a drop-down menu for translations only if a translation is present.
BookTranslatedOnly = false
<!-- -->
\ No newline at end of file
{{/* Included by the theme in the <head> tag */}}
{{/* Get CSS as resource and minify */}}
{{- $css := resources.Get "style.css" | resources.Minify }}
<link rel="stylesheet" href="{{- $css.RelPermalink -}}">
{{/* if a quiz.json exists in the page resources, load SurveyJS */}}
{{ with .Resources.GetMatch "quiz.json" }}
<script defer type="text/javascript"
src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<link href="https://unpkg.com/survey-jquery/defaultV2.min.css" type="text/css" rel="stylesheet">
<script defer type="text/javascript" src="/survey.jquery.min.js"></script>
<script defer type="text/javascript"
src="https://unpkg.com/survey-core/themes/default-light-panelless.min.js"></script>
{{- $quizjs := slice -}}
{{- $quizjs = $quizjs | append (resources.Get "quiz.js") -}}
{{- $quizjs = $quizjs | append (resources.Get "gapfill-select.js") -}}
{{- $quizjs = $quizjs | resources.Concat "quiz.bundle.js" -}}
{{/* {{- $quizjs = $quizjs | resources.Minify -}}*/}}
<script type="module" src="{{- $quizjs.RelPermalink -}}"></script>
{{ end }}
{{/* Included by the theme in the <head> tag */}}
{{ define "css" }}
{{/* Get CSS as resource and minify */}}
{{- $css := resources.Get "style.css" | resources.Minify }}
<link rel="stylesheet" href="{{- $css.RelPermalink -}}">
{{/* if a quiz.json exists in the page resources, load SurveyJS */}}
{{ with .Resources.GetMatch "quiz.json" }}
<script defer type="text/javascript"
src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<link href="https://unpkg.com/survey-jquery/defaultV2.min.css" type="text/css" rel="stylesheet">
<script defer type="text/javascript" src="/survey.jquery.min.js"></script>
<script defer type="text/javascript"
src="https://unpkg.com/survey-core/themes/default-light-panelless.min.js"></script>
{{- $quizjs := slice -}}
{{- $quizjs = $quizjs | append (resources.Get "quiz.js") -}}
{{- $quizjs = $quizjs | append (resources.Get "gapfill-select.js") -}}
{{- $quizjs = $quizjs | resources.Concat "quiz.bundle.js" -}}
{{/* {{- $quizjs = $quizjs | resources.Minify -}}*/}}
<script type="module" src="{{- $quizjs.RelPermalink -}}"></script>
{{ end }}
{{ end }}
Subproject commit 7c26d9b8b731d556a2bf89848f59e8300eabc44b
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment