fixed menu mess

This commit is contained in:
sunda 2022-05-30 10:48:34 +02:00
parent 3dde4cc16b
commit b6d7f71551
10 changed files with 33 additions and 33 deletions

View File

@ -2,11 +2,11 @@ main:
- rf2022: - rf2022:
en: en:
name: RF2022 name: RF2022
url: "/rf2022" to: "/rf2022"
fr: fr:
name: RF2022 name: RF2022
url: "/rf2022" to: "/rf2022"
- archive: - archive:
en: en:
@ -17,10 +17,10 @@ main:
- rf2020: - rf2020:
en: en:
name: RF2020 name: RF2020
url: "/rf2020" to: "/rf2020"
fr: fr:
name: RF2020 name: RF2020
url: /rf2020 to: "/rf2020"
- tpr: - tpr:
en: en:
name: The Para-Real name: The Para-Real
@ -31,52 +31,52 @@ main:
- donate: - donate:
en: en:
name: support us name: support us
url: "/donate" to: "/donate"
fr: fr:
name: faire un don name: faire un don
url: /donate to: /donate
watch: watch:
- program: - program:
en: en:
name: program name: program
url: "#program" to: "#program"
fr: fr:
name: programme name: programme
url: "#program" to: "#program"
- gallery: - gallery:
en: en:
name: gallery name: gallery
url: "/rf2020/gallery" to: "/rf2020/gallery"
fr: fr:
name: gallery name: gallery
url: "/rf2020/gallery" to: "/rf2020/gallery"
- donate: - donate:
en: en:
name: donate name: donate
url: "/donate" to: "/donate"
fr: fr:
name: faire un don name: faire un don
url: "/donate" to: "/donate"
gallery: gallery:
- watch: - watch:
en: en:
name: watch name: watch
url: "/rf2020/watch" to: "/rf2020/watch"
fr: fr:
name: watch name: watch
url: "/rf2020/watch" to: "/rf2020/watch"
- program: - program:
en: en:
name: program name: program
url: "/rf2020/program" to: "/rf2020/program"
fr: fr:
name: programme name: programme
url: /rf2020/programme to: /rf2020/programme
- donate: - donate:
en: en:
name: donate name: donate
url: "/donate" to: "/donate"
fr: fr:
name: faire un don name: faire un don
url: "/donate" to: "/donate"

View File

@ -16,14 +16,14 @@
{% for item in menu %} {% for item in menu %}
{% if item.items %} {% if item.items %}
<div class="nav-group" tabindex="0"> <div class="nav-group" tabindex="0">
<a href="{{ item[page.lang].url | default: '#'}}" class="nav-link colour-{{ item[page.lang].colour | default: 'black' }} {{ item.case }}">{{ item[page.lang].name }}</a> <a href="{% if item[page.lang].to %}{{- item[page.lang].to -}}{% elsif item[page.lang].url %}{{- item[page.lang].url | default: '#' -}}{% endif %}" class="nav-link colour-{{ item[page.lang].colour | default: 'black' }} {{ item.case }}">{{ item[page.lang].name }}</a>
{% if item.items %} {% if item.items %}
<div class="sub-nav-group"> <div class="sub-nav-group">
{% for sublink in item.items %} {% for sublink in item.items %}
{% if page.lang == 'en' %} {% if page.lang == 'en' %}
<a class="sub-nav-link colour-{{ sublink[page.lang].colour | default: 'black' }} {{ sublink.case }}" href="{{ site.baseurl | append: sublink[page.lang].url }}">{{ sublink[page.lang].name }}</a> <a class="sub-nav-link colour-{{ sublink[page.lang].colour | default: 'black' }} {{ sublink.case }}" href="{% if sublink[page.lang].to %}{{- sublink[page.lang].to -}}{% elsif sublink[page.lang].url %}{{- sublink[page.lang].url -}}{% endif %}">{{ sublink[page.lang].name }}</a>
{% else %} {% else %}
<a class="sub-nav-link colour-{{ sublink[page.lang].colour | default: 'black' }} {{ sublink.case }}" href="{{ site.baseurl }}/{{ page.lang | append: sublink[page.lang].url }}">{{ sublink[page.lang].name }}</a> <a class="sub-nav-link colour-{{ sublink[page.lang].colour | default: 'black' }} {{ sublink.case }}" href="{% if sublink[page.lang].to %}/{{- page.lang | append: sublink[page.lang].to -}}{% elsif sublink[page.lang].url %} {{- sublink[page.lang].url -}}{% endif %}">{{ sublink[page.lang].name }}</a>
{% endif %} {% endif %}
{% endfor %} {% endfor %}
</div> </div>
@ -32,11 +32,11 @@
{% else %} {% else %}
{% if page.lang == 'en' %} {% if page.lang == 'en' %}
<div class="nav-group"> <div class="nav-group">
<a class="nav-link colour-{{ item[page.lang].colour | default: 'black' }} {{ item.case }}" href="{{ site.baseurl | append: item[page.lang].url }}">{{ item[page.lang].name }}</a> <a class="nav-link colour-{{ item[page.lang].colour | default: 'black' }} {{ item.case }}" href="{% if item[page.lang].to %}{{- item[page.lang].to -}}{% elsif item[page.lang].url %}{{- item[page.lang].url | default: '#' -}}{% endif %}">{{ item[page.lang].name }}</a>
</div> </div>
{% else %} {% else %}
<div class="nav-group"> <div class="nav-group">
<a class="nav-link colour-{{ item[page.lang].colour | default: 'black' }} {{ item.case }}" href="{{ site.baseurl }}/{{ page.lang | append: item[page.lang].url }}">{{ item[page.lang].name }}</a> <a class="nav-link colour-{{ item[page.lang].colour | default: 'black' }} {{ item.case }}" href="{% if item[page.lang].to %}/{{- page.lang | append: item[page.lang].to -}}{% elsif item[page.lang].url %}{{- item[page.lang].url | default: '#' -}}{% endif %}">{{ item[page.lang].name }}</a>
</div> </div>
{% endif %} {% endif %}
{% endif %} {% endif %}

