Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/tastaturtier/someparts-hugo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSandro Leuchter <sandro.leuchter@dama.io>2020-02-13 05:47:28 +0300
committerSandro Leuchter <sandro.leuchter@dama.io>2020-02-13 05:47:28 +0300
commitcfd437d2b8f46c36f75c1868af99ef7d726ef45e (patch)
tree8a9d82d0c86f30e293a53cb43de8e5a6422ca260
parent95251dd1266e6e04b687e0224056a1a8635de570 (diff)
fixed base of relative URLs
-rw-r--r--exampleSite/config.yaml2
-rw-r--r--exampleSite/content/blue.md5
-rw-r--r--exampleSite/content/orange/_index.md6
-rw-r--r--exampleSite/content/red/_index.md5
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