Эх сурвалжийг харах

set meta tag for title also

Pi 1 жил өмнө
parent
commit
ebada77097
1 өөрчлөгдсөн 13 нэмэгдсэн , 0 устгасан
  1. 13 0
      xml/pg_view_style.xsl

+ 13 - 0
xml/pg_view_style.xsl

@@ -33,6 +33,19 @@ All rights reserved.
           </xsl:otherwise>
         </xsl:choose>
         </title>
+        <meta>
+        <xsl:attribute name="name">title</xsl:attribute>
+        <xsl:attribute name="content">
+        <xsl:choose>
+          <xsl:when test="name(current()) = 'pg_random_view_default_if_null'">
+          Random Prayer Generator
+          </xsl:when>
+          <xsl:otherwise>
+          <xsl:value-of select="name(current())"/>
+          </xsl:otherwise>
+        </xsl:choose>
+        </xsl:attribute>
+        </meta>
 	<meta name="description" content="Generate a template prayer following the form of the model prayer outlined in Matthew 6:9‑13 and Luke 11:2‑4"/>
 	<meta name="keywords" content="Bible, Prayer, Generator, SWORD"/>
 	<meta name="author" content="Daniel Sheffield"/>