Add safe to urls
This commit is contained in:
parent
ed5856c233
commit
008e0ab365
5 changed files with 17 additions and 11 deletions
|
@ -4,12 +4,14 @@
|
||||||
<div class="container text-center">
|
<div class="container text-center">
|
||||||
<h1 class="h1">Seite nicht gefunden</h1>
|
<h1 class="h1">Seite nicht gefunden</h1>
|
||||||
|
|
||||||
<img src="{{ get_url(path='images/404/bot.svg') }}"
|
<img src="{{ get_url(path='images/404/bot.svg') | safe }}"
|
||||||
class="img-fluid"
|
class="img-fluid"
|
||||||
width="300" />
|
width="300" />
|
||||||
|
|
||||||
<div class="d-grid gap-2 pt-3">
|
<div class="d-grid gap-2 pt-3">
|
||||||
<a class="btn btn-dark" href="{{ get_url(path='/') }}" role="button">Zurück zur Startseite</a>
|
<a class="btn btn-dark"
|
||||||
|
href="{{ get_url(path='/') | safe }}"
|
||||||
|
role="button">Zurück zur Startseite</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
|
@ -49,7 +49,7 @@
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<iframe id="iframe"
|
<iframe id="iframe"
|
||||||
src="{{ get_url(path='oxiform') }}"
|
src="{{ get_url(path='oxiform') | safe }}"
|
||||||
width="100%"
|
width="100%"
|
||||||
title="Kontakt-Formular"></iframe>
|
title="Kontakt-Formular"></iframe>
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,9 @@
|
||||||
{% extends "base.html" %}
|
{% extends "base.html" %}
|
||||||
|
|
||||||
{% block styles %}<link rel="stylesheet" href="{{ get_url(path='leaflet/leaflet.css') }}" />{% endblock %}
|
{% block styles %}
|
||||||
|
<link rel="stylesheet"
|
||||||
|
href="{{ get_url(path='leaflet/leaflet.css') | safe }}" />
|
||||||
|
{% endblock %}
|
||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
<div class="row pb-3">
|
<div class="row pb-3">
|
||||||
|
@ -15,9 +18,9 @@
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="d-grid col-5 mx-auto gap-2 pt-2 pb-4">
|
<div class="d-grid col-5 mx-auto gap-2 pt-2 pb-4">
|
||||||
<a href="{{ get_url(path='angebot') }}"
|
<a href="{{ get_url(path='@/angebot/index.md') | safe }}"
|
||||||
class="btn btn-success grow-on-hover shadow">Unser Angebot</a>
|
class="btn btn-success grow-on-hover shadow">Unser Angebot</a>
|
||||||
<a href="{{ get_url(path='termin') }}"
|
<a href="{{ get_url(path='@/termin/index.md') | safe }}"
|
||||||
class="btn btn-success grow-on-hover shadow">Terminvereinbarung</a>
|
class="btn btn-success grow-on-hover shadow">Terminvereinbarung</a>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
@ -25,9 +28,9 @@
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
{% block scripts %}
|
{% block scripts %}
|
||||||
<script src="{{ get_url(path='leaflet/leaflet.js') }}"></script>
|
<script src="{{ get_url(path='leaflet/leaflet.js') | safe }}"></script>
|
||||||
<script>
|
<script>
|
||||||
L.Icon.Default.imagePath = "{{ get_url(path='leaflet/images/', trailing_slash=true) }}";
|
L.Icon.Default.imagePath = "{{ get_url(path='leaflet/images/', trailing_slash=true) | safe }}";
|
||||||
|
|
||||||
var center = L.latLng(50.05635, 7.12507);
|
var center = L.latLng(50.05635, 7.12507);
|
||||||
var map = L.map('map', {
|
var map = L.map('map', {
|
||||||
|
|
|
@ -69,7 +69,7 @@
|
||||||
prices=["10€", "20€"]) }}
|
prices=["10€", "20€"]) }}
|
||||||
|
|
||||||
<div class="d-grid col-5 mx-auto pt-2 pb-3">
|
<div class="d-grid col-5 mx-auto pt-2 pb-3">
|
||||||
<a href="{{ get_url(path='termin') }}"
|
<a href="{{ get_url(path='@/termin/index.md') | safe }}"
|
||||||
class="btn btn-success grow-on-hover shadow">Terminvereinbarung</a>
|
class="btn btn-success grow-on-hover shadow">Terminvereinbarung</a>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
|
@ -15,7 +15,8 @@
|
||||||
<nav class="navbar navbar-expand-lg"
|
<nav class="navbar navbar-expand-lg"
|
||||||
style="background-image: linear-gradient({{ config.extra.primary_color }}, 25%, white)">
|
style="background-image: linear-gradient({{ config.extra.primary_color }}, 25%, white)">
|
||||||
<div class="container-xxl">
|
<div class="container-xxl">
|
||||||
<a class="navbar-brand grow-on-hover" href="{{ get_url(path='/') }}">
|
<a class="navbar-brand grow-on-hover"
|
||||||
|
href="{{ get_url(path='/') | safe }}">
|
||||||
<!-- Use heigher resize_height for better resolution -->
|
<!-- Use heigher resize_height for better resolution -->
|
||||||
{% set resize_height = 85 %}
|
{% set resize_height = 85 %}
|
||||||
{% set logo_meta = get_image_metadata(path=config.extra.logo_path) %}
|
{% set logo_meta = get_image_metadata(path=config.extra.logo_path) %}
|
||||||
|
@ -26,7 +27,7 @@
|
||||||
{% set actual_height = 70 %}
|
{% set actual_height = 70 %}
|
||||||
{% set actual_width = logo_width_to_height_ratio * actual_height | int %}
|
{% set actual_width = logo_width_to_height_ratio * actual_height | int %}
|
||||||
width="{{ actual_width }}"
|
width="{{ actual_width }}"
|
||||||
height="{{ actual_height }}"/>
|
height="{{ actual_height }}" />
|
||||||
</a>
|
</a>
|
||||||
|
|
||||||
<button class="navbar-toggler"
|
<button class="navbar-toggler"
|
||||||
|
|
Loading…
Reference in a new issue