Fix meta tags

This commit is contained in:
Thomas Sileo 2019-09-08 15:06:52 +02:00
parent f8adf01678
commit f1cbfbaea2
5 changed files with 7 additions and 6 deletions

View file

@ -23,7 +23,7 @@
}
{{ highlight_css }}
</style>
{% block headers %}{% endblock %}
{% block header %}{% endblock %}
</head>
<body>
{% if logged_in %}

View file

@ -1,7 +1,7 @@
{% extends "layout.html" %}
{% import 'utils.html' as utils %}
{% block title %}Lists - {{ config.NAME }}{% endblock %}
{% block headers %}
{% block header %}
{% endblock %}
{% block content %}

View file

@ -1,7 +1,7 @@
{% extends "layout.html" %}
{% import 'utils.html' as utils %}
{% block title %}Login - {{ config.NAME }}{% endblock %}
{% block headers %}
{% block header %}
<style>
#login-container {
height: 90%;

View file

@ -1,7 +1,7 @@
{% extends "layout.html" %}
{% import 'utils.html' as utils %}
{% block title %}New - {{ config.NAME }}{% endblock %}
{% block headers %}
{% block header %}
{% endblock %}
{% block content %}

View file

@ -2,10 +2,11 @@
{% import 'utils.html' as utils %}
{% block title %}{{ config.NAME }}: "{{ note.activity.object.content | html2plaintext | truncate(50) }}"{% endblock %}
{% block header %}
<meta name="description" content="{{ note.activity.object.content | html2plaintext | truncate(50) }}">
<meta content="article" property="og:type" />
<meta content="{{ note.activity.object.url }}" property="og:url" />
<meta content="{{ config.USERNAME }}" property="og:site_name" />
<meta content="{{ config.USERNAME }} microblog" property="og:site_name" />
<meta content="{{ config.USERNAME }}" property="og:title" />
<meta content="{{ note.activity.object.content | html2plaintext | truncate(50) }}" property="og:description" />
<meta content="{{ me.icon.url }}" property="og:image" />