From c3255a0018a56756d9e8208eadbaccfd9aa8ac07 Mon Sep 17 00:00:00 2001 From: Benoit Donneaux Date: Fri, 24 May 2024 12:12:10 +0200 Subject: [PATCH] Add relative_url filter for preview context Signed-off-by: Benoit Donneaux --- src/_includes/head/custom.html | 2 +- src/_posts/2020-09-08-welcome.md | 2 +- src/_posts/2020-09-09-post-1.md | 2 +- src/_posts/2020-09-09-post-2.md | 2 +- src/_posts/2020-09-09-post-3.md | 2 +- src/index.html | 18 +++++++++--------- 6 files changed, 14 insertions(+), 14 deletions(-) diff --git a/src/_includes/head/custom.html b/src/_includes/head/custom.html index 7c8dfb6..5e10b2f 100644 --- a/src/_includes/head/custom.html +++ b/src/_includes/head/custom.html @@ -1,5 +1,5 @@ - + diff --git a/src/_posts/2020-09-08-welcome.md b/src/_posts/2020-09-08-welcome.md index ce89063..cce91e7 100644 --- a/src/_posts/2020-09-08-welcome.md +++ b/src/_posts/2020-09-08-welcome.md @@ -6,7 +6,7 @@ excerpt: "Welcome to Dummy Jekyll" header: teaser: /assets/images/posts/unsplash-welcome.jpg gallery: - - image_path: assets/images/posts/unsplash-welcome.jpg + - image_path: /assets/images/posts/unsplash-welcome.jpg alt: "welcome" --- {% include gallery %} diff --git a/src/_posts/2020-09-09-post-1.md b/src/_posts/2020-09-09-post-1.md index 48f60a0..9f4c0e2 100644 --- a/src/_posts/2020-09-09-post-1.md +++ b/src/_posts/2020-09-09-post-1.md @@ -6,7 +6,7 @@ excerpt: "This is a generic post." header: teaser: /assets/images/posts/unsplash-post.jpg gallery: - - image_path: assets/images/posts/unsplash-post.jpg + - image_path: /assets/images/posts/unsplash-post.jpg alt: "post" --- {% include gallery %} diff --git a/src/_posts/2020-09-09-post-2.md b/src/_posts/2020-09-09-post-2.md index 934085c..5342ecb 100644 --- a/src/_posts/2020-09-09-post-2.md +++ b/src/_posts/2020-09-09-post-2.md @@ -6,7 +6,7 @@ excerpt: "This is a generic post." header: teaser: /assets/images/posts/unsplash-post.jpg gallery: - - image_path: assets/images/posts/unsplash-post.jpg + - image_path: /assets/images/posts/unsplash-post.jpg alt: "post" --- {% include gallery %} diff --git a/src/_posts/2020-09-09-post-3.md b/src/_posts/2020-09-09-post-3.md index f67d87a..73b2f3d 100644 --- a/src/_posts/2020-09-09-post-3.md +++ b/src/_posts/2020-09-09-post-3.md @@ -6,7 +6,7 @@ excerpt: "This is a generic post." header: teaser: /assets/images/posts/unsplash-post.jpg gallery: - - image_path: assets/images/posts/unsplash-post.jpg + - image_path: /assets/images/posts/unsplash-post.jpg alt: "post" --- {% include gallery %} diff --git a/src/index.html b/src/index.html index f3d4db2..9ce4766 100644 --- a/src/index.html +++ b/src/index.html @@ -17,14 +17,14 @@ excerpt: "Tahoe-LAFS is a Free and Open decentralized cloud storage system. documentation: - title: "Welcome The Least-Authority File Store" documentation_list: - - image_path: /assets/images/overview.png + - image_path: {{ /assets/images/overview.png | relative_url }} alt: "overview" title: "Overview" excerpt: "A one-page summary explains the unique properties of this system." url: "https://tahoe-lafs.readthedocs.io/en/latest/about-tahoe.html" btn_label: "Read More" 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/)" alt: "manual" title: "Manual" @@ -32,7 +32,7 @@ documentation_list: url: "https://tahoe-lafs.readthedocs.io/" btn_label: "Read More" 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/)" alt: "wiki" title: "Wiki" @@ -44,7 +44,7 @@ contribute: - title: "Get Involved" excerpt: "" 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/)" alt: "mailing" title: "Mailing list" @@ -52,7 +52,7 @@ contribute_list: url: "https://lists.tahoe-lafs.org/mailman/listinfo/tahoe-dev" btn_label: "Subscribe" 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/)" alt: "messaging" title: "Instant messaging" @@ -60,7 +60,7 @@ contribute_list: url: "https://libera.chat/" btn_label: "Chat" 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/)" alt: "meet" title: "Meeting" @@ -72,7 +72,7 @@ blog: - title: "News" excerpt: "Find here under a list of the latest articles on the subjects that matter for us." about: - - image_path: /assets/images/volunteers.jpg + - image_path: {{ /assets/images/volunteers.jpg | relative_url }} image_caption: "Image courtesy of [Unsplash](https://unsplash.com/)" alt: "about image" title: "Volunteers" @@ -96,10 +96,10 @@ about: