diff options
Diffstat (limited to 'xsl')
| -rw-r--r-- | xsl/webpage.xsl | 9 | 
1 files changed, 8 insertions, 1 deletions
| diff --git a/xsl/webpage.xsl b/xsl/webpage.xsl index b66a594..fcb5d8a 100644 --- a/xsl/webpage.xsl +++ b/xsl/webpage.xsl @@ -79,6 +79,7 @@  						</p>  						</section>  					</footer> +					<script src="script/ousia.js"/>  				</body>  			</html>  	</xsl:template> @@ -225,7 +226,13 @@  	</xsl:template>  	<xsl:template match="webpage:code"> -		<pre class="code"> +		<pre> +			<xsl:attribute name="class">code</xsl:attribute> +			<xsl:if test="@lang != ''"> +				<xsl:attribute name="data-lang"> +					<xsl:value-of select="@lang"/> +				</xsl:attribute> +			</xsl:if>  			<xsl:apply-templates select="webpage:*"/>  		</pre>  	</xsl:template> | 
