2
0
mirror of https://github.com/inventree/inventree-website.git synced 2025-04-27 21:16:45 +00:00
inventree-website/_layouts/publisher.html
Matthias Mair bfcc61f789
Fix publisher section (#103)
* fix logo size and margin

* make heading a bit smaller

* fix posts not showing up

* switch to the more uniform auhtor

* fix team page to use the main text block

* fix reference for oliver

* Change verbage

* Add team member badge

* Add icon

Fix publisher section
Fixes #102
2023-01-19 23:43:53 +01:00

57 lines
1.6 KiB
HTML

---
layout: content
notitle: true
---
<h2>
<div class="flex items-end">
{% if page.github %}
<div class="mb-1">
<img src="https://github.com/{{ page.github }}.png?size=40" alt="mdo" class="rounded-full" width="40" height="40" style="margin:0px">
</div>
{% endif %}
{{ page.name }}
</div>
</h2>
<div>
{% if page.github %}
<a href="https://github.com/{{page.github}}"><span class="badge bg-secondary">GitHub</span></a>
{% endif %}
{% if page.website %}
<a href="{{page.website}}"><span class="badge bg-secondary">Website</span></a>
{% endif %}
{% assign filtered_team = site.data.team.team | where: 'tag', page.short_name %}
{% if filtered_team and filtered_team.size != 0 %}
<a href="{% link about/team.html %}"><span class="badge bg-lime-600"><span class="fa-solid fa-shield"></span>Team Member</span></a>
{% endif %}
</div>
<blockquote class="blockquote">
{{ content }}
</blockquote>
{% assign filtered_posts = site.posts | where: 'author', page.short_name %}
{% if filtered_posts and filtered_posts.size != 0 %}
<h3>Posts</h3>
<ul class="list-unstyled">
{% for post in filtered_posts %}
<li>{{ post.date | date_to_string }} <a href="{{ post.url | relative_url }}" class="lead">{{ post.title }}</a></li>
{% endfor %}
</ul>
{% endif %}
{% assign filtered_plugins = site.repo | where: 'author', page.short_name %}
{% if filtered_plugins and filtered_plugins.size != 0 %}
<h3>Plugins</h3>
<ul class="list-unstyled">
{% for plugin in filtered_plugins %}
<li>
<a href="{{ plugin.url | relative_url }}">
{{ plugin.title }}
</a>
</li>
{% endfor %}
</ul>
{% endif %}