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

fix links

This commit is contained in:
Matthias Mair 2022-02-07 00:29:53 +01:00
parent b046190388
commit 5e1a7efe04
6 changed files with 6 additions and 6 deletions

View File

@ -14,7 +14,7 @@
{% include publisher_ref.html pub=plugin.publisher %}
</div>
<p class="mb-auto">{{ plugin.excerpt | mardownify | remove: '<p>' | remove: '</p>' }}</p>
<a href="{{ plugin.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>
</div>
</div>

View File

@ -1,4 +1,4 @@
{% assign publisher_ref = site.publishers | where: 'short_name', include.pub | first %}
<a href="{{ publisher_ref.url }}" class="link-secondary">
<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

@ -21,7 +21,7 @@ layout: default
{{ page.date | date_to_string }}
{% assign publisher = site.publishers | where: 'short_name', page.publisher | first %}
{% if publisher %}
- <a href="{{ publisher.url }}">{{ publisher.name }}</a>
- <a href="{{ publisher.url | relative_url }}">{{ publisher.name }}</a>
{% endif %}
</p>
{{ content }}

View File

@ -7,7 +7,7 @@ title: Blog
<ul>
{% for post in site.posts %}
<li>
<h2><a href="{{ post.url }}">{{ post.title }}</a></h2>
<h2><a href="{{ post.url | relative_url }}">{{ post.title }}</a></h2>
<p>{{ post.excerpt }}</p>
</li>
{% endfor %}

View File

@ -9,7 +9,7 @@ title: Plugins
<div class="px-0">
<h1 class="display-4 fst-italic">{{post.title}}</h1>
<p class="lead my-3">{{post.excerpt}}</p>
<p class="lead mb-0"><a href="{{post.url}}" class="text-white fw-bold">Continue reading...</a></p>
<p class="lead mb-0"><a href="{{ post.url | relative_url }}" class="text-white fw-bold">Continue reading...</a></p>
</div>
</div>
{% endfor %}

View File

@ -7,7 +7,7 @@ title: Publishers
<ul>
{% for publisher in site.publishers %}
<li>
<h2><a href="{{ publisher.url }}">{{ publisher.name }}</a></h2>
<h2><a href="{{ publisher.url | relative_url }}">{{ publisher.name }}</a></h2>
<h3>{{ publisher.position }}</h3>
<p>{{ publisher.content | mardownify }}</p>
</li>