mirror of
				https://github.com/inventree/inventree-website.git
				synced 2025-11-04 07:25:46 +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>
 | 
					      <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>
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -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>
 | 
					 | 
				
			||||||
@@ -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">
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -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 %}
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user