1
0
Fork 0

Add alt tags

This commit is contained in:
Mo 2023-11-22 02:39:08 +01:00
parent 3babbc881a
commit 8451aee6e6
5 changed files with 13 additions and 8 deletions

View file

@ -7,7 +7,8 @@
<h1>Page not found!</h1> <h1>Page not found!</h1>
<img class="mb-5 max-h-[50vh]" <img class="mb-5 max-h-[50vh]"
src="{{ get_url(path='images/404/bot.svg') | safe }}"> src="{{ get_url(path='images/404/bot.svg') | safe }}"
alt="">
<div class="flex justify-center">{{ macros::btn(link=get_url(path='/') , text="Zurück zur Startseite") }}</div> <div class="flex justify-center">{{ macros::btn(link=get_url(path='/') , text="Zurück zur Startseite") }}</div>
</div> </div>

View file

@ -5,8 +5,9 @@
<div class="grid grid-cols-1 gap-y-4 gap-x-8 items-center mb-5 lg:grid-cols-2"> <div class="grid grid-cols-1 gap-y-4 gap-x-8 items-center mb-5 lg:grid-cols-2">
{% set image = resize_image(path=page.assets | first, width=600, height=600, op="fill") %} {% set image = resize_image(path=page.assets | first, width=600, height=600, op="fill") %}
<img src="{{ image.url }}" <img class="object-cover justify-self-center rounded drop-shadow"
class="object-cover justify-self-center rounded drop-shadow"> src="{{ image.url }}"
alt="">
<div class="divide-y"> <div class="divide-y">
{{ page.content | safe }} {{ page.content | safe }}

View file

@ -47,7 +47,8 @@
<a class="p-0.5 transition duration-500 hover:scale-110" <a class="p-0.5 transition duration-500 hover:scale-110"
href="{{ get_url(path='/') | safe }}"> href="{{ get_url(path='/') | safe }}">
<img class="object-contain w-16 h-16 rounded" <img class="object-contain w-16 h-16 rounded"
src="{{ get_url(path='images/logo.svg') | safe }}"> src="{{ get_url(path='images/logo.svg') | safe }}"
alt="">
</a> </a>
<nav class="flex gap-x-3 items-center sm:gap-x-4"> <nav class="flex gap-x-3 items-center sm:gap-x-4">

View file

@ -10,8 +10,9 @@
{% block content %} {% block content %}
<div class="grid grid-cols-1 gap-y-4 gap-x-6 items-center mb-5 md:grid-cols-2"> <div class="grid grid-cols-1 gap-y-4 gap-x-6 items-center mb-5 md:grid-cols-2">
{% set image = resize_image(path=config.extra.portrait_path, height=500, op="fit_height") %} {% set image = resize_image(path=config.extra.portrait_path, height=500, op="fit_height") %}
<img src="{{ image.url }}" <img class="object-contain justify-self-center rounded drop-shadow"
class="object-contain justify-self-center rounded drop-shadow"> src="{{ image.url }}"
alt="">
{{ section.content | safe }} {{ section.content | safe }}
</div> </div>

View file

@ -7,8 +7,9 @@
{% set dir = page.path | trim_start_matches(pat="/") %} {% set dir = page.path | trim_start_matches(pat="/") %}
{% set image_path = dir ~ image_filename %} {% set image_path = dir ~ image_filename %}
{% set image = resize_image(path=image_path, width=400, height=400, op="fill") %} {% set image = resize_image(path=image_path, width=400, height=400, op="fill") %}
<img src="{{ image.url }}" <img class="object-cover justify-self-center rounded drop-shadow"
class="object-cover justify-self-center rounded drop-shadow"> src="{{ image.url }}"
alt="">
<div> <div>
<h3>{{ name }}</h3> <h3>{{ name }}</h3>