From 8fb5090b74bf866104324bbd533a661b259f4cd9 Mon Sep 17 00:00:00 2001 From: Chemaclass Date: Fri, 29 Nov 2024 18:26:14 +0100 Subject: [PATCH] chore: extract editable block from 2-column-layout and use it only on page template; not on page-api template --- templates/layouts/two-column-layout.html | 5 +---- templates/page-api.html | 1 + templates/page.html | 8 ++++++++ 3 files changed, 10 insertions(+), 4 deletions(-) diff --git a/templates/layouts/two-column-layout.html b/templates/layouts/two-column-layout.html index 5c8a271..f3447f7 100644 --- a/templates/layouts/two-column-layout.html +++ b/templates/layouts/two-column-layout.html @@ -9,10 +9,7 @@ {% include "navigation/site-navigation.html" %}
- - {% set url = config.extra.repo_content_url ~ page.relative_path %} - Edit me - + {% block editable %} {% endblock %} {% block content %} {% endblock %} {% include "footer.html" %} diff --git a/templates/page-api.html b/templates/page-api.html index c87f955..e3da418 100644 --- a/templates/page-api.html +++ b/templates/page-api.html @@ -4,6 +4,7 @@ {{ page.title }} | {{ config.title }} {% endblock meta_content %} + {% block content %}

{{page.title}}

diff --git a/templates/page.html b/templates/page.html index 317a4e0..fe46a69 100644 --- a/templates/page.html +++ b/templates/page.html @@ -4,6 +4,7 @@ {{ page.title }} | {{ config.title }} {% endblock meta_content %} + {% block content %}

{{page.title}}