View File

@ -6,7 +6,7 @@ ref: announcing-rf2022
date: 2022-05-23 09:30:00 +0200 date: 2022-05-23 09:30:00 +0200
lang: fr lang: fr
categories: fr categories: fr
excerpt: <p>The ReclaimFutures team is very proud to announce ReclaimFutures 2022! Call for proposals now live!</p> excerpt: <p>L'équipe de ReclaimFutures est fière d'annoncer le retour de l'événement pour 2022 ! L'appel à participation est <em>en ligne !</em></p>
--- ---
L'équipe de ReclaimFutures est fière d'annoncer le retour de l'événement pour 2022 ! L'équipe de ReclaimFutures est fière d'annoncer le retour de l'événement pour 2022 !

View File

@ -32,6 +32,7 @@ header.page-header {
.nav-group { .nav-group {
cursor: default; cursor: default;
position: relative; position: relative;
z-index: 1;
.sub-nav-group { .sub-nav-group {
display: flex; display: flex;

View File

@ -40,4 +40,8 @@
cursor: pointer; cursor: pointer;
} }
} }
&.lang-fr .no-fr {
margin-bottom: 1em;
}
} }

View File

@ -4439,7 +4439,7 @@ var parent = module.bundle.parent;
if ((!parent || !parent.isParcelRequire) && typeof WebSocket !== 'undefined') { if ((!parent || !parent.isParcelRequire) && typeof WebSocket !== 'undefined') {
var hostname = "" || location.hostname; var hostname = "" || location.hostname;
var protocol = location.protocol === 'https:' ? 'wss' : 'ws'; var protocol = location.protocol === 'https:' ? 'wss' : 'ws';
var ws = new WebSocket(protocol + '://' + hostname + ':' + "34073" + '/'); var ws = new WebSocket(protocol + '://' + hostname + ':' + "41045" + '/');
ws.onmessage = function (event) { ws.onmessage = function (event) {
checkedAssets = {}; checkedAssets = {};

View File

@ -8,4 +8,4 @@ services:
- 4000:4000 - 4000:4000
volumes: volumes:
- .:/srv/jekyll:Z" - .:/srv/jekyll:Z"
command: yarn build command: yarn start

View File

@ -6,13 +6,8 @@ className: index
ref: index ref: index
--- ---
{% capture intro %}
{% include text/fr/intro.md %}
{% endcapture %}
<div> <div>
<span class="intro">{{ intro | markdownify }}</span>
{% include common/news.html %} {% include common/news.html %}
</div> </div>

View File

@ -9,7 +9,7 @@ className: rf2020
<article class="page-content margin-128-bottom"> <article class="page-content margin-128-bottom">
<div> <div>
<p class="textbox italic inline-block"> <p class="textbox italic inline-block no-fr">
Version française non disponible Version française non disponible
</p> </p>
</div> </div>

View File

@ -5,7 +5,7 @@
"main": "index.js", "main": "index.js",
"scripts": { "scripts": {
"start": "run-p start-jekyll start-parcel", "start": "run-p start-jekyll start-parcel",
"build": "npm run build-jekyll && npm run build-parcel", "build": "run-s build-jekyll build-parcel",
"start-jekyll": "jekyll serve --livereload", "start-jekyll": "jekyll serve --livereload",
"start-parcel": "parcel src/index.js -d assets/js", "start-parcel": "parcel src/index.js -d assets/js",
"build-jekyll": "JEKYLL_ENV=production jekyll build", "build-jekyll": "JEKYLL_ENV=production jekyll build",