Compare commits

...

2 commits

Author SHA1 Message Date
e564b1aeaa
Fix osm links 2021-08-07 22:11:06 +02:00
27bcc20b93
Improve performance (defer css, resize img) 2021-08-07 21:31:14 +02:00
4 changed files with 10 additions and 8 deletions

View file

@ -1,5 +1,5 @@
name: Reitanlage Oranienburg
version: 1.2.2
version: 1.2.3
description: Design der Reitanlage Oranienburg
icon: rebel
author:

View file

@ -1,6 +1,6 @@
{
"name": "reitanlage-oranienburg",
"version": "1.2.2",
"version": "1.2.3",
"description": "The Reitanlage Oranienburg Theme for Grav CMS.",
"main": "index.js",
"scripts": {

View file

@ -21,12 +21,11 @@
<meta name="msapplication-config" content="{{ url('theme://images/icons/browserconfig.xml') }}">
<meta name="theme-color" content="#ffffff">
<link rel="canonical" href="{{ page.url(true, true) }}" />
<link rel="stylesheet" href="{{ url('theme://dist/app.css') }}" />
{% endblock head %}
{# block stylesheets %}
{% block stylesheets %}
{% do assets.addCss('theme://dist/app.css', 100) %}
{% endblock #}
{% endblock %}
{% block javascripts %}
{% do assets.addJs('theme://dist/app.js', 100) %}
@ -47,7 +46,10 @@
<a href="/" class="col-12">
{% include 'partials/logo.html.twig' with {style: 'filter: invert(100%); margin-right: 0.5rem;'} %}
{% for media_item in header_page.media.images %}
<img alt="Eines der Bilder im Seiten-Header." src="{{ media_item.quality(15).url }}" />
{% set aspect = media_item.width / media_item.height %}
{% set new_height = 100 %}
{% set new_width = new_height * aspect %}
<img alt="" src="{{ media_item.cropResize(new_width,new_height).quality(75).url }}" />
{% endfor %}
</a>
</div>

View file

@ -1,7 +1,7 @@
<div class="w-100 h-100 d-flex flex-column">
<iframe class="flex-grow-1 w-100" style="border: 0;" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="https://www.openstreetmap.org/export/embed.html?bbox=13.184784650802612%2C52.76459265506261%2C13.190723061561586%2C52.76727373740601&amp;layer=mapnik&amp;marker=52.765933216869406%2C13.187753856182098" style="border: 1px solid black"></iframe>
<iframe class="flex-grow-1 w-100" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="https://www.openstreetmap.org/export/embed.html?bbox=13.033527382649483%2C52.712566473741454%2C13.342174538411202%2C52.8193422424879&amp;layer=mapnik&amp;marker=52.76598708705365%2C13.18785096053034"></iframe>
<small>
<a target="_blank" href="https://www.openstreetmap.org/?mlat=52.76593&amp;mlon=13.18775#map=18/52.76593/13.18775">
<a target="_blank" href="https://www.openstreetmap.org/?mlat=52.7660&mlon=13.1879#map=13/52.7660/13.1879">
Auf OpenStreetMaps öffnen
</a>
<span class="mx-1"> | </span>