mirror of
https://github.com/boostorg/boostbook.git
synced 2025-05-09 02:43:58 +00:00
Option to add viewpost meta tag for mobile devices
This commit is contained in:
parent
7d32695586
commit
c42075541b
@ -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,8 +314,11 @@ 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">
|
||||
<xsl:choose>
|
||||
<xsl:when test="$boost.mathjax = 1 and textobject[@role='tex']">
|
||||
|
Loading…
x
Reference in New Issue
Block a user