mirror of
https://github.com/inventree/inventree-website.git
synced 2025-06-13 02:25:31 +00:00
update publisher ref
This commit is contained in:
4
_includes/partial/publisher_ref.html
Normal file
4
_includes/partial/publisher_ref.html
Normal file
@ -0,0 +1,4 @@
|
||||
{% assign publisher_ref = site.publishers | where: 'short_name', include.pub | first %}
|
||||
<a href="{{ publisher_ref.url | relative_url }}" class="custom-underline-blue">
|
||||
by <span class="inline-flex"><img src="https://github.com/{{ include.pub }}.png?size=40" alt="mdo" class="self-center w-5 h-5 rounded-full mx-1"> {{ include.pub }}</span>
|
||||
</a>
|
@ -11,7 +11,7 @@
|
||||
<h3 class="mb-0">{{ plugin.name }}</h3>
|
||||
<div class="mb-1 text-muted">
|
||||
{% if plugin.published_on %}{{ plugin.published_on | date_to_string }} - {% endif %}
|
||||
{% include publisher_ref.html pub=plugin.publisher %}
|
||||
{% include partial/publisher_ref.html pub=plugin.publisher %}
|
||||
</div>
|
||||
<p class="mb-auto">{{ plugin.excerpt | mardownify | remove: '<p>' | remove: '</p>' }}</p>
|
||||
<a href="{{ plugin.url | relative_url }}" class="stretched-link" aria-label="open plugin details"></a>
|
||||
|
@ -1,4 +0,0 @@
|
||||
{% assign publisher_ref = site.publishers | where: 'short_name', include.pub | first %}
|
||||
<a href="{{ publisher_ref.url | relative_url }}" class="link-secondary">
|
||||
<p class="text-muted">by <img src="https://github.com/{{ include.pub }}.png?size=40" alt="mdo" class="rounded-circle" width="20" height="20"> {{ include.pub }}</p>
|
||||
</a>
|
Reference in New Issue
Block a user