From ce61677ea556749f810954ccd6704eaff70c75e7 Mon Sep 17 00:00:00 2001 From: Weitian LI Date: Sun, 18 May 2014 15:36:09 +0800 Subject: * updated 'robots.txt' * updated template 'base.html' to include 'metainfo.html' and 'sitetitle.txt' * updated navbar.html main button text --- static/robots.txt | 4 ++++ templates/base.html | 9 ++++++++- templates/metainfo.html | 6 ++++++ templates/navbar.html | 2 +- templates/sitetitle.txt | 1 + 5 files changed, 20 insertions(+), 2 deletions(-) create mode 100644 templates/metainfo.html create mode 100644 templates/sitetitle.txt diff --git a/static/robots.txt b/static/robots.txt index f25ee0a..a0a6fc6 100644 --- a/static/robots.txt +++ b/static/robots.txt @@ -1,2 +1,6 @@ user-agent: AhrefsBot disallow: / + +user-agent: * +disallow: /media/account/ + diff --git a/templates/base.html b/templates/base.html index 81766a4..c080043 100644 --- a/templates/base.html +++ b/templates/base.html @@ -14,7 +14,10 @@ Weitian LI {# title #} {% block bootstrap3_title %} - {% block title %}(title){% endblock %} + {% block title %} + {% block pagetitle %}(pagetitle){% endblock %} | + {% block sitetitle %}{% include 'sitetitle.txt' %}{% endblock %} + {% endblock %} {% endblock %} {# bootstrap3_extra_head #} @@ -29,6 +32,10 @@ Weitian LI {% block favicon %} {% include 'favicon.html' %} {% endblock %} + {# add meta information #} + {% block metainfo %} + {% include 'metainfo.html' %} + {% endblock %} {% endblock %} {# body #} diff --git a/templates/metainfo.html b/templates/metainfo.html new file mode 100644 index 0000000..19f2bbc --- /dev/null +++ b/templates/metainfo.html @@ -0,0 +1,6 @@ +{# Meta infomation: to be included in 'base.html' #} + + + + +{# vim: set ts=8 sw=2 tw=0 fenc=utf-8 ft=htmldjango.html: #} diff --git a/templates/navbar.html b/templates/navbar.html index 75a2c71..e78e2cf 100644 --- a/templates/navbar.html +++ b/templates/navbar.html @@ -11,7 +11,7 @@ - SKA暑期学校 + 2014 SKA暑期学校