Преглед изворни кода

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')