Commit b9a4b048 authored by paz's avatar paz

Merge branch '39-fix-broken-links' into 'master'

Fix broken links (and groundwork to deploy into subfolder)

Closes #39

See merge request !57
parents f46259c9 311680f8
Pipeline #21347 passed with stages
in 1 minute and 39 seconds
......@@ -45,6 +45,10 @@ build:
APT_INSTALL_PACKAGES: jekyll
<<: *setup_apt
script:
# Set jekylls 'baseurl' option in case we're not dealing with the master branch.
- 'if ! [ "$CI_COMMIT_REF_SLUG" == "master" ]; then
echo "baseurl: /review/$CI_COMMIT_REF_SLUG" >> _config.yml;
fi'
- jekyll build
- tar cfz site.tar.gz _site
stage: build
......
# Site settings
title: Schleuder
email: team@schleuder.org
description: > # this means to ignore newlines until "baseurl:"
description: > # this means to ignore newlines until "url:"
Schleuder is a gpg-enabled mailinglist with remailing-capabilities.
baseurl: "" # the subpath of your site, e.g. /blog/
url: "https://schleuder.org" # the base hostname & protocol for your site
exclude: [Rakefile, README.md, vendor]
......
{: .note}
This document refers to **Schleuder version {{ include.version }}** To read about older versions of Schleuder please see the [older docs](older/).
This document refers to **Schleuder version {{ include.version }}** To read about older versions of Schleuder please see the [older docs]({{ "schleuder/docs/older/" | absolute_url }}).
* toc
{:toc}
......
......@@ -5,7 +5,7 @@
{: .linktotop}
{: .feedback }
To suggest changes to these documents, or if you found any errors in them, please [let us know](/contact.html).
To suggest changes to these documents, or if you found any errors in them, please [let us know]({{ "contact.html" | absolute_url }}).
You can also [see their history](https://0xacab.org/schleuder/schleuder-website/commits/master).
</div>
### Links
To **participate** in the development use the [issue tracker](https://0xacab.org/schleuder/{{ include.project }}/issues). Please take note of our [Code of Conduct](CODE_OF_CONDUCT.html).
To **participate** in the development use the [issue tracker](https://0xacab.org/schleuder/{{ include.project }}/issues). Please take note of our [Code of Conduct]({{ "CODE_OF_CONDUCT.html" | absolute_url }}).
To **contact** us read [contact](contact.html).
To **contact** us read [contact]({{ "contact.html" | absolute_url }}).
To **be notified** of news about Schleuder subscribe to [schleuder-announce](https://lists.nadir.org/mailman/listinfo/schleuder-announce).
......
......@@ -4,8 +4,8 @@
{% for crumb in breadcrumbs %}
{% if forloop.first %}
<li class="breadcrumb-item breadcrumb-item-icon" property="itemListElement" typeof="ListItem">
<a property="item" typeof="WebPage" href="{{ crumb.url | relative_url }}">
<img src="/images/schleuder.png" title='Home' alt='Logo: a slingshot' />
<a property="item" typeof="WebPage" href="{{ site.url }}{{ site.baseurl }}{{ crumb.url }}">
<img src='{{ "images/schleuder.png" | absolute_url }}' title='Home' alt='Logo: a slingshot' />
<meta property="position" content="{{ crumb.position }}" />
</a>
</li>
......@@ -14,7 +14,7 @@
{% unless forloop.last %}
<li class="breadcrumb-item" property="itemListElement" typeof="ListItem">
<div class="separator">/</div>
<a property="item" typeof="WebPage" href="{{ crumb.url | relative_url }}">
<a property="item" typeof="WebPage" href="{{ site.url }}{{ site.baseurl }}{{ crumb.url }}">
<span property="name">{{ crumb.title }}</span>
<meta property="position" content="{{ crumb.position }}" />
</a>
......
<!DOCTYPE html>
<html lang='en'>
<head>
<link href='/favicon.ico' rel='shortcut icon' type='image/x-icon'>
<link href='/favicon.ico' rel='icon' type='image/x-icon'>
<link href='{{ "favicon.ico" | absolute_url }}' rel='shortcut icon' type='image/x-icon'>
<link href='{{ "favicon.ico" | absolute_url }}' rel='icon' type='image/x-icon'>
<meta charset='UTF-8'>
<meta content='width=device-width, initial-scale=1' name='viewport'>
<title>{% if page.title %} {{ page.title }} {% else %} {{ site.title }} {% endif %}</title>
<meta content='{% if page.excerpt %} {{ page.excerpt | strip_html | strip_newlines | truncate: 160 }} {% else %} {{ site.description }} {% endif %}' name='description'>
<link href='/styles.css' rel='stylesheet' media='all'>
<link href='{{ "styles.css" | absolute_url }}' rel='stylesheet' media='all'>
</head>
<body id="top" class='layout-{{ page.layout }}'>
<a href='/'><img id='logo' src='/images/schleuder.png' alt="Logo of schleuder"></a>
<a href='{{ "" }}'><img id='logo' src='{{ "images/schleuder.png" | absolute_url }}' alt="Logo of schleuder"></a>
{{ content }}
</body>
</html>
......@@ -2,7 +2,7 @@
title: Schleuder-cli
---
Schleuder-cli is a command line tool to manage [Schleuder](schleuder)-lists.
Schleuder-cli is a command line tool to manage [Schleuder]({{ "schleuder" | absolute_url }})-lists.
It runs on any system that provides ruby, connecting to the schleuder-api-daemon via the network.
......
......@@ -2,7 +2,7 @@
title: Schleuder-web
---
Schleuder-web is the web-interface to manage [Schleuder](schleuder)-lists.
Schleuder-web is the web-interface to manage [Schleuder]({{ "schleuder" | absolute_url }})-lists.
It runs independently from schleuder, using the schleuder-api-daemon as a backend.
......
......@@ -3,7 +3,7 @@ title: Documentation
---
{: .note}
This document refers to **Schleuder version 3.0** To read about older versions of Schleuder please see the [older docs](/docs/older/).
This document refers to **Schleuder version 3.0** To read about older versions of Schleuder please see the [older docs]({{ "schleuder/docs/older/" | absolute_url }}).
{: .note}
Disclaimer: this is work in progress. To suggest improvements see [Feedback](#feedback).
......
......@@ -3,7 +3,7 @@ title: Documentation
---
{: .note}
This document refers to **Schleuder version 3.1** To read about older versions of Schleuder please see the [older docs](older/).
This document refers to **Schleuder version 3.1** To read about older versions of Schleuder please see the [older docs]({{ "schleuder/docs/older/" | absolute_url }}).
{: .note}
Disclaimer: this is work in progress. To suggest improvements see [Feedback](#feedback).
......
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