浏览代码

Check for LANDING_PAGE_ABOUT before accessing its members

Talha Mansoor 11 年之前
父节点
当前提交
7980437e78
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      templates/index.html

+ 2 - 2
templates/index.html

@@ -9,14 +9,14 @@ Home page of the {{ SITENAME|striptags }} blog.
 {% endblock head_description %}
 {% block content %}
 <div class="row-fluid">
-    {% if LANDING_PAGE_ABOUT.title %}
+    {% if LANDING_PAGE_ABOUT and LANDING_PAGE_ABOUT.title %}
     <header class="page_header span12">
     <h1>{{ LANDING_PAGE_ABOUT.title }}</h1>
     </header>
     {% endif %}
 
     <div class="row-fluid">
-        {% if LANDING_PAGE_ABOUT.details %}
+        {% if LANDING_PAGE_ABOUT and LANDING_PAGE_ABOUT.details %}
         <div class="span8">
             <header>
             <h1>About me</h1>