add embeds

This commit is contained in:
Alexandru 2024-09-16 21:52:05 +03:00
parent 53706feca7
commit 654506559f
2 changed files with 8 additions and 0 deletions

View File

@ -36,3 +36,10 @@
</div> </div>
{% endblock %} {% endblock %}
{% block head %}
<meta property="og:title" content="{{file[2]}}">
<meta property="og:description" content="Expires at: {{file[5]|expirein}}">
{% if file[2].split('.')[-1] in ['png', 'jpg', 'jpeg', 'gif', 'webp'] %}
<meta property="og:image" content="https://files.fzorb.xyz/static/files/{{ file[1] }}.{{ file[2].split('.')[-1] }}">
{% endif %}
{% endblock %}

View File

@ -5,6 +5,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>{% block title %}{% endblock %}</title> <title>{% block title %}{% endblock %}</title>
<link rel="stylesheet" href="{{ url_for('static', filename='index.css') }}"> <link rel="stylesheet" href="{{ url_for('static', filename='index.css') }}">
{% block head %}{% endblock %}
</head> </head>
<body> <body>
{% block content %}{% endblock %} {% block content %}{% endblock %}