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 }} {{ highlight_css }}
</style> </style>
{% block headers %}{% endblock %} {% block header %}{% endblock %}
</head> </head>
<body> <body>
{% if logged_in %} {% if logged_in %}

View file

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

View file

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

View file

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

View file

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