Skip to content

Commit

Permalink
template: addition of open graph tags
Browse files Browse the repository at this point in the history
* Adds the default and blog-specific open graph tags.

Signed-off-by: Krzysztof Nowak <k.nowak@cern.ch>
  • Loading branch information
Krzysztof Nowak committed Apr 2, 2017
1 parent d647a68 commit 62bc26b
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
12 changes: 12 additions & 0 deletions templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,18 @@
-#}
<!doctype html>
<meta charset="utf-8">
{% block og_image %}
<meta property="og:image" content="http://blog.zenodo.org/static/img/logos/zenodo-gradient-1000.png" />
{% endblock %}
{% block og_title %}
<meta property="og:title" content="Zenodo - Research. Shared." />
{% endblock %}
{% block og_type %}
<meta property="og:type" content="website" />
{% endblock %}
{% block og_description %}
<meta property="og:description" content="Zenodo is a free and open digital archive built by CERN and OpenAIRE, enabling researchers to share and preserve research output in any size, format and from all fields of research." />
{% endblock %}
<link rel="stylesheet" href="{{ '/static/zenodo.css'|url }}">
<link rel="stylesheet" href="{{ '/static/style.css'|url }}">
<link rel="stylesheet" href="{{ '/static/font-awesome/css/font-awesome.min.css'|url}}">
Expand Down
8 changes: 8 additions & 0 deletions templates/blogpost.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,14 @@
# submit itself to any jurisdiction.
-#}
{% extends "base-blog.html" %}
{% block og_title %}
<meta property="og:title" content="{{ this.title }}" />
{% endblock %}
{% block og_type %}
<meta property="og:type" content="article" />
{% endblock %}
{% block og_description %}
{% endblock %}
{% block title %}{{ this.title }} | Zenodo Blog {% endblock %}
{% block body %}
{% with title_link=False %}
Expand Down

0 comments on commit 62bc26b

Please # to comment.