Changeset 126:be52f52e7d39

Show
Ignore:
Timestamp:
06/23/13 16:29:22 (11 years ago)
Author:
František Kučera <franta-hg@…>
Branch:
default
Message:

XHTML metadata: autor + popis stránky

Location:
šablona
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • šablona/stránka-společné.xsl

    r87 r126  
    6464        </xsl:template> 
    6565 
    66         <!--  
     66        <!-- 
    6767                Odkazy na JavaScript a kaskádové styly 
    68         -->     
     68        --> 
    6969        <xsl:template match="k:web/k:js"> 
    7070                <script src="{text()}" type="text/javascript"> 
     
    7474        <xsl:template match="k:web/k:css"> 
    7575                <link href="{text()}" type="text/css" rel="StyleSheet" /> 
     76        </xsl:template> 
     77         
     78        <!-- 
     79                Metainformace o autorovi a popisu stránky 
     80        --> 
     81        <xsl:template match="k:web/k:autor/k:jméno"> 
     82                <meta content="{text()}" name="author"/> 
     83        </xsl:template> 
     84        <xsl:template match="s:stránka/s:perex"> 
     85                <meta content="{text()}" name="description"/> 
    7686        </xsl:template> 
    7787 
  • šablona/stránka.xsl

    r124 r126  
    5555                                <link title="Novinky (Atom)" href="atom.xml" type="application/atom+xml" rel="alternate"/> 
    5656                                <link title="Novinky (RSS)"  href="rss.xml"  type="application/rss+xml"  rel="alternate"/> 
     57                                <xsl:apply-templates select="$konfigurace/k:web/k:autor/k:jméno"/> 
     58                                <xsl:apply-templates select="s:stránka/s:perex"/> 
    5759                                <xsl:apply-templates select="$konfigurace/k:web/k:js"/> 
    5860                                <xsl:apply-templates select="$konfigurace/k:web/k:css"/>