浏览代码

Fixed a bug with handling web_url

Fixed a bug with handling web_url variable when not assigned.
Josh Smith 7 年之前
父节点
当前提交
ba3db8fb10
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      index.html.tmpl

+ 2 - 2
index.html.tmpl

@@ -25,8 +25,8 @@
 	<meta property="og:site_name" content="$station.location Weather Station" />
 	<meta property="og:title" content="$station.location Current Weather Conditions"/>
 	#end if
+        #if $Extras.has_key('web_url')
 	<meta property="og:image" content="$Extras.web_url/daytempdew.png"/>
-	#if $Extras.has_key('web_url')
 	<meta property="og:url" content="$Extras.web_url"/>
 	#end if
 	#if $Extras.has_key('cwop')
@@ -42,8 +42,8 @@
 	#else
 	<meta itemprop="name" content="$station.location Current Weather Conditions"/>
 	#end if
+        #if $Extras.has_key('web_url')
 	<meta itemprop="image" content="$Extras.web_url/daytempdew.png"/>
-	#if $Extras.has_key('web_url')
 	<meta itemprop="url" content="$Extras.web_url"/>
 	#end if
 	#if $Extras.has_key('cwop')