1
0
Fork 0
mirror of https://github.com/codex-team/codex.docs.git synced 2025-08-05 05:25:27 +02:00

[Feature] Static pages rendering 🤩 (#274)

This commit is contained in:
Nikita Melnikov 2022-10-17 08:25:38 +08:00 committed by GitHub
parent 8c794304b6
commit 4ad37abed0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
20 changed files with 554 additions and 705 deletions

View file

@ -12,13 +12,13 @@
<script>
</script>
<body class="greeting-body">
{% include "components/header.twig" %}
{% include "../components/header.twig" %}
<div class="greeting-content">
{{ svg('frog') }}
<p class="greeting-content__message">
Its time to create the first page!
</p>
{% include 'components/button.twig' with {label: 'Add page', icon: 'plus', size: 'small', url: '/page/new'} %}
{% include '../components/button.twig' with {label: 'Add page', icon: 'plus', size: 'small', url: '/page/new'} %}
</div>
{% if config.yandexMetrikaId is not empty %}
<script type="text/javascript" >

View file

@ -1,4 +1,4 @@
{% extends 'layout.twig' %}
{% extends '../layout.twig' %}
{% block body %}
<article class="page" data-module="page">
@ -44,7 +44,7 @@
{% endif %}
{% endfor %}
</section>
{% include 'components/navigator.twig' with {previousPage: previousPage, nextPage: nextPage} %}
{% include '../components/navigator.twig' with {previousPage: previousPage, nextPage: nextPage} %}
</article>
{% endblock %}