update head when viewing memes

main
lza_menace 3 years ago
parent d4712c5819
commit d758f31d6b

@ -1,15 +1,29 @@
<head> <head>
<title>tubbymemes Interplanetary Memes</title> {% if meme %}
<meta property="og:description" content="Interplanetary meme platform powered by IPFS, Tubby Cats, and degeneracy."> <title>{{ meme.title }}</title>
<meta property="og:image" content="https://tubbymemes.xyz/static/img/logo.png"> <meta property="og:description" content="{{ meme.description }}">
<meta property="og:title" content="tubbymemes"> <meta property="og:image" content="{{ url_for('meta.uploaded_file', filename=meme.file_name, _external=True) }}">
<meta name="twitter:card" content="summary"> <meta property="og:title" content="{{ meme.title }}">
<meta name="twitter:site" content="@lza_menace"> <meta name="twitter:card" content="summary">
<meta name="twitter:title" content="tubbymemes"> <meta name="twitter:site" content="@lza_menace">
<meta name="twitter:description" content="Interplanetary meme platform powered by IPFS, Tubby Cats, and degeneracy."> <meta name="twitter:title" content="{{ meme.title }}">
<meta name="twitter:creator" content="@lza_menace"> <meta name="twitter:description" content="{{ meme.description }}">
<meta name="twitter:image" content="https://tubbymemes.xyz/static/img/logo.png"> <meta name="twitter:creator" content="@lza_menace">
<meta name="twitter:domain" content="https://tubbymemes.xyz"> <meta name="twitter:image" content="{{ url_for('meta.uploaded_file', filename=meme.file_name, _external=True) }}">
<meta name="twitter:domain" content="https://tubbymemes.xyz">
{% else %}
<title>tubbymemes!</title>
<meta property="og:description" content="Interplanetary meme platform powered by IPFS, Tubby Cats, and degeneracy.">
<meta property="og:image" content="https://tubbymemes.xyz/static/img/logo.png">
<meta property="og:title" content="tubbymemes">
<meta name="twitter:card" content="summary">
<meta name="twitter:site" content="@lza_menace">
<meta name="twitter:title" content="tubbymemes">
<meta name="twitter:description" content="Interplanetary meme platform powered by IPFS, Tubby Cats, and degeneracy.">
<meta name="twitter:creator" content="@lza_menace">
<meta name="twitter:image" content="https://tubbymemes.xyz/static/img/logo.png">
<meta name="twitter:domain" content="https://tubbymemes.xyz">
{% endif %}
<meta charset="utf-8"> <meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="viewport" content="width=device-width, initial-scale=1">
<script src="/static/js/vendor/unpoly-2.5.0.min.js"></script> <script src="/static/js/vendor/unpoly-2.5.0.min.js"></script>

Loading…
Cancel
Save