diff options
Diffstat (limited to 'www/termine.nix')
| -rw-r--r-- | www/termine.nix | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/www/termine.nix b/www/termine.nix index 212bf1a..45727a5 100644 --- a/www/termine.nix +++ b/www/termine.nix @@ -27,19 +27,19 @@ type = functionTo str; readOnly = true; default = self: '' - <dt class="event-title" id="${self.name}"><a href="#${self.name}">${self.title}</a></dt> - <dd class="event-body"> - <time datetime="${self.date.start} ${self.time.start}">${self.datetime-range-text}</time> + <dt class="event-title" id="${self.name}" itemprop="name"><a href="#${self.name}">${self.title}</a></dt> + <dd class="event-body" itemscope itemtype="https://schema.org/Event" itemref="${self.name}"> + ${self.datetime-range-text} - <address> - ${self.address.name}<br> + <address itemprop="location" itemscope itemtype="https://schema.org/Place"> + <span itemprop="name">${self.address.name}</span><br> <a target="_blank" href="${ let type = with lib; head (attrNames self.address.openstreetmap); id = self.address.openstreetmap.${type}; in "https://www.openstreetmap.org/${type}/${toString id}" - }">${with lib; concatStringsSep ", " (splitString "\n" (trim self.address.text))}</a> + }"><span itemprop="address">${with lib; concatStringsSep ", " (splitString "\n" (trim self.address.text))}</span></a> </address> ${ |
