Added metadesc block so pages can add <meta name="description"> tags, added one for /

This commit is contained in:
str4d
2013-01-04 23:41:03 +00:00
parent f65b4cca28
commit 324579f57d
2 changed files with 4 additions and 0 deletions

View File

@ -4,6 +4,9 @@
<head>
<meta charset="UTF-8">
<title>{% block title_outer %}{% block title %}{% endblock %} - I2P{% endblock %}</title>
{%- if self.metadesc() %}
<meta name="description" content="{% block metadesc %}{% endblock %}">
{%- endif %}
<link rel="canonical" href="{{ canonical() }}" />
{% if g.exttheme %}<link rel="stylesheet" type="text/css" href="{{ g.exttheme }}" title="External theme" />{% else -%}
<link rel="stylesheet" type="text/css" href="{{ url_for('static', filename='styles/' + g.theme + '.css') }}" title="{{ g.theme }}" />

View File

@ -1,6 +1,7 @@
{% extends "global/layout.html" %}
{% block title_outer %}{% trans %}I2P Anonymous Network{% endtrans %}{% endblock %}
{% block title %}{% trans %}The Invisible Internet Project{% endtrans %}{% endblock %}
{% block metadesc %}Anonymous peer-to-peer distributed communication layer built with open source tools and designed to run any traditional Internet service such as email, IRC or web hosting.{% endblock %}
{% block content_outer %}
<div class="main">
<h1>{% trans %}What does I2P do for you?{% endtrans %}</h1>