Cleanup and fix visible attribute

This commit is contained in:
Kay0u 2021-02-08 13:47:56 +01:00
parent 8ff2923b77
commit 9543b81789
No known key found for this signature in database
GPG key ID: AAFEEB16CFA2AE2D
10 changed files with 15 additions and 90 deletions

View file

@ -5,6 +5,7 @@ taxonomy:
category: docs category: docs
routes: routes:
default: '/docs' default: '/docs'
visible: false
--- ---
دليل واي يونوهوست YunoHost يرتكز أساسًا على ثلاثة محاور : دليل واي يونوهوست YunoHost يرتكز أساسًا على ثلاثة محاور :

View file

@ -5,6 +5,7 @@ taxonomy:
category: docs category: docs
routes: routes:
default: '/docs' default: '/docs'
visible: false
--- ---
Die YunoHost Dokumentation ist in 2 Bereiche aufgeteilt: Die YunoHost Dokumentation ist in 2 Bereiche aufgeteilt:

View file

@ -5,6 +5,7 @@ taxonomy:
category: docs category: docs
routes: routes:
default: '/docs' default: '/docs'
visible: false
--- ---
! This page is obsolete and should be reworked ! This page is obsolete and should be reworked

View file

@ -5,6 +5,7 @@ taxonomy:
category: docs category: docs
routes: routes:
default: '/docs' default: '/docs'
visible: false
--- ---
La documentazione di YunoHost ha 2 differenti sezioni: La documentazione di YunoHost ha 2 differenti sezioni:

View file

@ -5,6 +5,7 @@ taxonomy:
category: docs category: docs
routes: routes:
default: '/docs' default: '/docs'
visible: false
--- ---
! This page is obsolete and should be reworked ! This page is obsolete and should be reworked

View file

