소스 검색

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