better meta tags

This commit is contained in:
steven 2025-04-07 02:33:02 -04:00
parent ecf5f62147
commit 6d3b16da46
4 changed files with 16 additions and 21 deletions

View file

@ -3,21 +3,20 @@
<head>
<meta charset="UTF-8">
<meta property="og:site_name" content="44live">
<meta property="og:title" content="{{ data.event_name }}{{ " ("+data.event_title+")" if data.event_title }}">
<title>{{ data.event_name }}{{ " ("+data.event_title+")" if data.event_title }}</title>
{%- if data.event_text %}
{%- if data.event_text.append is defined %}
{%- for i in data.event_text %}
{%- if i.text_type_id == 1 %}
<meta property="og:description" content="{{ i.text }}">
<meta name="description" content="{{ i.text }}">
{%- endif %}
{%- endfor %}
{%- elif data.event_text.text_type_id == 1 %}
<meta property="og:description" content="{{ data.event_text.text }}">
<meta name="description" content="{{ data.event_text.text }}">
{%- endif %}
{%- endif %}
<title>{{ data.event_name }}</title>
<meta name="viewport" content="width=device-width,initial-scale=1">
<link rel="icon" type="image/x-icon" href="/clock.svg">
<link rel="icon" href="clock.svg" type="image/svg+xml">
<style>*{font-family:monospace;}</style>
</head>
<body>
@ -40,18 +39,18 @@
{%- if data.profile.reservation.append is defined %}
{%- if data.profile.reservation[0].space_reservation.append is defined %}
{%- for space in data.profile.reservation[0].space_reservation %}
<a href="/{{ space.space.space_id }}">{{ space.space.formal_name }}</a><br>
<a href="{{ space.space.space_id }}">{{ space.space.formal_name }}</a><br>
{%- endfor %}
{%- else %}
<a href="/{{ data.profile.reservation[0].space_reservation.space_id }}">{{ data.profile.reservation[0].space_reservation.space.formal_name }}</a>
<a href="{{ data.profile.reservation[0].space_reservation.space_id }}">{{ data.profile.reservation[0].space_reservation.space.formal_name }}</a>
{%- endif %}
{%- else %}
{%- if data.profile.reservation.space_reservation.append is defined %}
{%- for space in data.profile.reservation.space_reservation %}
<a href="/{{ space.space.space_id }}">{{ space.space.formal_name }}</a><br>
<a href="{{ space.space.space_id }}">{{ space.space.formal_name }}</a><br>
{%- endfor %}
{%- else %}
<a href="/{{ data.profile.reservation.space_reservation.space_id }}">{{ data.profile.reservation.space_reservation.space.formal_name }}</a>
<a href="{{ data.profile.reservation.space_reservation.space_id }}">{{ data.profile.reservation.space_reservation.space.formal_name }}</a>
{%- endif %}
{%- endif %}
</h2>

View file

@ -3,12 +3,10 @@
<head>
<meta charset="UTF-8">
<meta property="og:site_name" content="44live">
<meta property="og:title" content="44live - find events at UofL">
<meta property="og:description" content="Find events at the University of Louisville">
<title>UofL Events</title>
<meta name="description" content="Find events at the University of Louisville">
<meta name="viewport" content="width=device-width,initial-scale=1">
<link rel="icon" type="image/x-icon" href="/calendar.svg">
<link rel="icon" href="calendar.svg" type="image/svg+xml">
<style>*{font-family:monospace;font-size:0.8cm;}input[type="checkbox"],input[type="radio"]{width:0.7cm;height:0.7cm;}</style>
</head>
<body>

View file

@ -3,10 +3,9 @@
<head>
<meta charset="UTF-8">
<meta property="og:site_name" content="44live">
<meta property="og:title" content="44live - find events at UofL">
<title>{{ day }} - 44live</title>
<meta name="viewport" content="width=device-width,initial-scale=1">
<link rel="icon" type="image/x-icon" href="/calendar.svg">
<link rel="icon" href="calendar.svg" type="image/svg+xml">
<base target="_blank">
<style>*{margin:0;padding:0;scrollbar-width:none;}
body,html{
@ -86,12 +85,12 @@ a:hover{background-color:lightgray;color:black;}
<tbody></tbody>
</table>
<script>
const headRow = document.querySelector('tr');
const bookBtn = headRow.querySelector('a');
const tbody = document.querySelector('tbody');
const headRow = document.querySelector("tr");
const bookBtn = headRow.querySelector("a");
const tbody = document.querySelector("tbody");
for (let hour = 8; hour < 23; hour++) {
const th = document.createElement('th');
const th = document.createElement("th");
th.setAttribute("colspan", 60);
th.textContent = hour;
headRow.appendChild(th)

View file

@ -3,10 +3,9 @@
<head>
<meta charset="UTF-8">
<meta property="og:site_name" content="44live">
<meta property="og:title" content="{{ data.space_name }}{{ " ("+data.building_name+")" if data.building_name }}">
<title>{{ data.space_name }}</title>
<title>{{ data.space_name }}{{ " ("+data.building_name+")" if data.building_name }}</title>
<meta name="viewport" content="width=device-width,initial-scale=1">
<link rel="icon" type="image/x-icon" href="/location.svg">
<link rel="icon" href="location.svg" type="image/svg+xml">
<style>*{font-family:monospace;}b{white-space:pre-wrap;}img{max-width:100%;}</style>
</head>
<body>