Created
February 25, 2011 15:13
-
-
Save greystate/843919 to your computer and use it in GitHub Desktop.
Shorter version of http://pastebin.com/eWeLPq33
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8" ?> | |
<xsl:stylesheet | |
version="1.0" | |
xmlns:xsl="http://www.w3.org/1999/XSL/Transform" | |
xmlns:umb="urn:umbraco.library" | |
exclude-result-prefixes="umb" | |
> | |
<xsl:output method="xml" indent="yes" omit-xml-declaration="yes" /> | |
<xsl:param name="currentPage" /> | |
<xsl:template match="/"> | |
<title> | |
<xsl:value-of select="($currentPage/pageTitle | $currentPage/@nodeName[not(normalize-space(../pageTitle))])[1]" /> | |
<xsl:if test="normalize-space(macro/fixedTitle)"> | <xsl:value-of select="macro/fixedTitle" /></xsl:if> | |
</title> | |
<meta name="description" content="{$currentPage/metaDescription}" /> | |
<meta name="keywords" content="{$currentPage/metaKeywords}" /> | |
</xsl:template> | |
</xsl:stylesheet> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment