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 }}" />

View File

@@ -26,6 +26,14 @@
<title>{% block title %}Rowsandall Rowing Data Analytics{% endblock %}</title>
<meta name="description" content="{% block description %}Free Data and Analysis. For Rowers. By Rowers. {% endblock %}"/>
{% block image_src %}<link rel="image_src" href="static/img/logo7.png" />{% endblock %}
<meta property="og:type" content="website">
{% block og_image %}
<meta property="og:image" content="http://rowsandall.com/static/img/logo7.png" />
{% endblock %}
<meta property="og:url" content="http://rowsandall.com{{ request.get_full_path }}" />
<meta property="fb:app_id" content="694685920739849" />
<meta property="og:title" content="{% block og_title %}Rowsandall{% endblock %}" />
<meta property="og:description" content="{% block og_description %}Rowsandall: Free Data and Analysis. For Rowers. By Rowers.{% endblock %}" />
<link rel="stylesheet" href="/static/css/reset.css" />
<link rel="stylesheet" href="/static/css/text.css" />
<link rel="stylesheet" href="/static/css/960_12_col.css" />