From cfd437d2b8f46c36f75c1868af99ef7d726ef45e Mon Sep 17 00:00:00 2001 From: Sandro Leuchter Date: Thu, 13 Feb 2020 03:47:28 +0100 Subject: fixed base of relative URLs --- exampleSite/config.yaml | 2 +- exampleSite/content/blue.md | 5 ++++- exampleSite/content/orange/_index.md | 6 +++++- exampleSite/content/red/_index.md | 5 ++++- 4 files changed, 14 insertions(+), 4 deletions(-) diff --git a/exampleSite/config.yaml b/exampleSite/config.yaml index b43dcba..7621c8e 100644 --- a/exampleSite/config.yaml +++ b/exampleSite/config.yaml @@ -26,7 +26,7 @@ params: allowLabel: Allow policy: linktext: privacy policy - url: /privacy/ + url: privacy/ dropdown: - entry1: url: / diff --git a/exampleSite/content/blue.md b/exampleSite/content/blue.md index 7499f96..521b7b3 100644 --- a/exampleSite/content/blue.md +++ b/exampleSite/content/blue.md @@ -15,9 +15,12 @@ link: url: https://commons.wikimedia.org/wiki/File:Mandarin_Oranges_(Citrus_Reticulata).jpg linktext: Foto by Joe Ravi [CC BY-SA (https://creativecommons.org/licenses/by-sa/3.0)] cover: - img: /orange/orange.jpg + img: ../orange/orange.jpg link: https://commons.wikimedia.org/wiki/File:Mandarin_Oranges_(Citrus_Reticulata).jpg --- +*Do not use relative URLs starting with ``/`` in front matter and content because this would not allow a ``baseURL`` with a leading path.* + +![cover](../orange/orange.jpg) ## section 1 diff --git a/exampleSite/content/orange/_index.md b/exampleSite/content/orange/_index.md index bb36e58..7f9e7eb 100644 --- a/exampleSite/content/orange/_index.md +++ b/exampleSite/content/orange/_index.md @@ -15,9 +15,12 @@ link: url: https://commons.wikimedia.org/wiki/File:Mandarin_Oranges_(Citrus_Reticulata).jpg linktext: Foto by Joe Ravi [CC BY-SA (https://creativecommons.org/licenses/by-sa/3.0)] cover: - img: orange.jpg + img: ../orange/orange.jpg link: https://commons.wikimedia.org/wiki/File:Mandarin_Oranges_(Citrus_Reticulata).jpg --- +*Do not use relative URLs starting with ``/`` in front matter and content because this would not allow a ``baseURL`` with a leading path.* + +![cover](orange.jpg) ## section 1 @@ -25,6 +28,7 @@ Nam liber tempor cum soluta nobis eleifend option congue nihil imperdiet doming Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie consequat, vel illum dolore eu feugiat nulla facilisis. + ## section 2 At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, At accusam aliquyam diam diam dolore dolores duo eirmod eos erat, et nonumy sed tempor et et invidunt justo labore Stet clita ea et gubergren, kasd magna no rebum. sanctus sea sed takimata ut vero voluptua. est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat. diff --git a/exampleSite/content/red/_index.md b/exampleSite/content/red/_index.md index 60f0da9..44bc727 100644 --- a/exampleSite/content/red/_index.md +++ b/exampleSite/content/red/_index.md @@ -12,5 +12,8 @@ link: url: https://commons.wikimedia.org/wiki/File:2013_09_10_Tomate.jpg linktext: Foto by Friedrich Haag [CC BY-SA (https://creativecommons.org/licenses/by-sa/4.0) cover: - img: ./tomato.jpg + img: tomato.jpg --- +*Do not use relative URLs starting with ``/`` in front matter and content because this would not allow a ``baseURL`` with a leading path.* + +![cover](tomato.jpg) \ No newline at end of file -- cgit v1.2.3