Add relative_url filter for preview context
Jekyll / jekyll (pull_request) Failing after 20s Details

Signed-off-by: Benoit Donneaux <benoit@leastauthority.com>
This commit is contained in:
bEn 2024-05-24 12:12:10 +02:00
parent e824b07837
commit c3255a0018
6 changed files with 14 additions and 14 deletions

View File

@ -1,5 +1,5 @@
<!-- start custom head snippets --> <!-- start custom head snippets -->
<link href="/assets/images/favicon.ico" rel="shortcut icon" type="image/x-icon"> <link href="{{ /assets/images/favicon.ico | relative_url }}" rel="shortcut icon" type="image/x-icon">
<!-- end custom head snippets --> <!-- end custom head snippets -->

View File

@ -6,7 +6,7 @@ excerpt: "Welcome to Dummy Jekyll"
header: header:
teaser: /assets/images/posts/unsplash-welcome.jpg teaser: /assets/images/posts/unsplash-welcome.jpg
gallery: gallery:
- image_path: assets/images/posts/unsplash-welcome.jpg - image_path: /assets/images/posts/unsplash-welcome.jpg
alt: "welcome" alt: "welcome"
--- ---
{% include gallery %} {% include gallery %}

View File

@ -6,7 +6,7 @@ excerpt: "This is a generic post."
header: header:
teaser: /assets/images/posts/unsplash-post.jpg teaser: /assets/images/posts/unsplash-post.jpg
gallery: gallery:
- image_path: assets/images/posts/unsplash-post.jpg - image_path: /assets/images/posts/unsplash-post.jpg
alt: "post" alt: "post"
--- ---
{% include gallery %} {% include gallery %}

View File

@ -6,7 +6,7 @@ excerpt: "This is a generic post."
header: header:
teaser: /assets/images/posts/unsplash-post.jpg teaser: /assets/images/posts/unsplash-post.jpg
gallery: gallery:
- image_path: assets/images/posts/unsplash-post.jpg - image_path: /assets/images/posts/unsplash-post.jpg
alt: "post" alt: "post"
--- ---
{% include gallery %} {% include gallery %}

View File

@ -6,7 +6,7 @@ excerpt: "This is a generic post."
header: header:
teaser: /assets/images/posts/unsplash-post.jpg teaser: /assets/images/posts/unsplash-post.jpg
gallery: gallery:
- image_path: assets/images/posts/unsplash-post.jpg - image_path: /assets/images/posts/unsplash-post.jpg
alt: "post" alt: "post"
--- ---
{% include gallery %} {% include gallery %}

View File

@ -17,14 +17,14 @@ excerpt: "Tahoe-LAFS is a Free and Open decentralized cloud storage system.
documentation: documentation:
- title: "Welcome <i>The</i> Least-Authority File Store" - title: "Welcome <i>The</i> Least-Authority File Store"
documentation_list: documentation_list:
- image_path: /assets/images/overview.png - image_path: {{ /assets/images/overview.png | relative_url }}
alt: "overview" alt: "overview"
title: "Overview" title: "Overview"
excerpt: "A one-page summary explains the unique properties of this system." excerpt: "A one-page summary explains the unique properties of this system."
url: "https://tahoe-lafs.readthedocs.io/en/latest/about-tahoe.html" url: "https://tahoe-lafs.readthedocs.io/en/latest/about-tahoe.html"
btn_label: "Read More" btn_label: "Read More"
btn_class: "btn--primary" btn_class: "btn--primary"
- image_path: assets/images/manual.jpg - image_path: {{ /assets/images/manual.jpg | relative_url }}
image_caption: "Image courtesy of [Unsplash](https://unsplash.com/)" image_caption: "Image courtesy of [Unsplash](https://unsplash.com/)"
alt: "manual" alt: "manual"
title: "Manual" title: "Manual"
@ -32,7 +32,7 @@ documentation_list:
url: "https://tahoe-lafs.readthedocs.io/" url: "https://tahoe-lafs.readthedocs.io/"
btn_label: "Read More" btn_label: "Read More"
btn_class: "btn--primary" btn_class: "btn--primary"
- image_path: /assets/images/wiki.jpg - image_path: {{ /assets/images/wiki.jpg | relative_url }}
image_caption: "Image courtesy of [Unsplash](https://unsplash.com/)" image_caption: "Image courtesy of [Unsplash](https://unsplash.com/)"
alt: "wiki" alt: "wiki"
title: "Wiki" title: "Wiki"
@ -44,7 +44,7 @@ contribute:
- title: "Get Involved" - title: "Get Involved"
excerpt: "" excerpt: ""
contribute_list: contribute_list:
- image_path: assets/images/mailing.jpg - image_path: {{ /assets/images/mailing.jpg | relative_url }}
image_caption: "Image courtesy of [Unsplash](https://unsplash.com/)" image_caption: "Image courtesy of [Unsplash](https://unsplash.com/)"
alt: "mailing" alt: "mailing"
title: "Mailing list" title: "Mailing list"
@ -52,7 +52,7 @@ contribute_list:
url: "https://lists.tahoe-lafs.org/mailman/listinfo/tahoe-dev" url: "https://lists.tahoe-lafs.org/mailman/listinfo/tahoe-dev"
btn_label: "Subscribe" btn_label: "Subscribe"
btn_class: "btn--primary" btn_class: "btn--primary"
- image_path: /assets/images/messaging.jpg - image_path: {{ /assets/images/messaging.jpg | relative_url }}
image_caption: "Image courtesy of [Unsplash](https://unsplash.com/)" image_caption: "Image courtesy of [Unsplash](https://unsplash.com/)"
alt: "messaging" alt: "messaging"
title: "Instant messaging" title: "Instant messaging"
@ -60,7 +60,7 @@ contribute_list:
url: "https://libera.chat/" url: "https://libera.chat/"
btn_label: "Chat" btn_label: "Chat"
btn_class: "btn--primary" btn_class: "btn--primary"
- image_path: /assets/images/meet.jpg - image_path: {{ /assets/images/meet.jpg | relative_url }}
image_caption: "Image courtesy of [Unsplash](https://unsplash.com/)" image_caption: "Image courtesy of [Unsplash](https://unsplash.com/)"
alt: "meet" alt: "meet"
title: "Meeting" title: "Meeting"
@ -72,7 +72,7 @@ blog:
- title: "News" - title: "News"
excerpt: "Find here under a list of the latest articles on the subjects that matter for us." excerpt: "Find here under a list of the latest articles on the subjects that matter for us."
about: about:
- image_path: /assets/images/volunteers.jpg - image_path: {{ /assets/images/volunteers.jpg | relative_url }}
image_caption: "Image courtesy of [Unsplash](https://unsplash.com/)" image_caption: "Image courtesy of [Unsplash](https://unsplash.com/)"
alt: "about image" alt: "about image"
title: "Volunteers" title: "Volunteers"
@ -96,10 +96,10 @@ about:
<div class="grid__item"> <div class="grid__item">
<article class="archive__item" itemscope itemtype="https://schema.org/CreativeWork"> <article class="archive__item" itemscope itemtype="https://schema.org/CreativeWork">
<div class="archive__item-teaser"> <div class="archive__item-teaser">
<img src="{{post.header.teaser}}" alt=""> <img src="{{ post.header.teaser | relative_url }}" alt="">
</div> </div>
<h2 class="archive__item-title" itemprop="headline"> <h2 class="archive__item-title" itemprop="headline">
<a href="{{ post.url }}" rel="permalink">{{ post.title }}</a> <a href="{{ post.url | relative_url }}" rel="permalink">{{ post.title }}</a>
</h2> </h2>
<p class="archive__item-excerpt" itemprop="description">{{ post.excerpt }}</p> <p class="archive__item-excerpt" itemprop="description">{{ post.excerpt }}</p>
</article> </article>