Add meta tags to templates
This commit is contained in:
parent
3f503442f1
commit
2da7f6c7c7
|
@ -2,6 +2,17 @@
|
|||
|
||||
{% block title %}{{sitename}} - API{% endblock %}
|
||||
|
||||
{% block opengraph %}
|
||||
<meta property="og:title" content="{{ sitename }} - API" />
|
||||
<meta property="og:type" content="website" />
|
||||
<meta property="og:url" content="{{ siteurl }}{{ sitepath }}{{ filename }}" />
|
||||
{% endblock %}
|
||||
|
||||
{% block twittercard %}
|
||||
<meta name="twitter:card" content="summary" />
|
||||
<meta name="twitter:title" content="{{ sitename }} - API" />
|
||||
{% endblock %}
|
||||
|
||||
{% block head %}
|
||||
<link href="{{ sitepath }}static/css/github-markdown.css" rel="stylesheet" type="text/css">
|
||||
{% endblock %}
|
||||
|
|
|
@ -9,6 +9,19 @@
|
|||
<link href='{{ sitepath }}static/css/hint.css' rel='stylesheet' type='text/css'>
|
||||
<link href='{{ sitepath }}static/images/favicon.gif' rel='icon' type='image/gif'>
|
||||
{% block head %}{% endblock %}
|
||||
<meta name="og:site_name" content="{{ sitename }}" />
|
||||
<meta name="twitter:site" content="{{ sitename }}" />
|
||||
|
||||
{% block opengraph %}
|
||||
<meta property="og:title" content="{{ sitename }}" />
|
||||
<meta property="og:type" content="website" />
|
||||
<meta property="og:url" content="{{ siteurl }}{{ sitepath }}{{ filename }}" />
|
||||
{% endblock %}
|
||||
|
||||
{% block twittercard %}
|
||||
<meta name="twitter:card" content="summary" />
|
||||
<meta name="twitter:title" content="{{ sitename }}" />
|
||||
{% endblock %}
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
|
|
@ -1,8 +1,12 @@
|
|||
{% extends "base.html" %}
|
||||
|
||||
{% block head %}
|
||||
{% block opengraph %}
|
||||
<meta property="og:title" content="{{ filename }} ({{ size }})" />
|
||||
<meta property="og:type" content="music:song" />
|
||||
<meta property="og:url" content="{{ siteurl }}{{ sitepath }}{{ filename }}" />
|
||||
<meta property="og:audio" content="{{ siteurl }}{{ sitepath }}{{ selifpath }}{{ filename }}" />
|
||||
<meta property="og:audio:secure_url" content="{{ siteurl }}{{ sitepath }}{{ selifpath }}{{ filename }}" />
|
||||
<meta property="og:audio:type" content="{{ mime }}" />
|
||||
{% endblock %}
|
||||
|
||||
{% block main %}
|
||||
|
|
|
@ -1,5 +1,16 @@
|
|||
{% extends "../base.html" %}
|
||||
|
||||
{% block opengraph %}
|
||||
<meta property="og:title" content="{{ filename }} ({{ size }})" />
|
||||
<meta property="og:type" content="website" />
|
||||
<meta property="og:url" content="{{ siteurl }}{{ sitepath }}{{ filename }}" />
|
||||
{% endblock %}
|
||||
|
||||
{% block twittercard %}
|
||||
<meta name="twitter:card" content="summary" />
|
||||
<meta name="twitter:title" content="{{ filename }} ({{ size }})" />
|
||||
{% endblock %}
|
||||
|
||||
{% block title %}{{sitename}} - {{ filename }}{% endblock %}
|
||||
|
||||
{% block bodymore %}{% endblock %}
|
||||
|
|
|
@ -1,10 +1,15 @@
|
|||
{% extends "base.html" %}
|
||||
|
||||
{% block head %}
|
||||
<meta name="twitter:card" content="summary_large_image">
|
||||
{% block opengraph %}
|
||||
<meta property="og:image" content="{{ siteurl }}{{ sitepath }}{{ selifpath }}{{ filename }}" />
|
||||
{% endblock %}
|
||||
|
||||
{% block twittercard %}
|
||||
<meta name="twitter:image" content="{{ siteurl }}{{ sitepath }}{{ selifpath }}{{ filename }}" />
|
||||
<meta name="twitter:card" content="summary_large_image">
|
||||
<meta name="twitter:text:title" content="{{ filename }} ({{ size }})" />
|
||||
{% endblock %}
|
||||
|
||||
{% block main %}
|
||||
<a href="{{ sitepath }}{{ selifpath }}{{ filename }}">
|
||||
<img class="display-image" src="{{ sitepath }}{{ selifpath }}{{ filename }}" />
|
||||
|
|
|
@ -1,10 +1,14 @@
|
|||
{% extends "base.html" %}
|
||||
|
||||
{% block head %}
|
||||
{% block opengraph %}
|
||||
<meta property="og:title" content="{{ filename }} ({{ size }})" />
|
||||
<meta property="og:type" content="video.other">
|
||||
<meta property="og:url" content="{{ siteurl }}{{ sitepath }}{{ filename }}" />
|
||||
<meta property="og:video" content="{{ siteurl }}{{ sitepath }}{{ selifpath }}{{ filename }}" />
|
||||
{% endblock %}
|
||||
|
||||
{% block twittercard %}{% endblock %}
|
||||
|
||||
{% block main %}
|
||||
<video class="display-video" controls autoplay>
|
||||
<source src="{{ sitepath }}{{ selifpath }}{{ filename }}" />
|
||||
|
|
|
@ -2,6 +2,17 @@
|
|||
|
||||
{% block title %}{{sitename}} - Paste{% endblock %}
|
||||
|
||||
{% block opengraph %}
|
||||
<meta property="og:title" content="{{ sitename }} - Paste" />
|
||||
<meta property="og:type" content="website" />
|
||||
<meta property="og:url" content="{{ siteurl }}{{ sitepath }}{{ filename }}" />
|
||||
{% endblock %}
|
||||
|
||||
{% block twittercard %}
|
||||
<meta name="twitter:card" content="summary" />
|
||||
<meta name="twitter:title" content="{{ sitename }} - Paste" />
|
||||
{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<form id="reply" action='{{ sitepath }}upload' method='post'>
|
||||
<div id="main" class="paste">
|
||||
|
|
Loading…
Reference in New Issue