25/lib/mse25_web/components/layouts/root.html.heex
Anders Englöf Ytterström 57e935ec00
Improve HTML for robot consumtion (#24)
* Fix icalendar validation errors

* Add RSS feed to documents

* Add stuff to meta: opengraph, canonical

* Add SEO robots meta elements

* Fix correct page titles

* Add more semantics to HTML

* Remove breadcrumbs from templates

* Render breadcrumbs in layout

Each controller should provide their own breadcrumb
trail as a list of tuples, where each tuple is the
pair of a slugified key and a human readable label.

Example:

[{"blog", "Webblogg"}]
[{"blog", "Webblogg"}, "2024", "2024"]

* Add CSS util class to show content only to screen readers

* Load interactive event map only on events page

* Decrease home logo size

* Use correct HTML element for time

* Improve Home page HTML semantics

* Add Person RFDa to footer

* Add RDFa to articles: annual, item, articles

* Enrich links semantics using RDFa

* Enrich Page semantics using RDFa

* Enrich Album semantics using RFDa

* Enrich Event semantics with RDFa
2024-10-16 15:40:53 +02:00

28 lines
828 B
Text

<!DOCTYPE html>
<html lang="sv">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width" />
<meta name="csrf-token" content={get_csrf_token()} />
<title><%= assigns.page_title || "Anders Englöf Ytterström" %> | madr.se</title>
<link rel="stylesheet" href={~p"/assets/app.css"} />
<link
href="/prenumerera.xml"
type="application/rss+xml"
rel="alternate"
title="madr.se: inlägg, evenemang, delningar"
/>
<%= canonical(assigns) |> raw %>
<%= opengraph(assigns) |> raw %>
<%= robots(assigns) |> raw %>
</head>
<body>
<%= @inner_content %>
<script src={~p"/assets/app.js"}>
</script>
<%= if show_interactive_event_map?(assigns) do %>
<script src="/event-map.js">
</script>
<% end %>
</body>
</html>