2
0
mirror of https://github.com/inventree/inventree-website.git synced 2025-04-28 05:26:44 +00:00

update publisher ref

This commit is contained in:
Matthias Mair 2022-02-07 01:56:29 +01:00
parent c0a8b31331
commit 23c6a48aea
5 changed files with 7 additions and 7 deletions

View 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>

View File

@ -11,7 +11,7 @@
<h3 class="mb-0">{{ plugin.name }}</h3> <h3 class="mb-0">{{ plugin.name }}</h3>
<div class="mb-1 text-muted"> <div class="mb-1 text-muted">
{% if plugin.published_on %}{{ plugin.published_on | date_to_string }} - {% endif %} {% 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> </div>
<p class="mb-auto">{{ plugin.excerpt | mardownify | remove: '<p>' | remove: '</p>' }}</p> <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> <a href="{{ plugin.url | relative_url }}" class="stretched-link" aria-label="open plugin details"></a>

View File

@ -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>

View File

@ -2,7 +2,7 @@
layout: default layout: default
--- ---
<h1>{{ page.name }}</h1> <h1>{{ page.name }}</h1>
{% include publisher_ref.html pub=page.publisher %} {% include partial/publisher_ref.html pub=page.publisher %}
<div class="row g-5"> <div class="row g-5">
<div class="col-md-8"> <div class="col-md-8">

View File

@ -13,7 +13,7 @@ title: Blog
<a href="{{ post.url | relative_url }}">{{ post.title }}</a> <a href="{{ post.url | relative_url }}">{{ post.title }}</a>
</h2> </h2>
<span class="leading-relaxed mb-8">{{ post.excerpt }}</span> <span class="leading-relaxed mb-8">{{ post.excerpt }}</span>
{% include publisher_ref.html pub=post.publisher %} {% include partial/publisher_ref.html pub=post.publisher %}
</div> </div>
</div> </div>
{% endfor %} {% endfor %}