Browse Source

Added HTML Social media tags

Added HTML Social media tags to the index page only.
Josh Smith 8 năm trước cách đây
mục cha
commit
9a8ddd7ddd
1 tập tin đã thay đổi với 13 bổ sung4 xóa
  1. 13 4
      index.html.tmpl

+ 13 - 4
index.html.tmpl

@@ -8,20 +8,29 @@
         <meta name="viewport" content="width=device-width, initial-scale=1">
         <link rel="profile" href="http://gmpg.org/xfn/11" />
 	#if $Extras.has_key('web_url')
-	<link rel="canonical" href="$Extras.web_url" itemprop="url"/>
+	<link rel="canonical" href="$Extras.web_url"/>
 	#end if
         
-        <title itemprop="name">$station.location ($Extras.cwop) Current Weather Conditions</title>
+        <title>$station.location ($Extras.cwop) Current Weather Conditions</title>
         
         <!-- Open Graph -->
         <meta property="og:site_name" content="$station.location Weather Station ($Extras.cwop)" />
-	<meta property="og:title" content="Home"/>
+	<meta property="og:title" content="$station.location ($Extras.cwop) Current Weather Conditions"/>
+	<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
         <meta property="og:description" content="Current Weather Conditions in $station.location ($Extras.cwop) - weather web site powered by WeeWX" />
 	<meta property="og:type" content="website" />
 
+	<!--SM Markups -->
+	<meta itemprop="name" content="$station.location ($Extras.cwop) Current Weather Conditions"/>
+	<meta itemprop="image" content="$Extras.web_url/daytempdew.png"/>
+	#if $Extras.has_key('web_url')
+	<meta itemprop="url" content="$Extras.web_url"/>
+	#end if
+        <meta itemprop="description" content="Current Weather Conditions in $station.location ($Extras.cwop) - weather web site powered by WeeWX" />
+        
         <!-- Icons -->
         <link rel="icon" href="favicon.ico" type="image/png">
 	<link rel="apple-touch-icon" href="touch-icon.png"/>
@@ -56,7 +65,7 @@
                         <tr><td><b>Software:</b></td><td><a href="http://weewx.com/" target="_blank" >WeeWX v$station.version</a></td></tr>
                         <tr><td><b>Weewx uptime:</b></td><td>$station.uptime</td></tr>
                         <tr><td><b>Server uptime:</b></td><td>$station.os_uptime</td></tr>
-			<tr><td><b>Station IDs:</b></td><td><a href="http://www.findu.com/cgi-bin/wxpage.cgi?call=$Extras.cwop&last=24" >$Extras.cwop</a> | <a href="http://www.wunderground.com/cgi-bin/findweather/getForecast?query=pws:$Extras.wunderground&MR=1" >$Extras.wunderground</a></td></tr>
+			<tr><td><b>Station IDs:</b></td><td><a href="http://www.findu.com/cgi-bin/wxpage.cgi?call=$Extras.cwop&last=24" target="_blank">$Extras.cwop</a> | <a href="http://www.wunderground.com/cgi-bin/findweather/getForecast?query=pws:$Extras.wunderground&MR=1" target="_blank">$Extras.wunderground</a></td></tr>
                     </table>
                 </div>