Option to add viewpost meta tag for mobile devices

This commit is contained in:
Daniel James 2017-11-04 01:53:56 +00:00
parent 7d32695586
commit c42075541b

View File

@ -37,6 +37,8 @@
select="'http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML'"/>
<!--See usage below for explanation of this param-->
<xsl:param name="boost.noexpand.chapter.toc" select="0"/>
<!-- Currently just adds a viewport meta tag -->
<xsl:param name="boost.mobile" select="0"/>
<xsl:param name="admon.style"/>
<xsl:param name="admon.graphics">1</xsl:param>
@ -312,6 +314,9 @@ set toc,title
<script type="text/javascript" src="{$boost.mathjax.script}"/>
</xsl:if>
</xsl:if>
<xsl:if test="$boost.mobile = 1">
<meta name="viewport" content="width=device-width"/>
</xsl:if>
</xsl:template>
<xsl:template match="inlinemediaobject">