Kaynağa Gözat

Add meta tags

Pi 1 yıl önce
ebeveyn
işleme
c6bc83483d
1 değiştirilmiş dosya ile 28 ekleme ve 6 silme
  1. 28 6
      xml/pg_view_style.xsl

+ 28 - 6
xml/pg_view_style.xsl

@@ -23,11 +23,30 @@ All rights reserved.
 
     <html>
       <head>
-	      <meta name="viewport" content="width=device-width, initial-scale=1"/>
-	      <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/purecss@2.1.0/build/pure-min.css" integrity="sha384-yHIFVG6ClnONEA5yB5DJXfW2/KC173DIQrYoZMEtBvGzmf0PKiGyNEqe9N6BNDBH" crossorigin="anonymous"/>
-	      <link rel="stylesheet" href="https://shandan.one/css/grids-responsive-min.css"/>
-	      <link rel="stylesheet" href="https://shandan.one/css/responsive-visibility-collapse.css"/>
-        <title><xsl:value-of select="name(current())"/></title>
+        <title>
+        <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>
+        </title>
+	<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"/>
+	<meta name="viewport" content="width=device-width, initial-scale=1"/>
+	<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/purecss@2.1.0/build/pure-min.css" integrity="sha384-yHIFVG6ClnONEA5yB5DJXfW2/KC173DIQrYoZMEtBvGzmf0PKiGyNEqe9N6BNDBH" crossorigin="anonymous"/>
+	<link rel="stylesheet" href="https://shandan.one/css/grids-responsive-min.css"/>
+	<link rel="stylesheet" href="https://shandan.one/css/responsive-visibility-collapse.css"/>
+        <style>
+span.engraved {
+    color: #A8A8A8;
+    font-size: 0.8em;
+    text-shadow: 0px 0.1em 0px rgba(168,168,168,.1), 0px -0.1em 0px rgba(0,0,0,.7);
+}
+	</style>
       </head>
       <body>
         <div style="background: darkgray; position: sticky; top: 0; margin: 0; padding: 0; width: 100%; z-index: 1; text-align: center;">
@@ -64,7 +83,10 @@ All rights reserved.
                               select="name(current())"/>
                 <xsl:choose>
                 <xsl:when test="$elementtype = 'txt'">
-                <td class="opt-all"><xsl:value-of select="."/></td>
+                <td class="opt-all"><xsl:value-of select="."/>&#160;<span class="engraved">
+                <xsl:value-of select="../translation"/>
+                </span>
+                </td>
                 </xsl:when>
                 <xsl:when test="$elementtype = 'category'">
                   <xsl:choose>