During yesterday's outage there are confirmed reports that some comments in Issues or Merge Requests as well as Issues and Merge Requests themselves were not saved properly. We are currently investigating the cause and will take appropriate countermeasures. Please excuse the inconvenience.

Verified Commit 850eb4bf authored by Huste, Tobias (FWCC) - 111645's avatar Huste, Tobias (FWCC) - 111645
Browse files

Fix web page not working on subpaths

Many links did not consider the case when the page was served via any
subpath, like in GitLab Pages. Links are made relative with this
commit.
parent 8a7654b2
# Here comes the global website configuration
baseurl: /
# Directory paths
directory:
......
......@@ -2,7 +2,7 @@
<div class="width">
<a href="/">
<img class="logo" src="/assets/img/Helmholtz_Logo.svg">
<img class="logo" src="{{ '/assets/img/Helmholtz_Logo.svg' | relative_url }}">
</a>
<nav>
{% for entry in site.data.navigation.footer %}
......
......@@ -25,7 +25,7 @@ See also:
<div class="width">
<a href="/">
<img class="logo" src="/assets/img/HIFIS_Logo_long_RGB.svg">
<img class="logo" src="{{ '/assets/img/HIFIS_Logo_long_RGB.svg' | relative_url }}">
</a>
{% comment %}
......
......@@ -2,11 +2,11 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>{{ page.title }}</title>
<link rel="stylesheet" href="/assets/css/fonts.css">
<link rel="stylesheet" href="/assets/css/normalize.css">
<link rel="stylesheet" href="/assets/css/general.css" />
<link rel="stylesheet" href="/assets/css/transitions.css">
<link rel="stylesheet" href="/assets/css/header.css">
<link rel="stylesheet" href="/assets/css/main.css">
<link rel="stylesheet" href="/assets/css/footer.css">
<link rel="stylesheet" href="/assets/css/title-image.css">
<link rel="stylesheet" href="{{ '/assets/css/fonts.css' | relative_url }}">
<link rel="stylesheet" href="{{ '/assets/css/normalize.css' | relative_url }}">
<link rel="stylesheet" href="{{ 'assets/css/general.css' | relative_url }}">
<link rel="stylesheet" href="{{ '/assets/css/transitions.css' | relative_url }}">
<link rel="stylesheet" href="{{ '/assets/css/header.css' | relative_url }}">
<link rel="stylesheet" href="{{ '/assets/css/main.css' | relative_url }}">
<link rel="stylesheet" href="{{ '/assets/css/footer.css' | relative_url }}">
<link rel="stylesheet" href="{{ '/assets/css/title-image.css' | relative_url }}">
......@@ -19,8 +19,8 @@
site.directory.images
| append: page.title-image %}
{% endif %}
style="background-image: url('{{ image-url | strip }}');"
style="background-image: url('{{ image-url | strip | relative_url }}');"
{% endif %}
>
<h1 class="width"> {{ page.title }} </h1>
</div>
\ No newline at end of file
>
<h1 class="width"> {{ page.title }} </h1>
</div>
......@@ -2,30 +2,30 @@
@font-face {
font-family: "Corporate S";
font-weight: 400;
src: url(/assets/font/corporate-s/CorporateS-Regular.ttf) format("truetype"); }
src: url(../font/corporate-s/CorporateS-Regular.ttf) format("truetype"); }
@font-face {
font-family: "Corporate S";
font-weight: 400;
font-style: italic;
src: url(/assets/font/corporate-s/CorporateS-RegularItalic.ttf) format("truetype"); }
src: url(../font/corporate-s/CorporateS-RegularItalic.ttf) format("truetype"); }
@font-face {
font-family: "Corporate S";
font-weight: 700;
src: url(/assets/font/corporate-s/CorporateS-Bold.ttf) format("truetype"); }
src: url(../font/corporate-s/CorporateS-Bold.ttf) format("truetype"); }
@font-face {
font-family: "Corporate S";
font-weight: 700;
font-style: italic;
src: url(/assets/font/corporate-s/CorporateS-BoldItalic.ttf) format("truetype"); }
src: url(../font/corporate-s/CorporateS-BoldItalic.ttf) format("truetype"); }
/* #endregion */
/* #region HERMANN */
@font-face {
font-family: "Hermann";
font-weight: 700;
src: url(/assets/font/hermann/Hermann-Bold.ttf) format("truetype"); }
src: url(../font/hermann/Hermann-Bold.ttf) format("truetype"); }
/* #endregion */
......@@ -51,7 +51,7 @@
right: 1rem;
height: 1.5rem;
width: 1.5rem;
background-image: url(/assets/img/mobile_menu.svg);
background-image: url(../img/mobile_menu.svg);
background-size: 100%;
background-repeat: no-repeat;
background-position: 0;
......@@ -61,7 +61,7 @@
}
.nav_toggle.active {
background-image: url(/assets/img/mobile_menu_close.svg);
background-image: url(../img/mobile_menu_close.svg);
}
.nav_toggle.active + nav {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment