1
0
Fork 0
mirror of https://github.com/codex-team/codex.docs.git synced 2025-08-06 22:15:23 +02:00

Removed useless log, added docs to navigator component

This commit is contained in:
slaveeks 2022-07-01 21:34:42 +03:00
parent 587062d4d1
commit 6cc223e869
2 changed files with 12 additions and 3 deletions

View file

@ -1,3 +1,15 @@
{#
Reusable navigaor component.
Available props:
- label
- direction: previous, next
- url: navigation link
- class: additional class for the button
Usage example:
{% include 'components/navigator.twig' with {label: 'Previous page', direction: 'previous'} %}
#}
{% set mainClass = 'navigator' %}

View file

@ -23,9 +23,6 @@
{% include 'components/button.twig' with {label: 'Edit', icon: 'pencil', size: 'small', url: '/page/edit/' ~ page._id, class: 'page__header-button'} %}
{% endif %}
</header>
<script>
console.log({{prev.uri}})
</script>
<h1 class="page__title">
{{ page.title }}
</h1>