2
0
mirror of https://github.com/inventree/inventree-website.git synced 2025-04-28 05:26:44 +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
---
<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 %}
<h2>{{ page.title }}</h2>
{% endif %}

View File

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