Fix relative urls

This commit is contained in:
Lynn Ochs 2023-02-20 05:29:19 +01:00
parent ab6fbc8664
commit c77e22bcc9
3 changed files with 8 additions and 34 deletions

View File

@ -14,7 +14,7 @@
<body>
<div class="wrapper">
<header>
<img src="/iR.svg" width="100%"></img>
<img src="{{ '/iR.svg' | relative_url }}" width="100%"></img>
<!-- <h1>{{ site.title | default: site.github.repository_name }}</h1> -->
<p>{{ site.description | default: site.github.project_tagline }}</p>
@ -30,7 +30,7 @@
</ul>
{% endif %}
{% for link in site.data.links %}
<p class="view"><a href="{{link.url}}">{{link.title}}</a></p>
<p class="view"><a href="{{link.url | relative_url }}">{{link.title}}</a></p>
{% endfor %}
</header>
<section>
@ -46,18 +46,5 @@
</footer>
</div>
<script src="{{ '/assets/js/scale.fix.js' | relative_url }}"></script>
{% if site.google_analytics %}
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
ga('create', '{{ site.google_analytics }}', 'auto');
ga('send', 'pageview');
</script>
{% endif %}
</body>
</html>

View File

@ -6,9 +6,9 @@
<title>{% if page.title %}{{ page.title}} | {% endif %}{{ site.title | default: site.github.repository_name }}</title>
<link rel="stylesheet" href="{{ '/assets/css/style.css?v=' | append: site.github.build_revision | relative_url }}">
<link rel="shortcut icon" type="image/svg+xml" href="/favicon.svg" sizes="any">
<link rel="icon" type="image/png" href="/favicon.png" sizes="32x32">
<link rel="apple-touch-icon" href="/apple-touch-icon.png" sizes="180x180">
<link rel="shortcut icon" type="image/svg+xml" href="{{ '/favicon.svg' | relative_url }}" sizes="any">
<link rel="icon" type="image/png" href="{{ '/favicon.png' | relative_url }}" sizes="32x32">
<link rel="apple-touch-icon" href="{{ '/apple-touch-icon.png' | relative_url }}" sizes="180x180">
<meta name="viewport" content="width=device-width">
<!--[if lt IE 9]>
<script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
@ -17,7 +17,7 @@
<body>
<div class="wrapper">
<header>
<img src="/iR.svg" width="100%"></img>
<img src="{{ '/iR.svg' | relative_url }}" width="100%"></img>
<!-- <h1>{{ site.title | default: site.github.repository_name }}</h1> -->
<p>{{ site.description | default: site.github.project_tagline }}</p>
@ -33,7 +33,7 @@
</ul>
{% endif %}
{% for link in site.data.links %}
<p class="view"><a href="{{link.url}}">{{link.title}}</a></p>
<p class="view"><a href="{{link.url | relative_url }}">{{link.title}}</a></p>
{% endfor %}
</header>
<section>
@ -49,18 +49,5 @@
</footer>
</div>
<script src="{{ '/assets/js/scale.fix.js' | relative_url }}"></script>
{% if site.google_analytics %}
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
ga('create', '{{ site.google_analytics }}', 'auto');
ga('send', 'pageview');
</script>
{% endif %}
</body>
</html>

View File

@ -47,4 +47,4 @@ DAVx⁵) oder [per Browser][cal] erreichbar.
[icscal]: https://nextcloud.imaginaerraum.de/remote.php/dav/public-calendars/T8fANyGmxAQmTj3c?export
[cal]: https://nextcloud.imaginaerraum.de/apps/calendar/p/T8fANyGmxAQmTj3c/Oeffentlicher-imaginrraum-Kalender
[maps]: https://osm.org/go/0JUKyxwWX?m=
[events]: {% link events.html %}
[events]: {% link events.md %}