Skip to content

Instantly share code, notes, and snippets.

@jdsimcoe
Created November 20, 2013 15:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jdsimcoe/cf7edc8d0ac0514e1d7c to your computer and use it in GitHub Desktop.
Save jdsimcoe/cf7edc8d0ac0514e1d7c to your computer and use it in GitHub Desktop.
Saplings Master Template
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:include href="toolkit.xsl"/>
<xsl:include href="date-time-advanced.xsl" />
<xsl:include href="navigation.xsl"/>
<xsl:include href="globals.xsl"/>
<xsl:output method="xml"
doctype-public="XSLT-compat"
doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"
omit-xml-declaration="yes"
encoding="UTF-8"
indent="yes" />
<xsl:param name="cookie-username" />
<xsl:template match="/">
<html lang="en">
<head>
<xsl:choose>
<xsl:when test="$page-title = 'Home'">
<title>
<xsl:value-of select="$website-name"/>
<xsl:text> · </xsl:text>
<xsl:value-of select="$website-subtitle"/>
</title>
</xsl:when>
<xsl:otherwise>
<title>
<xsl:value-of select="/data/page-data-single/entry/title" />
<xsl:text> · </xsl:text>
<xsl:value-of select="$website-name"/>
<xsl:text> · </xsl:text>
<xsl:value-of select="$website-subtitle"/>
</title>
</xsl:otherwise>
</xsl:choose>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="description" content="" />
<meta name="keywords" content="" />
<meta name="author" content="Jonathan Simcoe / Simko.io" />
<meta name="responsimage" data-server="{$root}/image/2/width/height/anchor/0/uploads/images/filename" data-static="{$workspace}/assets/img/spacer.gif" data-loading="{$workspace}/assets/img/loading.gif" />
<link href="{$workspace}/assets/css/main.css" rel="stylesheet" />
<link href="{$workspace}/assets/img/favicon.ico" rel="shortcut icon" type="image/x-icon" />
<link rel="apple-touch-icon-precomposed" href="{$workspace}/assets/img/apple-touch-icon-precomposed.png" />
<script type="text/javascript" src="//use.typekit.net/tkw2djd.js"></script>
<script type="text/javascript">try{Typekit.load();}catch(e){}</script>
<script type="text/javascript" src="{$workspace}/assets/js/application.min.js"></script>
<script type="text/javascript">
<xsl:comment>
var _gaq=[["_setAccount","UA-38314931-1"],["_trackPageview"]];
(function(d,t){
var g=d.createElement(t), s=d.getElementsByTagName(t)[0];
g.async=1;
g.src=("https:"==location.protocol?"//ssl":"//www")+".google-analytics.com/ga.js";
s.parentNode.insertBefore(g,s)
}(document,"script"));
</xsl:comment>
</script>
</head>
<body class="{$root-page}">
<xsl:apply-templates select="data/navigation-support"/>
<xsl:apply-templates select="data/navigation-primary"/>
<div id="main">
<xsl:apply-templates select="data/page-data-single/entry" />
<xsl:apply-templates />
</div>
<footer class="footer">
<div class="container">
<xsl:value-of select="normalize-space(/data/misc-all/entry[name/@handle='featured']/content)" disable-output-escaping="yes" />
<div class="row">
<div class="col-lg-12">
<p class="center">
<xsl:text>&#xa9;&#160;2003–</xsl:text>
<xsl:value-of select="$this-year" />
<xsl:text>&#160;|&#160;</xsl:text>
<xsl:value-of select="$website-name"/>
<xsl:text>&#160;|&#160;All rights reserved.</xsl:text>
<!-- <xsl:text>&#160;&#160;•&#160;&#160;</xsl:text>
<a href="http://simko.io/">Designed &amp; coded by <strong>Simko.io</strong></a> -->
</p>
</div>
</div>
</div><!-- .container -->
</footer>
<xsl:call-template name="livereload"/>
</body>
</html>
</xsl:template>
</xsl:stylesheet>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment