소스 검색

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>