biter/templates/display_tweet.html
2024-06-11 16:28:16 +03:00

32 lines
1.1 KiB
HTML

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta
property="og:title"
content="Tweet by {{ author }} - {{ title }}"
/>
<meta
property="twitter:title"
content="Tweet by {{ author }} - {{ title }}"
/>
<meta property="og:description" content="{{ content }}" />
<meta property="twitter:description" content="{{ content }}" />
{% match image %} {% when Some with (link) %}
<meta name="twitter:card" content="summary_large_image" />
<meta property="og:image" content="{{ link }}" />
<meta property="twitter:image:src" content="{{ link }}" />
{% match alt %} {% when Some with (text) %}
<meta property="og:image:alt" content="{{ text }}" />
<meta property="twitter:image:alt" content="{{ text }}" />
{% when None %} {% endmatch %} {% when None %} {% endmatch %}
<meta name="theme-color" content="{{ color }}" />
<title>Tweet by {{ author }} - {{ title }}</title>
<link rel="stylesheet" href="/static/style.css" />
<link rel="stylesheet" href="/static/tweet.css" />
</head>
<body>
{% include "tweet.html" %}
</body>
</html>