Skip to content

Commit

Permalink
Add Open Graph meta tags to meta block in blog.html
Browse files Browse the repository at this point in the history
  • Loading branch information
gocemitevski committed Sep 15, 2017
1 parent 9d3e838 commit 564bdf9
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions ckanext/pages/theme/templates_main/ckanext_pages/blog.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,17 @@
{% block bodytag %}{{ super() }} class="blog"{% endblock %}
{% block subtitle %}{{ c.page.title }}{% endblock %}

{% block meta %}

<!-- Open Graph protocol markup -->
<meta property="og:title" content="{{ c.page.title }}" />
<meta property="og:description" content="{{ g.site_description }}" />
<meta property="og:image" content="{{ h.get_image_from_content(c.page.content) }}" />
<!-- ./ Open Graph protocol markup -->

{{ super() }}
{% endblock %}

{% block toolbar %}
<div class="toolbar">
<ol class="breadcrumb">
Expand Down

0 comments on commit 564bdf9

Please sign in to comment.