Updated to add open graph protocol

This commit is contained in:
Sebastian 2017-04-25 21:34:57 +02:00
parent 0599c22630
commit 7014267a70
3 changed files with 21 additions and 1 deletions

View File

@ -1,6 +1,18 @@
<html>
<head>
<title>{{title}}</title>
<meta property="og:site_name" content="Verdandi testblog">
<meta property="og:type" content="article">
<meta property="og:title" content="{{meta_title}}">
<meta property="og:url" content="{{meta_url}}">
{% if meta_description %}
<meta property="og:description" content="{{meta_description|striptags}}">
{% endif %}
{% if meta_image %}
<meta property="og:image" content="{{meta_image}}" >
{% endif %}
</head>
</head>
<body>
{{menu}}

View File

@ -30,6 +30,10 @@ class TestPage3(Page):
content_file = "content_yetanother.md"
news_feed_id = "news"
metadata = {
'image' : 'img/bar.png',
}
class Assets(CommonAssets):
assets = [('img', 'img/dir'),
('img/', 'img/files')]
@ -44,6 +48,10 @@ class News(NewsFeed):
menu_title = "News"
menu_label = "news"
news_feed_id = "news"
metadata = {
'description' : 'A news feed with news',
'image' : 'img/bar.png',
}
class TestGallery(Gallery):
url = "testgallery.html"

@ -1 +1 @@
Subproject commit 0d12462345b5da0d2dc4cffdb599d1cad43c539a
Subproject commit 3aa8ecaf16e316bb06863b9b1e1e87afc59bdaf9