cleaner navigation menu

This commit is contained in:
mose 2018-12-03 11:05:55 +08:00
parent 885a0d9869
commit 8ce339abd1
4 changed files with 25 additions and 37 deletions

View file

@ -61,32 +61,30 @@ links:
url: /manifeste_du_crapaud/ url: /manifeste_du_crapaud/
- title: <i class="iconside iconm-blog"></i> Cercles & Principes - title: <i class="iconside iconm-blog"></i> Cercles & Principes
url: /cercles/ url: /cercles/
- title: <i class="iconside iconm-quill"></i> Mare à crapauds - separator: true
url: /textes/
- title: <i class="iconside iconm-bullhorn"></i> Les Nouvelles - title: <i class="iconside iconm-bullhorn"></i> Les Nouvelles
url: /nouvelles/ url: /nouvelles/
- title: <i class="iconside iconm-user"></i> Crapauds
url: /crapauds/
- title: <i class="iconside iconm-user-tie"></i> Partenaires
url: /partenaires/
- title: <i class="iconside iconm-users"></i> Nous rejoindre - title: <i class="iconside iconm-users"></i> Nous rejoindre
url: /contact/ url: /contact/
- title: <i class="iconside iconm-users"></i> Carte des Crapauds - title: <i class="iconside iconm-users"></i> Carte des Crapauds
url: /carte/ url: /carte/
- title: <i class="iconside iconm-bubbles"></i> Statistiques du chat
url: /channelsstats/
- separator: true
- title: <i class="iconside iconm-bubbles"></i> Discuter - title: <i class="iconside iconm-bubbles"></i> Discuter
url: https://coa.crapaud-fou.org url: https://coa.crapaud-fou.org
external: true external: true
- title: <i class="iconside iconm-bubbles"></i> Statistiques du chat
url: /channelsstats/
- title: <i class="iconside iconm-play"></i> Wiki - title: <i class="iconside iconm-play"></i> Wiki
url: https://wiki.crapaud-fou.org url: https://wiki.crapaud-fou.org
external: true external: true
- separator: true
- title: <i class="iconside iconm-git-square"></i> Source - title: <i class="iconside iconm-git-square"></i> Source
url: https://github.com/crazy-toads/crazy-toads.github.io url: https://github.com/crazy-toads/crazy-toads.github.io
external: true external: true
- title: <i class="iconside iconm-rss"></i> Feed - title: <i class="iconside iconm-rss"></i> Feed
url: /feed.xml url: /feed.xml
- separator: true
# Google Custom Search: # Google Custom Search:
#google_search: xyz123abc #google_search: xyz123abc

View file

@ -62,31 +62,29 @@ links:
url: /manifeste_du_crapaud/ url: /manifeste_du_crapaud/
- title: <i class="iconside iconm-blog"></i> Cercles & Principes - title: <i class="iconside iconm-blog"></i> Cercles & Principes
url: /cercles/ url: /cercles/
- title: <i class="iconside iconm-quill"></i> Mare à crapauds - separator: true
url: /textes/
- title: <i class="iconside iconm-bullhorn"></i> Les Nouvelles - title: <i class="iconside iconm-bullhorn"></i> Les Nouvelles
url: /nouvelles/ url: /nouvelles/
- title: <i class="iconside iconm-user"></i> Crapauds
url: /crapauds/
- title: <i class="iconside iconm-user-tie"></i> Partenaires
url: /partenaires/
- title: <i class="iconside iconm-users"></i> Nous rejoindre - title: <i class="iconside iconm-users"></i> Nous rejoindre
url: /contact/ url: /contact/
- title: <i class="iconside iconm-users"></i> Carte des Crapauds - title: <i class="iconside iconm-users"></i> Carte des Crapauds
url: /carte/ url: /carte/
- title: <i class="iconside iconm-bubbles"></i> Statistiques du chat
url: /channelsstats/
- separator: true
- title: <i class="iconside iconm-bubbles"></i> Discuter - title: <i class="iconside iconm-bubbles"></i> Discuter
url: https://coa.crapaud-fou.org url: https://coa.crapaud-fou.org
external: true external: true
- title: <i class="iconside iconm-bubbles"></i> Statistiques du chat
url: /channelsstats/
- title: <i class="iconside iconm-play"></i> Wiki - title: <i class="iconside iconm-play"></i> Wiki
url: https://wiki.crapaud-fou.org url: https://wiki.crapaud-fou.org
external: true external: true
- separator: true
- title: <i class="iconside iconm-git-square"></i> Source - title: <i class="iconside iconm-git-square"></i> Source
url: https://github.com/crazy-toads/crazy-toads.github.io url: https://github.com/crazy-toads/crazy-toads.github.io
external: true external: true
- title: <i class="iconside iconm-rss"></i> Feed - title: <i class="iconside iconm-rss"></i> Feed
url: /feed.xml url: /feed.xml
- separator: true
# Google Custom Search: # Google Custom Search:

View file

@ -4,9 +4,6 @@
<!-- Toggleable sidebar --> <!-- Toggleable sidebar -->
<div class="sidebar" id="sidebar"> <div class="sidebar" id="sidebar">
<!-- <div class="sidebar-item">
<p>{{ site.description }}</p>
</div> -->
<nav class="sidebar-nav"> <nav class="sidebar-nav">
<!-- a class="sidebar-nav-item{% if page.url == site.baseurl %} active{% endif %}" href="{{ site.baseurl }}/">Home</a--> <!-- a class="sidebar-nav-item{% if page.url == site.baseurl %} active{% endif %}" href="{{ site.baseurl }}/">Home</a-->
@ -16,24 +13,14 @@
`layout: page` in the front-matter. See readme for usage. `layout: page` in the front-matter. See readme for usage.
{% endcomment %} {% endcomment %}
{% comment %}
<!-- DISABLE AUTO LINKS -->
{% assign pages_list = site.pages | sort:"url" %}
{% for node in pages_list %}
{% if node.title != null %}
{% if node.layout == "page" %}
<a class="sidebar-nav-item{% if page.url == node.url %} active{% endif %}" href="{{ node.url }}">{{ node.title }}</a>
{% endif %}
{% endif %}
{% endfor %}
{% endcomment %}
{% for link in site.links %} {% for link in site.links %}
{% if link.external %} {% if link.separator %}
<a class="sidebar-nav-item{% if page.url == link.url %} active{% endif %}" href="{{ link.url }}" target="_blank">{{ link.title }}</a> <hr />
{% else %} {% elsif link.external %}
<a class="sidebar-nav-item{% if page.url == link.url %} active{% endif %}" href="{{ site.url }}{{ link.url }}">{{ link.title }}</a> <a class="sidebar-nav-item{% if page.url == link.url %} active{% endif %}" href="{{ link.url }}" target="_blank">{{ link.title }}</a>
{% endif %} {% else %}
<a class="sidebar-nav-item{% if page.url == link.url %} active{% endif %}" href="{{ site.url }}{{ link.url }}">{{ link.title }}</a>
{% endif %}
{% endfor %} {% endfor %}
</nav> </nav>

View file

@ -144,6 +144,11 @@
margin: 0 auto; margin: 0 auto;
} }
.sidebar hr {
margin: 0;
border-top: 1px solid #90a959;
}
@media (min-width: 56em) { @media (min-width: 56em) {
.sidebar { .sidebar {
visibility: visible; visibility: visible;