Selaa lähdekoodia

Fixed a bug with handling web_url

Fixed a bug with handling web_url variable when not assigned.
Josh Smith 7 vuotta sitten
vanhempi
commit
ba3db8fb10
1 muutettua tiedostoa jossa 2 lisäystä ja 2 poistoa
  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')