25/lib/mse25_web/controllers/item_html/link.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

16 lines
606 B
Text

<article vocab="https://schema.org/" typeof="WebContent Review" class="bookmark">
<h1 property="name"><%= @heading %></h1>
<div property="reviewBody">
<%= raw(@contents) %>
</div>
<div class="source">
Källa: <a href={@url} property="url"><span property="headline"><%= @title %></span></a>
</div>
<footer>
<p>
Publicerad <time property="datePublished archivedAt"><%= @published_at %></time>
av <span property="author">Anders Englöf Ytterström</span>,<br />Senast uppdaterad
<time property="dateModified"><%= @updated_at %></time>
</p>
</footer>
</article>