feat: Set pageClass in app template

This commit is contained in:
sthag 2025-06-23 19:30:29 +02:00
parent 10d6fe7d82
commit e76f457851
8 changed files with 2 additions and 11 deletions

View file

@ -5,7 +5,6 @@ tags:
--- ---
{% set pageId = "init" %} {% set pageId = "init" %}
{% set pageClass = "html_ui" %}
{% extends "hippie/_app.njk" %} {% extends "hippie/_app.njk" %}
{% import "hippie/macros/_placeholder.njk" as ph %} {% import "hippie/macros/_placeholder.njk" as ph %}

View file

@ -4,7 +4,6 @@ tags:
- ui - ui
--- ---
{% set pageId = page.fileSlug %} {% set pageId = page.fileSlug %}
{% set pageClass = "h_full_view" %}
{% set bodyClass = "body_ui" %} {% set bodyClass = "body_ui" %}
{% extends "hippie/_app.njk" %} {% extends "hippie/_app.njk" %}

View file

@ -4,7 +4,6 @@ tags:
- ui - ui
--- ---
{% set pageId = page.fileSlug %} {% set pageId = page.fileSlug %}
{% set pageClass = "h_full_view" %}
{% set bodyClass = "body_frame" %} {% set bodyClass = "body_frame" %}
{% extends "hippie/_app.njk" %} {% extends "hippie/_app.njk" %}
@ -180,6 +179,6 @@ tags:
</footer> </footer>
{% endblock %} {% endblock %}
{%- block script %} {% block script %}
{{ super() }} {{ super() }}
{% endblock %} {% endblock %}

View file

@ -3,7 +3,6 @@ title: Form
tags: tags:
- ui - ui
--- ---
{% set pageClass = "html_ui" %}
{% set bodyClass = "body_ui" %} {% set bodyClass = "body_ui" %}
{% extends "hippie/_app.njk" %} {% extends "hippie/_app.njk" %}

View file

@ -4,9 +4,6 @@ tags:
- demoExample - demoExample
- index - index
--- ---
{% set pageClass = "html_ui" %}
{% extends "hippie/_app.njk" %} {% extends "hippie/_app.njk" %}
{% import "hippie/macros/_placeholder.njk" as ph %} {% import "hippie/macros/_placeholder.njk" as ph %}

View file

@ -4,7 +4,6 @@ tags:
- ui - ui
--- ---
{% set pageId = page.fileSlug %} {% set pageId = page.fileSlug %}
{% set pageClass = "h_full_view" %}
{% set bodyClass = "body_new" %} {% set bodyClass = "body_new" %}
{% extends "hippie/_app.njk" %} {% extends "hippie/_app.njk" %}

View file

@ -4,7 +4,6 @@ tags:
- ui - ui
--- ---
{% set pageId = page.fileSlug %} {% set pageId = page.fileSlug %}
{% set pageClass = "h_full_view" %}
{% set bodyClass = "body_frame" %} {% set bodyClass = "body_frame" %}
{% extends "hippie/_app.njk" %} {% extends "hippie/_app.njk" %}

View file

@ -1,6 +1,6 @@
<!-- app.template --> <!-- app.template -->
<!DOCTYPE html> <!DOCTYPE html>
<html lang="de" class="{{ pageClass }}" id="{{ pageId }}"> <html lang="de" class="html_ui" id="{{ pageId }}">
<head> <head>
<meta charset="utf-8"> <meta charset="utf-8">