This commit is contained in:
Alexis Métaireau 2023-09-25 23:37:40 +02:00
parent 521985f8ca
commit 97c3d1ee40
4 changed files with 11 additions and 5 deletions

View file

@ -7,8 +7,7 @@ slug: index
👋 **Bienvenue par ici**. Developpeur et Brasseur, je suis intéressé par les 👋 **Bienvenue par ici**. Developpeur et Brasseur, je suis intéressé par les
dynamiques collectives, les libertés numériques et la facilitation. dynamiques collectives, les libertés numériques et la facilitation.
Si vous souhaitez me contacter, envoyez moi un email sur ``alexis`` Pour me contacter, envoyez-moi un email sur ``alexis`` ``@`` ``notmyidea.org``.
@ ``notmyidea.org``.
--- ---

View file

@ -239,7 +239,8 @@ section.index {
#links li { #links li {
display: initial; display: initial;
list-style-type: none; list-style-type: none;
} white-space: nowrap;
}
# links li:nth-child(1) { # links li:nth-child(1) {
display: inline-block; display: inline-block;
@ -260,11 +261,15 @@ section.index {
color: var(--link-color-menu); color: var(--link-color-menu);
} }
#links a.selected { #links a.main {
color: #fff; color: #fff;
background-color: var(--link-color-menu); background-color: var(--link-color-menu);
} }
#links a.selected {
text-decoration-color: var(--link-color);
}
#links a.selected:hover { #links a.selected:hover {
cursor: default; cursor: default;
} }

View file

@ -18,6 +18,9 @@
<section id="links"> <section id="links">
<ul> <ul>
{% for (title, url, selected) in MENU %} {% for (title, url, selected) in MENU %}
{% if loop.first %}
<li><a class="main" href="/">{{ SITENAME }}</a></li>
{% endif %}
<li><a class="{% <li><a class="{%
if page_name == selected if page_name == selected
or (category and category.name == selected) or (category and category.name == selected)

View file

@ -31,7 +31,6 @@ CATEGORY_SAVE_AS = "{slug}/index.html"
CATEGORY_URL = "{slug}/" CATEGORY_URL = "{slug}/"
MENU = [ MENU = [
("Alexis Métaireau", "/", "index"),
("Journal", "/journal/index.html", "journal"), ("Journal", "/journal/index.html", "journal"),
("Code, etc.", "/code/", "code"), ("Code, etc.", "/code/", "code"),
("Notes hebdo", "/weeknotes/", "weeknotes"), ("Notes hebdo", "/weeknotes/", "weeknotes"),