浏览代码

extend template

Roman Shvets 12 年之前
父节点
当前提交
516a53f248
共有 1 个文件被更改,包括 15 次插入5 次删除
  1. 15 5
      themes/default/index.html

+ 15 - 5
themes/default/index.html

@@ -4,11 +4,21 @@
 	<meta charset="utf-8" />
 	
 	<title>{% if meta.title %}{{ meta.title }} | {% endif %}{{ site_title }}</title>
-{% if meta.description %}
-	<meta name="description" content="{{ meta.description }}"> 
-{% endif %}{% if meta.robots %}
-	<meta name="robots" content="{{ meta.robots }}">
-{% endif %}
+
+    {% if meta.description is defined %}
+    <meta name="description" content="{{ meta.description }}">
+    {% endif %}
+    {% if meta.keywords is defined %}
+    <meta name="keywords" content="{{ meta.keywords }}">
+    {% endif %}
+
+    {% if meta.robots is defined %}
+    <meta name="robots" content="{{ meta.robots }}">
+    {% endif %}
+
+    {% if meta.url is defined %}
+    <meta name="url" content="{{ meta.url }}">
+    {% endif %}
 	
 	<link rel="stylesheet" href="http://fonts.googleapis.com/css?family=Open+Sans:400,700" type="text/css" />
 	<link rel="stylesheet" href="{{ theme_url }}/style.css" type="text/css" />