module dans module dans module

This commit is contained in:
2021-03-12 17:04:40 +01:00
parent 405e5094ee
commit 0330bc5f4e
42 changed files with 268 additions and 444 deletions
+12 -12
View File
@@ -46,7 +46,7 @@ j'ai essayé:
label: Texte de présentation du programme
markdown: true
#fin des modifs par Ouidade
@@ -65,17 +65,17 @@ The theme by itself is useful, but you may have an easier time getting up and ru
The simplest way to install this theme is via the [Grav Package Manager (GPM)](http://learn.getgrav.org/advanced/grav-gpm) through your system's Terminal (also called the command line). From the root of your Grav install type:
bin/gpm install epau-epau_antimatter
bin/gpm install epau-antimatter
This will install the Epau Antimatter theme into your `/user/themes` directory within Grav. Its files can be found under `/your/site/grav/user/themes/epau-epau_antimatter`.
This will install the Epau Antimatter theme into your `/user/themes` directory within Grav. Its files can be found under `/your/site/grav/user/themes/epau-antimatter`.
## Manual Installation
To install this theme, just download the zip version of this repository and unzip it under `/your/site/grav/user/themes`. Then, rename the folder to `epau-epau_antimatter`. You can find these files either on [GitHub](https://github.com/getgrav/grav-theme-epau-epau_antimatter) or via [GetGrav.org](http://getgrav.org/downloads/themes).
To install this theme, just download the zip version of this repository and unzip it under `/your/site/grav/user/themes`. Then, rename the folder to `epau-antimatter`. You can find these files either on [GitHub](https://github.com/getgrav/grav-theme-epau-antimatter) or via [GetGrav.org](http://getgrav.org/downloads/themes).
You should now have all the theme files under
/your/site/grav/user/themes/epau-epau_antimatter
/your/site/grav/user/themes/epau-antimatter
>> NOTE: This theme is a modular component for Grav which requires the [Grav](http://github.com/getgrav/grav), [Error](https://github.com/getgrav/grav-theme-error) and [Problems](https://github.com/getgrav/grav-plugin-problems) plugins.
@@ -87,7 +87,7 @@ As development for the Epau Antimatter theme continues, new versions may become
The simplest way to update this theme is via the [Grav Package Manager (GPM)](http://learn.getgrav.org/advanced/grav-gpm). You can do this with this by navigating to the root directory of your Grav install using your system's Terminal (also called command line) and typing the following:
bin/gpm update epau-epau_antimatter
bin/gpm update epau-antimatter
This command will check your Grav install to see if your Epau Antimatter theme is due for an update. If a newer release is found, you will be asked whether or not you wish to update. To continue, type `y` and hit enter. The theme will automatically update and clear Grav's cache.
@@ -95,9 +95,9 @@ This command will check your Grav install to see if your Epau Antimatter theme i
Manually updating Epau Antimatter is pretty simple. Here is what you will need to do to get this done:
* Delete the `your/site/user/themes/epau-epau_antimatter` directory.
* Download the new version of the Epau Antimatter theme from either [GitHub](https://github.com/getgrav/grav-plugin-epau-epau_antimatter) or [GetGrav.org](http://getgrav.org/downloads/themes#extras).
* Unzip the zip file in `your/site/user/themes` and rename the resulting folder to `epau-epau_antimatter`.
* Delete the `your/site/user/themes/epau-antimatter` directory.
* Download the new version of the Epau Antimatter theme from either [GitHub](https://github.com/getgrav/grav-plugin-epau-antimatter) or [GetGrav.org](http://getgrav.org/downloads/themes#extras).
* Unzip the zip file in `your/site/user/themes` and rename the resulting folder to `epau-antimatter`.
* Clear the Grav cache. The simplest way to do this is by going to the root Grav directory in terminal and typing `bin/grav clear-cache`.
> Note: Any changes you have made to any of the files listed under this directory will also be removed and replaced by the new set. Any files located elsewhere (for example a YAML settings file placed in `user/config/themes`) will remain intact.
@@ -127,7 +127,7 @@ Manually updating Epau Antimatter is pretty simple. Here is what you will need t
##### Dropdown Menu
You can enable **dropdown menu** support by enabling it in the `epau-epau_antimatter.yaml` configuration file. As per usual, copy this file to your `user/config/themes/` folder (create if required) and edit there.
You can enable **dropdown menu** support by enabling it in the `epau-antimatter.yaml` configuration file. As per usual, copy this file to your `user/config/themes/` folder (create if required) and edit there.
```
dropdown:
@@ -180,8 +180,8 @@ If you want to set Epau Antimatter as the default theme, you can do so by follow
* Navigate to `/your/site/grav/user/config`.
* Open the **system.yaml** file.
* Change the `theme:` setting to `theme: epau-epau_antimatter`.
* Change the `theme:` setting to `theme: epau-antimatter`.
* Save your changes.
* Clear the Grav cache. The simplest way to do this is by going to the root Grav directory in Terminal and typing `bin/grav clear-cache`.
Once this is done, you should be able to see the new theme on the frontend. Keep in mind any customizations made to the previous theme will not be reflected as all of the theme and templating information is now being pulled from the **epau-epau_antimatter** folder.
Once this is done, you should be able to see the new theme on the frontend. Keep in mind any customizations made to the previous theme will not be reflected as all of the theme and templating information is now being pulled from the **epau-antimatter** folder.
@@ -51,13 +51,6 @@
{% block content %}
{# ça marche pas non plus
<section class="personnes">
{{ page.header.personnes}}
</section>
#}
{{ page.content|raw }}
{% for module in page.collection() %}
<div id="{{ _self.pageLinkName(module.menu) }}"></div>
@@ -0,0 +1,8 @@
{{ page.content|raw }}
{% for module in page.collection() %}
<div id="{{ _self.pageLinkName(module.menu) }}"></div>
{{ module.content|raw }}
{% endfor %}
@@ -0,0 +1,8 @@
{{ page.content|raw }}
{% for module in page.collection() %}
<div id="{{ _self.pageLinkName(module.menu) }}"></div>
{{ module.content|raw }}
{% endfor %}
@@ -1,23 +1,22 @@
<div class="modular-row personnes {{ page.header.class}}">
{{ content|raw }}
<div class="feature-items">
{% for feature in page.header.personnes %}
{% for personne in page.header.personnes %}
<div class="feature">
{% if feature.icon %}
<i class="fa fa-fw fa-{{ feature.icon }}"></i>
{% if personne.icon %}
<i class="fa fa-fw fa-{{ personne.icon }}"></i>
<div class="feature-content icon-offset">
{% else %}
<div class="feature-content">
{% endif %}
{% if feature.nom %}
<h4>{{ feature.nom }}</h4>
{% if personne.nom %}
<h5>{{ personne.nom }}</h5>
{% endif %}
{% if feature.fonction %}
<h6>{{ feature.fonction }}</h6>
{% if personne.fonction %}
<h6>{{ personne.fonction }}</h6>
{% endif %}
{% if feature.biographie %}
<p>{{ feature.biographie }}</p>
{% if personne.biographie %}
<p>{{ personne.biographie }}</p>
{% endif %}
</div>
</div>