Skip to content

Commit

Permalink
[#196] Add host part to og:image and og:url tags
Browse files Browse the repository at this point in the history
  • Loading branch information
stellanl committed Sep 25, 2013
1 parent 858b02d commit 5998393
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions akvo/templates/partner_sites/project/project_main.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
{% block head %}
<meta property="og:title" content="Akvo.org - {{project.title}}"/>
<meta property="og:description" content="{{project.subtitle}} {{project.project_plan_summary}}"/>
<meta property="og:url" content="{% url 'project_main' project.id %}"/>
<meta property="og:image" content="{{MEDIA_URL}}{{project.current_image}}"/>
<meta property="og:url" content="{{request.META.HTTP_HOST}}{% url 'project_main' project.id %}"/>
<meta property="og:image" content="{{request.META.HTTP_HOST}}{{MEDIA_URL}}{{project.current_image}}"/>

{% comment %}
<style type="text/css">
Expand Down
6 changes: 3 additions & 3 deletions akvo/templates/partner_sites/project/update_main.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@
{% block head %}
<meta property="og:title" content="Akvo.org - {{update.title}}"/>
<meta property="og:description" content="{{update.text}}"/>
<meta property="og:url" content="{% url 'update_main' project_id=project.id update_id=update.id %}"/>
<meta property="og:url" content="{{request.META.HTTP_HOST}}{% url 'update_main' project_id=project.id update_id=update.id %}"/>
{% if update.photo %}
<meta property="og:image" content="{{MEDIA_URL}}{{update.photo}}"/>
<meta property="og:image" content="{{request.META.HTTP_HOST}}{{MEDIA_URL}}{{update.photo}}"/>
{% else %}
<meta property="og:image" content="{{MEDIA_URL}}{{project.current_image}}"/>
<meta property="og:image" content="{{request.META.HTTP_HOST}}{{MEDIA_URL}}{{project.current_image}}"/>
{% endif %}
{% endblock head %}

Expand Down
4 changes: 2 additions & 2 deletions akvo/templates/rsr/project/project_main.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
{% block head %}
<meta property="og:title" content="Akvo.org - {{project.title}}"/>
<meta property="og:description" content="{{project.subtitle}} {{project.project_plan_summary}}"/>
<meta property="og:url" content="{% url 'project_main' project.id %}"/>
<meta property="og:image" content="{{MEDIA_URL}}{{project.current_image}}"/>
<meta property="og:url" content="{{request.META.HTTP_HOST}}{% url 'project_main' project.id %}"/>
<meta property="og:image" content="{{request.META.HTTP_HOST}}{{MEDIA_URL}}{{project.current_image}}"/>

{{block.super}}

Expand Down
6 changes: 3 additions & 3 deletions akvo/templates/rsr/project/project_update.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@
{% block head %}
<meta property="og:title" content="Akvo.org - {{update.title}}"/>
<meta property="og:description" content="{{update.text}}"/>
<meta property="og:url" content="{% url 'update_main' project_id=project.id update_id=update.id %}"/>
<meta property="og:url" content="{{request.META.HTTP_HOST}}{% url 'update_main' project_id=project.id update_id=update.id %}"/>
{% if update.photo %}
<meta property="og:image" content="{{MEDIA_URL}}{{update.photo}}"/>
<meta property="og:image" content="{{request.META.HTTP_HOST}}{{MEDIA_URL}}{{update.photo}}"/>
{% else %}
<meta property="og:image" content="{{MEDIA_URL}}{{project.current_image}}"/>
<meta property="og:image" content="{{request.META.HTTP_HOST}}{{MEDIA_URL}}{{project.current_image}}"/>
{% endif %}

{{ block.super }}
Expand Down

0 comments on commit 5998393

Please sign in to comment.