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
This commit is contained in:
Jan Raasch 2020-07-09 11:21:57 +02:00
parent ad9adcb484
commit 0eb23bf5c8
7 changed files with 17 additions and 17 deletions

View file

@ -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.

View file

@ -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"
---

View file

@ -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.

View file

@ -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.

View file

@ -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.
in estimated seconds.

View file

@ -10,8 +10,8 @@
<script type="text/javascript" src="https://code.jquery.com/jquery-1.11.3.min.js"></script>
<!-- The main JavaScript files for HugoScroll -->
<script type="text/javascript" src='{{ "/js/icons.js" | absURL }}'></script>
<script type="text/javascript" src='{{ "/js/index.js" |absURL }}'></script>
<script type="text/javascript" src='{{ "js/icons.js" | absURL }}'></script>
<script type="text/javascript" src='{{ "js/index.js" |absURL }}'></script>
<!-- A partial to be overwritten by the user.
Simply place a custom_body.html into
your local /layouts/partials-directory -->

View file

@ -13,10 +13,10 @@
<meta name="MobileOptimized" content="320" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" href='{{ "/css/screen.css" | absURL }}'>
<link rel="stylesheet" href='{{ "css/screen.css" | absURL }}'>
<link href='https://fonts.googleapis.com/css?family=Open+Sans+Condensed:300,300italic,700' rel='stylesheet' type='text/css'>
<link href='https://fonts.googleapis.com/css?family=Oswald:400,300,700|Open+Sans:300italic,400italic,600italic,700italic,800italic,400,300,600,700,800|Roboto+Slab:400,100,300,700' rel='stylesheet' type='text/css'>
<link rel="stylesheet" href='{{ "/font-awesome/css/font-awesome.min.css" | absURL }}'>
<link rel="stylesheet" href='{{ "font-awesome/css/font-awesome.min.css" | absURL }}'>
{{ template "_internal/opengraph.html" . }}
{{ template "_internal/twitter_cards.html" . }}