@ -2,15 +2,6 @@
background: none; background: none;
} }
.highlightable h5:first-of-type {
margin-top: 2rem;
}
.highlightable h5 {
margin-top: 1rem;
color: #333;
}
#chapter { #chapter {
max-width: 80%; max-width: 80%;
} }
@ -114,11 +105,6 @@ h1, h2, h3, h4, h5, h6 {
margin: 0; margin: 0;
} }
/* Hide home page in menu */
.simplebar-content h5:first-child {
display: none;
}
@font-face { @font-face {
font-family: 'Source Sans Pro'; font-family: 'Source Sans Pro';
src: url('../fonts/SourceSansPro-Bold-webfont.eot'); src: url('../fonts/SourceSansPro-Bold-webfont.eot');

View file

@ -1,20 +0,0 @@
{% set body_classes = body_classes ~ ' ' ~ page.header.body_classes %}
{% extends 'partials/base.html.twig' %}
{% set tags = page.taxonomy.tag %}
{% if tags %}
{% set progress = page.collection({'items':{'@taxonomy':{'category': 'docs', 'tag': tags}},'order': {'by': 'default', 'dir': 'asc'}}) %}
{% else %}
{% set progress = page.collection({'items':{'@taxonomy':{'category': 'docs'}},'order': {'by': 'default', 'dir': 'asc'}}) %}
{% endif %}
{% block content %}
{% include 'partials/toc.html.twig' %}
{% include 'partials/page.html.twig' %}
{% if github_config.note == true %}
{% include 'partials/github-note.html.twig' %}
{% endif %}
{% endblock %}

View file

@ -22,11 +22,13 @@
{% do assets.addCss('theme://css-compiled/spectre'~compress) %} {% do assets.addCss('theme://css-compiled/spectre'~compress) %}
{% do assets.addCss('theme://css-compiled/theme'~compress) %} {% do assets.addCss('theme://css-compiled/theme'~compress) %}
{% do assets.addCss('theme://css/custom.css') %} {% do assets.addCss('theme://css/custom.css') %}
{% do assets.addCss('theme://css/darkMode.css') %}
{% endblock %} {% endblock %}
{% block javascripts %} {% block javascripts %}
{% do assets.addJs('jquery', 101) %} {% do assets.addJs('jquery', 101) %}
{% do assets.addJs('theme://js/learn4.js', { group:'bottom' }) %} {% do assets.addJs('theme://js/learn4.js', { group:'bottom' }) %}
{% do assets.addJs('theme://js/darkMode.js', { group:'bottom' }) %}
{% endblock %} {% endblock %}
{% block assets deferred %} {% block assets deferred %}

View file

@ -1,38 +0,0 @@
{% set crumbs = breadcrumbs.get() %}
{% set breadcrumbs_config = config.plugins.breadcrumbs %}
{% set divider = breadcrumbs_config.icon_divider_classes %}
{% if crumbs|length > 1 or breadcrumbs_config.show_all %}
<div id="breadcrumbs" itemscope itemtype="http://schema.org/BreadcrumbList">
{% if breadcrumbs_config.icon_home %}
<a href="{{ url("/") }}"><i class="{{ breadcrumbs_config.icon_home }}"></a></i><i class="{{ divider }}"></i>
{% endif %}
{% for crumb in crumbs %}
<span itemprop="itemListElement" itemscope itemtype="http://schema.org/ListItem">
{% if not loop.last %}
{% if crumb.routable %}
<a itemscope itemtype="http://schema.org/Thing" itemprop="item" href="{{ crumb.url }}" itemid="{{ crumb.url }}">
<span itemprop="name">{{ crumb.menu }}</span>
</a>
{% else %}
<span itemscope itemtype="http://schema.org/Thing" itemprop="item" itemid="{{ crumb.url }}">
<span itemprop="name">{{ crumb.menu }}</span>
</span>
{% endif %}
<i class="{{ divider }}"></i>
{% else %}
{% if breadcrumbs_config.link_trailing %}
<a itemscope itemtype="http://schema.org/Thing" itemprop="item" href="{{ crumb.url }}" itemid="{{ crumb.url }}">
<span itemprop="name">{{ crumb.menu }}</span>
</a>
{% else %}
<span itemscope itemtype="http://schema.org/Thing" itemprop="item" itemid="{{ crumb.url }}">
<span itemprop="name">{{ crumb.menu }}</span>
</span>
{% endif %}
{% endif %}
<meta itemprop="position" content="{{ loop.index }}" />
</span>
{% endfor %}
</div>
{% endif %}

View file

@ -2,7 +2,7 @@
<div class="learn-brand"> <div class="learn-brand">
<div id="header"> <div id="header">
<a id="logo" href="{{ theme_config.home_url ?: base_url_absolute }}">{% include 'partials/logo.html.twig' %}</a> <a id="logo" href="{{ base_url_absolute }}">{% include 'partials/logo.html.twig' %}</a>
<div class="searchbox"> <div class="searchbox">
<label for="search-by"><i class="fa fa-search"></i></label> <label for="search-by"><i class="fa fa-search"></i></label>
<input id="search-by" type="text" placeholder="{{ 'THEME_LEARN4_SEARCH_DOCUMENTATION'|t }}" <input id="search-by" type="text" placeholder="{{ 'THEME_LEARN4_SEARCH_DOCUMENTATION'|t }}"
@ -17,24 +17,14 @@
</div> </div>
<div class="learn-nav" data-simplebar> <div class="learn-nav" data-simplebar>
<div class="highlightable"> <div class="highlightable">
{% if theme_config.top_level_version %} {% for slug, ver in pages.children.visible %}
{% for slug, ver in pages.children %} {{ macros.version(ver) }}
{{ macros.version(ver) }} <ul id="{{ slug }}" class="topics">
<ul id="{{ slug }}" class="topics"> {% if ver.activeChild or ver.active %}
{% if ver.activeChild or ver.active %} {{ macros.loop(ver, '') }}
{{ macros.loop(ver, '') }} {% endif %}
{% endif %}
</ul>
{% endfor %}
{% else %}
<ul class="topics">
{% if theme_config.root_page %}
{{ macros.loop(page.find(theme_config.root_page), '') }}
{% else %}
{{ macros.loop(pages, '') }}
{% endif %}
</ul> </ul>
{% endif %} {% endfor %}
<hr /> <hr />
<a class="side-tools padding" href="#" data-clear-history-toggle> <a class="side-tools padding" href="#" data-clear-history-toggle>