summaryrefslogtreecommitdiffstatshomepage
path: root/templates
diff options
context:
space:
mode:
Diffstat (limited to 'templates')
-rw-r--r--templates/base.html2
-rw-r--r--templates/page.html9
2 files changed, 10 insertions, 1 deletions
diff --git a/templates/base.html b/templates/base.html
index 2bdb4e7..31ef012 100644
--- a/templates/base.html
+++ b/templates/base.html
@@ -11,7 +11,7 @@
{% block head_extra %}{% endblock head_extra %}
{% if current_url %}
- <link rel="canonical" href="{{ current_url | safe }}" />
+ <link rel="canonical" href="{{ config.extra.baseurl }}{{ current_url | safe }}" />
{% endif %}
<link rel="alternate" type="application/rss+xml" title="RSS" href="{{ config.extra.feed_url | safe }}">
diff --git a/templates/page.html b/templates/page.html
index 7f4dd5b..9f9b6b7 100644
--- a/templates/page.html
+++ b/templates/page.html
@@ -1,5 +1,14 @@
{% extends "base.html" %}
+{% block head_extra %}
+ {% if page.path == "/guestbook/" or page.path == "/guestbook/success/" or page.path == "/guestbook/nonsuccess/" %}
+ <meta name="robots" content="noindex">
+ {% endif %}
+ {% if page.path == "/guestbook/" %}
+ <link rel="stylesheet" type="text/css" href="/css/guestbook.css">
+ {% endif %}
+{% endblock head_extra %}
+
{% block title %}{{ page.title }} - {{ config.title }}{% endblock title %}
{% block description %}{{ page.description }}{% endblock description %}