From 0eb23bf5c8a8717c07b2240b38a9e21e1489e949 Mon Sep 17 00:00:00 2001 From: Jan Raasch Date: Thu, 9 Jul 2020 11:21:57 +0200 Subject: [PATCH] chore: do not use / in the beginning of a URL Otherwise this does not work, if the baseURL has a subfolder in there, e.g. https://janraasch.github.io/hugo-scroll/ See https://github.com/gohugoio/hugoThemes#common-permalink-issues --- exampleSite/config.toml | 4 ++-- exampleSite/content/_index.md | 2 +- exampleSite/content/homepage/about-me.md | 6 +++--- exampleSite/content/homepage/services.md | 6 +++--- exampleSite/content/services.md | 8 ++++---- layouts/_default/baseof.html | 4 ++-- layouts/partials/head.html | 4 ++-- 7 files changed, 17 insertions(+), 17 deletions(-) diff --git a/exampleSite/config.toml b/exampleSite/config.toml index 07d1303..fdf71de 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -20,13 +20,13 @@ title = "Jane Doe - Nutrition Coach & Chef Consultant" description = "Nutrition Coach & Chef Consultant" # The path to your "favicon". This should be a square (at least 32px x 32px) png-file. - favicon = "/images/favicon.png" + favicon = "images/favicon.png" # These "images" are used for the structured data templates. This will show up, when # services like Twitter or Slack want to generate a preview of a link to your site. # See https://gohugo.io/templates/internal#twitter-cards and # https://gohugo.io/templates/internal#open-graph. - images = ["/images/cover-image.jpg"] + images = ["images/cover-image.jpg"] # Another "title" :-). This one is used as the site_name on the Hugo's internal # opengraph structured data template. diff --git a/exampleSite/content/_index.md b/exampleSite/content/_index.md index 4da0c88..e765ccd 100644 --- a/exampleSite/content/_index.md +++ b/exampleSite/content/_index.md @@ -1,5 +1,5 @@ --- -header_image: "/images/cover-image.jpg" +header_image: "images/cover-image.jpg" header_headline: "Jane Doe" header_subheadline: "Hi there , I am a Nutrition Coach & Chef Consultant" --- diff --git a/exampleSite/content/homepage/about-me.md b/exampleSite/content/homepage/about-me.md index b9c3c92..7c245be 100644 --- a/exampleSite/content/homepage/about-me.md +++ b/exampleSite/content/homepage/about-me.md @@ -3,10 +3,10 @@ title: 'About Me' weight: 3 header_menu: true --- -![Jane Doe](/images/happy-ethnic-woman-sitting-at-table-with-laptop-3769021.jpg) +![Jane Doe](images/happy-ethnic-woman-sitting-at-table-with-laptop-3769021.jpg) ##### Professionel Experience -A lot, but let us get into the details with some lorem ipsum. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent feugiat lectus et magna placerat tincidunt. Nullam sit amet lectus vitae elit mollis rhoncus non eget lorem. Ut tempor sed dui quis volutpat. +A lot, but let us get into the details with some lorem ipsum. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent feugiat lectus et magna placerat tincidunt. Nullam sit amet lectus vitae elit mollis rhoncus non eget lorem. Ut tempor sed dui quis volutpat. -In ultrices, est at lobortis pretium, magna quam mollis neque, id viverra odio est sit amet lorem. Mauris efficitur nunc vel lectus porttitor, sit amet sodales quam eleifend. Duis et felis ut mauris dignissim efficitur. Aliquam non sem eros. Integer elit ante, bibendum id hendrerit vitae, vestibulum eget risus. Nunc efficitur nisl in iaculis vestibulum. +In ultrices, est at lobortis pretium, magna quam mollis neque, id viverra odio est sit amet lorem. Mauris efficitur nunc vel lectus porttitor, sit amet sodales quam eleifend. Duis et felis ut mauris dignissim efficitur. Aliquam non sem eros. Integer elit ante, bibendum id hendrerit vitae, vestibulum eget risus. Nunc efficitur nisl in iaculis vestibulum. diff --git a/exampleSite/content/homepage/services.md b/exampleSite/content/homepage/services.md index 5f1e62c..d870a0b 100644 --- a/exampleSite/content/homepage/services.md +++ b/exampleSite/content/homepage/services.md @@ -11,7 +11,7 @@ That is the important part, right? You want to know what I can do for you. This This is not an easy task. You will likely have to pay money for this. You know what - let us look at a nice picture first. -![Nice picture to make you pay me ;-)](/images/selective-focus-photography-of-pasta-with-tomato-and-basil-1279330.jpg) +![Nice picture to make you pay me ;-)](images/selective-focus-photography-of-pasta-with-tomato-and-basil-1279330.jpg) Wow. That was nice, right? Well, call me and let us talk. @@ -21,11 +21,11 @@ Wow. That was nice, right? Well, call me and let us talk. Did you see the picture above? I can show you how to go from -![Let us get started on a clean slate](/images/board-bunch-cooking-food-349609.jpg) +![Let us get started on a clean slate](images/board-bunch-cooking-food-349609.jpg) to -![Let us get started on a clean slate](/images/woman-pouring-juice-on-glass-3184192.jpg) +![Let us get started on a clean slate](images/woman-pouring-juice-on-glass-3184192.jpg) in estimated seconds. diff --git a/exampleSite/content/services.md b/exampleSite/content/services.md index 9465620..85071cd 100644 --- a/exampleSite/content/services.md +++ b/exampleSite/content/services.md @@ -16,7 +16,7 @@ Well, let me tell ya! This is not an easy task. You will likely have to pay money for this. You know what - let us look at a nice picture first. -![Nice picture to make you pay me ;-)](/images/selective-focus-photography-of-pasta-with-tomato-and-basil-1279330.jpg) +![Nice picture to make you pay me ;-)](../images/selective-focus-photography-of-pasta-with-tomato-and-basil-1279330.jpg) Wow. That was nice, right? Well, call me and let us talk. @@ -26,10 +26,10 @@ Wow. That was nice, right? Well, call me and let us talk. Did you see the picture above? I can show you how to go from -![Let us get started on a clean slate](/images/board-bunch-cooking-food-349609.jpg) +![Let us get started on a clean slate](../images/board-bunch-cooking-food-349609.jpg) to -![Let us get started on a clean slate](/images/woman-pouring-juice-on-glass-3184192.jpg) +![Let us get started on a clean slate](../images/woman-pouring-juice-on-glass-3184192.jpg) -in estimated seconds. \ No newline at end of file +in estimated seconds. diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index 4220985..9964d41 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -10,8 +10,8 @@ - - + + diff --git a/layouts/partials/head.html b/layouts/partials/head.html index 19514a4..7990f01 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -13,10 +13,10 @@ - + - + {{ template "_internal/opengraph.html" . }} {{ template "_internal/twitter_cards.html" . }}