cleaner navigation menu
This commit is contained in:
parent
885a0d9869
commit
8ce339abd1
4 changed files with 25 additions and 37 deletions
16
_config.yml
16
_config.yml
|
@ -61,32 +61,30 @@ links:
|
|||
url: /manifeste_du_crapaud/
|
||||
- title: <i class="iconside iconm-blog"></i> Cercles & Principes
|
||||
url: /cercles/
|
||||
- title: <i class="iconside iconm-quill"></i> Mare à crapauds
|
||||
url: /textes/
|
||||
- separator: true
|
||||
- title: <i class="iconside iconm-bullhorn"></i> Les 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
|
||||
url: /contact/
|
||||
- title: <i class="iconside iconm-users"></i> Carte des Crapauds
|
||||
url: /carte/
|
||||
- title: <i class="iconside iconm-bubbles"></i> Statistiques du chat
|
||||
url: /channelsstats/
|
||||
- separator: true
|
||||
- title: <i class="iconside iconm-bubbles"></i> Discuter
|
||||
url: https://coa.crapaud-fou.org
|
||||
external: true
|
||||
- title: <i class="iconside iconm-bubbles"></i> Statistiques du chat
|
||||
url: /channelsstats/
|
||||
- title: <i class="iconside iconm-play"></i> Wiki
|
||||
url: https://wiki.crapaud-fou.org
|
||||
external: true
|
||||
- separator: true
|
||||
- title: <i class="iconside iconm-git-square"></i> Source
|
||||
url: https://github.com/crazy-toads/crazy-toads.github.io
|
||||
external: true
|
||||
- title: <i class="iconside iconm-rss"></i> Feed
|
||||
url: /feed.xml
|
||||
|
||||
- separator: true
|
||||
|
||||
# Google Custom Search:
|
||||
#google_search: xyz123abc
|
||||
|
||||
|
|
|
@ -62,31 +62,29 @@ links:
|
|||
url: /manifeste_du_crapaud/
|
||||
- title: <i class="iconside iconm-blog"></i> Cercles & Principes
|
||||
url: /cercles/
|
||||
- title: <i class="iconside iconm-quill"></i> Mare à crapauds
|
||||
url: /textes/
|
||||
- separator: true
|
||||
- title: <i class="iconside iconm-bullhorn"></i> Les 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
|
||||
url: /contact/
|
||||
- title: <i class="iconside iconm-users"></i> Carte des Crapauds
|
||||
url: /carte/
|
||||
- title: <i class="iconside iconm-bubbles"></i> Statistiques du chat
|
||||
url: /channelsstats/
|
||||
- separator: true
|
||||
- title: <i class="iconside iconm-bubbles"></i> Discuter
|
||||
url: https://coa.crapaud-fou.org
|
||||
external: true
|
||||
- title: <i class="iconside iconm-bubbles"></i> Statistiques du chat
|
||||
url: /channelsstats/
|
||||
- title: <i class="iconside iconm-play"></i> Wiki
|
||||
url: https://wiki.crapaud-fou.org
|
||||
external: true
|
||||
- separator: true
|
||||
- title: <i class="iconside iconm-git-square"></i> Source
|
||||
url: https://github.com/crazy-toads/crazy-toads.github.io
|
||||
external: true
|
||||
- title: <i class="iconside iconm-rss"></i> Feed
|
||||
url: /feed.xml
|
||||
- separator: true
|
||||
|
||||
|
||||
# Google Custom Search:
|
||||
|
|
|
@ -4,9 +4,6 @@
|
|||
|
||||
<!-- Toggleable sidebar -->
|
||||
<div class="sidebar" id="sidebar">
|
||||
<!-- <div class="sidebar-item">
|
||||
<p>{{ site.description }}</p>
|
||||
</div> -->
|
||||
|
||||
<nav class="sidebar-nav">
|
||||
<!-- 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.
|
||||
{% 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 %}
|
||||
{% if link.external %}
|
||||
<a class="sidebar-nav-item{% if page.url == link.url %} active{% endif %}" href="{{ link.url }}" target="_blank">{{ link.title }}</a>
|
||||
{% else %}
|
||||
<a class="sidebar-nav-item{% if page.url == link.url %} active{% endif %}" href="{{ site.url }}{{ link.url }}">{{ link.title }}</a>
|
||||
{% endif %}
|
||||
{% if link.separator %}
|
||||
<hr />
|
||||
{% elsif link.external %}
|
||||
<a class="sidebar-nav-item{% if page.url == link.url %} active{% endif %}" href="{{ link.url }}" target="_blank">{{ link.title }}</a>
|
||||
{% else %}
|
||||
<a class="sidebar-nav-item{% if page.url == link.url %} active{% endif %}" href="{{ site.url }}{{ link.url }}">{{ link.title }}</a>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
|
||||
</nav>
|
||||
|
|
|
@ -144,6 +144,11 @@
|
|||
margin: 0 auto;
|
||||
}
|
||||
|
||||
.sidebar hr {
|
||||
margin: 0;
|
||||
border-top: 1px solid #90a959;
|
||||
}
|
||||
|
||||
@media (min-width: 56em) {
|
||||
.sidebar {
|
||||
visibility: visible;
|
||||
|
|
Loading…
Reference in a new issue