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

use content layout to render publishers

This commit is contained in:
Matthias Mair 2022-04-18 21:53:28 +02:00
parent 3e4d933335
commit de810bc6ee
2 changed files with 5 additions and 2 deletions

View File

@ -3,6 +3,8 @@ 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.notitle != true %}
<h2>{{ page.title }}</h2> <h2>{{ page.title }}</h2>
{% endif %}
{{ content }} {{ content }}
</article> </article>

View File

@ -1,12 +1,13 @@
--- ---
layout: default layout: content
notitle: true
--- ---
<h1> <h1>
<div class="flex"> <div class="flex">
{% if page.github %} {% if page.github %}
<img src="https://github.com/{{ page.github }}.png?size=40" alt="mdo" class="rounded-circle" width="40" height="40" style="margin:0px"> <img src="https://github.com/{{ page.github }}.png?size=40" alt="mdo" class="rounded-circle" width="40" height="40" style="margin:0px">
{% endif %} {% endif %}
{{ page.name }} {{ page.name }}
</div> </div>
</h1> </h1>