Private
Public Access
1
0

added og meta tags for facebook

This commit is contained in:
Sander Roosendaal
2017-10-06 15:21:29 +02:00
parent 11d1703c14
commit 55eeed949e
3 changed files with 21 additions and 0 deletions

View File

@@ -5,8 +5,11 @@
{% get_current_timezone as TIME_ZONE %}
{% block title %}{{ workout.name }}{% endblock %}
{% block og_title %}{{ workout.name }}{% endblock %}
{% block description %}{{ workout.name }}
{{ workout.date }} - {{ workout.distance }}m - {{ workout.duration |durationprint:"%H:%M:%S.%f" }}{% endblock %}
{% block og_description %}{{ workout.name }}
{{ workout.date }} - {{ workout.distance }}m - {{ workout.duration |durationprint:"%H:%M:%S.%f" }}{% endblock %}
{% block content %}
<div id="workouts" class="grid_6 alpha">

View File

@@ -3,9 +3,19 @@
{% load rowerfilters %}
{% block title %}{{ workout.name }} {% endblock %}
{% block og_title %}{{ workout.name }} {% endblock %}
{% block description %}{{ workout.name }}
{{ workout.date }} - {{ workout.distance }}m - {{ workout.duration |durationprint:"%H:%M:%S.%f" }}{% endblock %}
{% block og_description %}{{ workout.name }}
{{ workout.date }} - {{ workout.distance }}m - {{ workout.duration |durationprint:"%H:%M:%S.%f" }}{% endblock %}
{% if graphs1 %}
{% endif %}
{% for graph in graphs1 %}
{% block og_image %}
{% for graph in graphs1 %}
<meta property="og:image" content="http://rowsandall.com/"{{ graph.filename }}" />
{% endfor %}
{% endblock %}
{% block image_src %}
{% for graph in graphs1 %}
<link rel="image_src" href="/{{ graph.filename }}" />