diff --git a/site/models/year.php b/site/models/year.php new file mode 100644 index 0000000..e9eb907 --- /dev/null +++ b/site/models/year.php @@ -0,0 +1,8 @@ +children()->listed(); + $linked = $this->linkedTexts()->toPages(); + return $texts->merge($linked); + } +} \ No newline at end of file diff --git a/site/snippets/nav__texts--collection.php b/site/snippets/nav__texts--collection.php index cf29a0e..f62e281 100644 --- a/site/snippets/nav__texts--collection.php +++ b/site/snippets/nav__texts--collection.php @@ -18,7 +18,8 @@ class="see-more toggle-btn toggle-btn--left" @click="edito = !edito">Lire