Open Infrastructure Map, a view of infrastructure data in OpenStreetMap
Add meta descriptions
Russ Garrett9801b726a6d5
diff --git a/templates/_base.html b/templates/_base.htmlindex 2f82d22..24a32ab 100644--- a/templates/_base.html+++ b/templates/_base.html@@ -2,9 +2,17 @@<html lang="en"><head><meta charset="utf-8">- <title>{% block title %}{% endblock %}{% if self.title() %} - {% endif %}OpenInfraMap</title>- <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">+ <title>{% block title %}{% endblock %}{% if self.title() %} - {% endif %}Open Infrastructure Map</title><link rel="stylesheet" href="/static/main.css">+{% if self.description() %}+ <meta name="description" content="{% block description %}{% endblock %}">+ <meta property="og:description" content="{{self.description()}}">+{% endif %}+ <meta name="twitter:card" content="summary" />+ <meta name="twitter:site" content="@openinframap" />+ <meta name="twitter:creator" content="@russss" />+ <meta property="og:title" content="Open Infrastructure Map" />+ <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no"></head><body><header>diff --git a/templates/country.html b/templates/country.htmlindex c706899..9551c93 100644--- a/templates/country.html+++ b/templates/country.html@@ -1,6 +1,9 @@{% extends "_base.html" %}{% set breadcrumbs = [('Stats', url_for('stats')), (country, None)] %}{% block title %}{{country}}{% endblock %}+{% block description -%}+Statistics on the electricity network in {{country}} from OpenStreetMap.+{%- endblock %}{% block content -%}<p><strong>{{country}}</strong> has {{plant_stats.count}} power plants totalling {{plant_stats.output|power}} mapped on OpenStreetMap.</p>diff --git a/templates/index.html b/templates/index.htmlindex 92f8ed9..1c1018d 100644--- a/templates/index.html+++ b/templates/index.html@@ -1,5 +1,8 @@{% extends "_base.html" %}{% set breadcrumbs = [('Stats', None)] %}+{% block description -%}+Statistics on the global electricity network from OpenStreetMap+{%- endblock %}{% block content -%}<p>Select an area to view stats:</p><form>diff --git a/templates/plants_country.html b/templates/plants_country.htmlindex daceca3..d107843 100644--- a/templates/plants_country.html+++ b/templates/plants_country.html@@ -1,6 +1,9 @@{% extends "_base.html" %}{% set breadcrumbs = [('Stats', url_for('stats')), (country, url_for('country', country=country)), ("Power Plants", None)] %}{% block title %}{{country}} Power Plants{% endblock %}+{% block description -%}+ List of power plants in {{country}} from OpenStreetMap+{%- endblock %}{% block content -%}{% set english_name = false %}