2
0
mirror of https://github.com/inventree/inventree-website.git synced 2025-04-29 14:06:45 +00:00

conditional fullwidth

This commit is contained in:
Matthias Mair 2022-04-22 22:43:12 +02:00
parent b8f657d263
commit 4470936e1d
2 changed files with 6 additions and 1 deletions

View File

@ -2,7 +2,11 @@
layout: default layout: default
--- ---
<article class="prose prose-sm sm:prose lg:prose-lg xl:prose-xl mx-auto min-h-screen"> <article class="prose prose-sm sm:prose lg:prose-lg xl:prose-xl mx-auto min-h-screen"
{% if layout.fullwith %}
style="max-width: 90%"
{% endif %}
>
{% if layout.notitle != true %} {% if layout.notitle != true %}
<h2>{{ page.title }}</h2> <h2>{{ page.title }}</h2>
{% endif %} {% endif %}

View File

@ -1,6 +1,7 @@
--- ---
layout: content layout: content
notitle: true notitle: true
fullwith: true
--- ---
<h2>{{ page.name }} <h2>{{ page.name }}
<span class="sm:ml-2 text-sm">{% include partial/publisher_ref.html pub=page.publisher %}</span> <span class="sm:ml-2 text-sm">{% include partial/publisher_ref.html pub=page.publisher %}</span>