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> <body>
<div class="wrapper"> <div class="wrapper">
<header> <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> --> <!-- <h1>{{ site.title | default: site.github.repository_name }}</h1> -->
<p>{{ site.description | default: site.github.project_tagline }}</p> <p>{{ site.description | default: site.github.project_tagline }}</p>
@ -30,7 +30,7 @@
</ul> </ul>
{% endif %} {% endif %}
{% for link in site.data.links %} {% 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 %} {% endfor %}
</header> </header>
<section> <section>
@ -46,18 +46,5 @@
</footer> </footer>
</div> </div>
<script src="{{ '/assets/js/scale.fix.js' | relative_url }}"></script> <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> </body>
</html> </html>

View File

@ -6,9 +6,9 @@
<title>{% if page.title %}{{ page.title}} | {% endif %}{{ site.title | default: site.github.repository_name }}</title> <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="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="shortcut icon" type="image/svg+xml" href="{{ '/favicon.svg' | relative_url }}" sizes="any">
<link rel="icon" type="image/png" href="/favicon.png" sizes="32x32"> <link rel="icon" type="image/png" href="{{ '/favicon.png' | relative_url }}" sizes="32x32">
<link rel="apple-touch-icon" href="/apple-touch-icon.png" sizes="180x180"> <link rel="apple-touch-icon" href="{{ '/apple-touch-icon.png' | relative_url }}" sizes="180x180">
<meta name="viewport" content="width=device-width"> <meta name="viewport" content="width=device-width">
<!--[if lt IE 9]> <!--[if lt IE 9]>
<script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script> <script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
@ -17,7 +17,7 @@
<body> <body>
<div class="wrapper"> <div class="wrapper">
<header> <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> --> <!-- <h1>{{ site.title | default: site.github.repository_name }}</h1> -->
<p>{{ site.description | default: site.github.project_tagline }}</p> <p>{{ site.description | default: site.github.project_tagline }}</p>
@ -33,7 +33,7 @@
</ul> </ul>
{% endif %} {% endif %}
{% for link in site.data.links %} {% 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 %} {% endfor %}
</header> </header>
<section> <section>
@ -49,18 +49,5 @@
</footer> </footer>
</div> </div>
<script src="{{ '/assets/js/scale.fix.js' | relative_url }}"></script> <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> </body>
</html> </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 [icscal]: https://nextcloud.imaginaerraum.de/remote.php/dav/public-calendars/T8fANyGmxAQmTj3c?export
[cal]: https://nextcloud.imaginaerraum.de/apps/calendar/p/T8fANyGmxAQmTj3c/Oeffentlicher-imaginrraum-Kalender [cal]: https://nextcloud.imaginaerraum.de/apps/calendar/p/T8fANyGmxAQmTj3c/Oeffentlicher-imaginrraum-Kalender
[maps]: https://osm.org/go/0JUKyxwWX?m= [maps]: https://osm.org/go/0JUKyxwWX?m=
[events]: {% link events.html %} [events]: {% link events.md %}