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:
parent
587062d4d1
commit
6cc223e869
2 changed files with 12 additions and 3 deletions
|
@ -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' %}
|
||||
|
||||
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue