pour les pages seules, ça avance

This commit is contained in:
tierce (Thierry Fenasse)
2022-06-15 18:56:42 +02:00
parent 7348d9657d
commit 53d7b6dcc8
3 changed files with 34 additions and 47 deletions

View File

@@ -1,51 +1,23 @@
<INCLURE{fond=inclure/head} />
<BOUCLE_principale(ARTICLES) {id_article}>
<body>
<section id=head>
<h1>#TITRE</h1>
<h2>Support Gnu/Linux - Réanimistes d'ordinateurs libres</h2>
<hr class=title>
<!-- Pour plus tard, choisir le fa-icon en fonction de l'ID de rubrique ?
<B_nav>
<nav class="nav clearfix[ (#TOTAL_BOUCLE|=={1}|oui)none]" id="menu" role="navigation">
<a href="/" class="button"><i class="fa fa-home"></i>Home</a>
<BOUCLE_nav(RUBRIQUES) {racine} {par num titre, titre}>
<a href="#URL_RUBRIQUE" class="button">#TITRE</a>
</BOUCLE_nav>
</nav>
</B_nav>
-->
<nav id="menu" role="navigation">
<a href="/" class="button"><i class="fa fa-home"></i>Home</a>
<a href="?rubrique2" class="button"><i class="fa fa-gnu"></i>Gnuragistes</a>
<a href="?rubrique1" class="button"><i class="fa fa-lightbulb-o"></i>Tutos</a>
<a href="?rubrique3" class="button"><i class="fa fa-book"></i>Blog</a>
<a href="?article12" class="button"><i class="fa fa-money"></i>Poen</a>
<a href="https://ps.zoethical.org/c/ps/gnuragistes/130" class="button"><i class="fa fa-activitypub"></i>Forum</a>
</nav>
<h3>help@gnuragist.es - 0466/47.25.33</h3>
</section>
<INCLURE{fond=inclure/header,env} />
<INCLURE{fond=inclure/nav} />
<section id="main">
<p class="arbo">
<a href="#URL_SITE_SPIP/"><:accueil_site:></a>
<BOUCLE_ariane(HIERARCHIE){id_article}> &gt; <a href="#URL_RUBRIQUE">[(#TITRE|couper{80})]</a>
</BOUCLE_ariane>[ &gt; <strong class="on">(#TITRE|couper{80})</strong>]
</p>
[(#TEXTE|image_reduire{672,*})]
<BOUCLE_principale(ARTICLES) {id_article=#ENV{id_article,10}}>
<p class="arbo">
<a href="#URL_SITE_SPIP/"><:accueil_site:></a>
<BOUCLE_ariane(HIERARCHIE){id_article}> &gt;
<a href="#URL_RUBRIQUE">[(#TITRE|couper{80})]</a>
</BOUCLE_ariane>[ &gt; <strong class="on">(#TITRE|couper{80})</strong>]
</p>
#TEXTE|image_reduire{672,*}
</BOUCLE_principale>
</section>
<INCLURE{fond=inclure/footer,self=#SELF} />
</body>
</html>
</BOUCLE_principale>

15
inclure/header.html Normal file
View File

@@ -0,0 +1,15 @@
[(#REM)
Si id_article n'est pas défini, c'est que c'est la home page (id=10) ou que c'est autre chose (rubrique, auteur, etc)
SET{contact} est une variable disponible localement.
]
#SET{contact, help@gnuragist.es - 0466/47.25.33}
<BOUCLE_principale(ARTICLES) {id_article=#ENV{id_article,10}}>
<section id=head>
<h1>#TITRE</h1>
<h2>#SOUSTITRE</h2>
<h3>#GET{contact}</h3>
<hr class=title>
</section>
</BOUCLE_principale>

View File

@@ -1,13 +1,13 @@
[(#REM)
Voir https://doc.gnuragist.es/spip-from-scratch?both pour des notes
]
<INCLURE{fond=inclure/head} />
<body>
<section id=head>
<h1>GNUragistes !</h1>
<h2>Support Gnu/Linux - Réanimistes d'ordinateurs libres</h2>
<h3>help@gnuragist.es - 0466/47.25.33</h3>
<hr class=title>
</section>
<INCLURE{fond=inclure/header,env} />
<INCLURE{fond=inclure/nav} />
<section id="main">