feat: enhance accessibility and SEO on the base template

Improved the base template by setting the default language to English, enhancing SEO through better ordering of meta and title tags, and including an initial-scale for the viewport meta tag. Wrapped the main content area with a `<main>` tag to improve semantic HTML structure and accessibility. These changes make the site more accessible and potentially improve search engine rankings.
This commit is contained in:
Kumi 2024-05-22 17:57:14 +02:00
parent eb85c1c7fa
commit 83ed63b13f
Signed by: kumi
GPG key ID: ECBCC9082395383F

View file

@ -1,10 +1,10 @@
<!DOCTYPE html> <!DOCTYPE html>
<html> <html lang="en">
<head> <head>
<title>{% if title %}{{ title }} - {% endif %}Structables</title>
<meta charset="UTF-8"> <meta charset="UTF-8">
<meta name="viewport" content="width=device-width"> <meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>{% if title %}{{ title }} - {% endif %}Structables</title>
<link rel="stylesheet" href="{{ url_for('static', filename='css/style.css') }}"> <link rel="stylesheet" href="{{ url_for('static', filename='css/style.css') }}">
<link rel="stylesheet" href="{{ url_for('static', filename='dist/css/bootstrap.min.css') }}"> <link rel="stylesheet" href="{{ url_for('static', filename='dist/css/bootstrap.min.css') }}">
<link rel="icon" type="image/png" href="{{ url_for('static', filename='img/logo.png') }}"> <link rel="icon" type="image/png" href="{{ url_for('static', filename='img/logo.png') }}">
@ -12,8 +12,10 @@
<body> <body>
{% include "header.html" %} {% include "header.html" %}
<main>
{% block content %} {% block content %}
{% endblock %} {% endblock %}
</main>
{% include "footer.html" %} {% include "footer.html" %}
</body> </body>