From 5044d8e7ff8173c5ab28cc7289f1e3550e281c01 Mon Sep 17 00:00:00 2001 From: dashdashzako Date: Tue, 19 Nov 2019 11:26:34 +0100 Subject: [PATCH] Add default layouts, update site index --- config.toml | 2 +- content/course/_index.md | 3 + data/index.yml | 28 ++ layouts/_default/baseof.html | 51 +++ layouts/course/section.html | 25 ++ layouts/course/single.fun.html | 21 +- layouts/course/single.html | 99 +++--- layouts/course/single.json.json | 1 - layouts/index.html | 57 ++- layouts/partials/footer.html | 7 + layouts/partials/matomo.html | 12 - layouts/partials/prev-next.html | 23 ++ layouts/partials/topbar.html | 5 + static/css/aiana.css | 1 + static/css/index.css | 325 ++++++++++++++++++ static/img/logo-aiana.png | Bin 0 -> 11563 bytes static/img/sponsors/logo-cnrs.svg | 52 +++ static/img/sponsors/logo-equipe-potioc.png | Bin 0 -> 10055 bytes static/img/sponsors/logo-inria.png | Bin 0 -> 9504 bytes .../sponsors/logo-universite-de-bordeaux.jpg | Bin 0 -> 90736 bytes 20 files changed, 634 insertions(+), 78 deletions(-) create mode 100644 content/course/_index.md create mode 100644 data/index.yml create mode 100644 layouts/_default/baseof.html create mode 100644 layouts/course/section.html delete mode 100644 layouts/course/single.json.json create mode 100644 layouts/partials/footer.html delete mode 100644 layouts/partials/matomo.html create mode 100644 layouts/partials/prev-next.html create mode 100644 layouts/partials/topbar.html create mode 100644 static/css/index.css create mode 100644 static/img/logo-aiana.png create mode 100644 static/img/sponsors/logo-cnrs.svg create mode 100644 static/img/sponsors/logo-equipe-potioc.png create mode 100644 static/img/sponsors/logo-inria.png create mode 100755 static/img/sponsors/logo-universite-de-bordeaux.jpg diff --git a/config.toml b/config.toml index bc4d7ef..9564c6d 100644 --- a/config.toml +++ b/config.toml @@ -1,7 +1,7 @@ baseURL = "https://mooc-accessibility.inria.fr/" languageCode = "fr-fr" title = "Inria MOOC Accessibility" -disableKinds = ["section", "taxonomy", "taxonomyTerm", "sitemap"] +disableKinds = ["taxonomy", "taxonomyTerm", "sitemap"] enableGitInfo = true [mediaTypes] diff --git a/content/course/_index.md b/content/course/_index.md new file mode 100644 index 0000000..d267fb2 --- /dev/null +++ b/content/course/_index.md @@ -0,0 +1,3 @@ +--- +title: "Toutes les séquences du MOOC" +--- diff --git a/data/index.yml b/data/index.yml new file mode 100644 index 0000000..5c45fb3 --- /dev/null +++ b/data/index.yml @@ -0,0 +1,28 @@ +--- +sponsors: + - url: "https://team.inria.fr/potioc/fr/" + name: "Équipe Potioc" + logo: "img/sponsors/logo-equipe-potioc.png" + - url: "https://www.inria.fr/" + name: "Inria" + logo: "img/sponsors/logo-inria.png" + - url: "https://www.u-bordeaux.fr/" + name: "Université de Bordeaux" + logo: "img/sponsors/logo-universite-de-bordeaux.jpg" + - url: "https://cnrs.fr/" + name: "Centre National de la Recherche Scientifique" + logo: "img/sponsors/logo-cnrs.svg" + +publications: + - url: http://binaire.blog.lemonde.fr/2018/07/10/pourquoi-il-faut-developper-laccessibilite-numerique + description: Pourquoi il faut développer l’accessibilité numérique ! + lang: fr + - url: https://hal.archives-ouvertes.fr/hal-01954983 + description: "Online e-learning and cognitive disabilities: A systematic review" + lang: en + - url: https://hal.inria.fr/hal-01761462 + description: "Towards Truly Accessible MOOCs for Persons with Cognitive Disabilities: Design and Field Assessment" + lang: en + - url: https://hal.inria.fr/hal-01848103 + description: Improving the Academic Inclusion of a Student with Special Needs at University Bordeaux + lang: en diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html new file mode 100644 index 0000000..abf8131 --- /dev/null +++ b/layouts/_default/baseof.html @@ -0,0 +1,51 @@ + + + + + + + {{ hugo.Generator }} + + + + + + + {{ if .IsHome -}} + {{ .Site.Title }} + + + + {{- else -}} + {{ .Title }} – {{ .Site.Title }} + + + + {{- end }} + + {{ block "styles" . -}} + + + {{- end }} + + {{- if isset .Site.Data "matomo" }} + + {{- end }} + + +{{ block "main" . }}{{ end }} + + + + \ No newline at end of file diff --git a/layouts/course/section.html b/layouts/course/section.html new file mode 100644 index 0000000..88457a9 --- /dev/null +++ b/layouts/course/section.html @@ -0,0 +1,25 @@ +{{ define "main" }} +
+ {{ partial "topbar.html" . }} + + +
+ +
+
+
    + {{ range .Pages.ByWeight }} +
  1. + {{ .Title }} +
  2. + {{ end }} +
+
+
+ + {{ partial "footer.html" . }} +{{ end }} \ No newline at end of file diff --git a/layouts/course/single.fun.html b/layouts/course/single.fun.html index e45eddc..ff3a0cd 100644 --- a/layouts/course/single.fun.html +++ b/layouts/course/single.fun.html @@ -1,20 +1,8 @@ - - - - - - - {{ .Title }} - - +{{ define "styles"}} +{{ end }} - {{- if isset .Site.Data "matomo" }} - {{ partial "matomo.html" . }} - {{- end }} - - - +{{ define "main" }}