Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

template: addition of open graph tags #34

Merged
merged 1 commit into from
Apr 2, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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