untrack content dir

This commit is contained in:
isUnknown 2024-03-09 11:27:10 +01:00
parent 55684b6079
commit fb310b279e
47 changed files with 634 additions and 189 deletions

View file

@ -1,44 +1,23 @@
<?php snippet('header') ?>
<main class="top bottom" style="
--top:6;
--bottom: 3;
">
<h2 class="| fs-m fw-light ta-center full-width flex" style="
--content:center;
">
critique des arts<br />
et des techniques
</h2>
<div id="tabs" x-data="{
activeTab: ''
}">
<div class="toggle-btns | top flex space-between" style="
--top:10;
--content:space-between;
">
<button
class="toggle left"
:class="activeTab === 'edito' ? 'open' : 'close'"
@click="[openTab($data, 'edito'), scrollToElem('.content')]"
>éditorial</button>
<button
class="toggle right"
:class="activeTab === 'articles' ? 'open' : 'close'"
@click="[openTab($data, 'articles'), scrollToElem('.content')]"
>articles</button>
</div>
<div class="content">
<article x-show="activeTab === 'edito'">
<?= $site->edito() ?>
</article>
<ul x-show="activeTab === 'articles'">
<?php foreach($site->collections('articles') as $article): ?>
<li class="article">
<?= var_dump($article) ?>
</li>
<?php endforeach ?>
</ul>
</div>
<header id="header">
<div id="logo">
<a href="/" class="no-line">
<h1 id="actuel">actuel</h1>
<h1 id="inactuel">inactuel</h1>
</a>
</div>
</header>
<main id="<?= $page->template() ?>">
<h3 class="title-center">
critique des arts<br />
et des techniques<br>
</h3>
<?php snippet('tabs', [
'left' => [
'label' => 'édito',
'content' => $site->edito()
]
]) ?>
</main>
<?php snippet('footer') ?>

20
site/templates/linear.php Normal file
View file

@ -0,0 +1,20 @@
<?php snippet('header') ?>
<header id="header" class="minimized">
<div id="logo" >
<a href="/" class="no-line">
<h2 id="actuel">actuel</h2>
<h2 id="inactuel">inactuel</h2>
</a>
</div>
</header>
<main id="<?= $page->template() ?>">
<?php snippet('tabs', [
'left' => [
'label' => 'Édito ' . $page->parent()->title(),
'content' => $page->parent()->edito()
]
]) ?>
<h1 class="title-center"><?= $page->title() ?></h1>
</main>
<?php snippet('footer') ?>