|
43 | 43 | <xsl:template name="hcom:style"> |
44 | 44 | <style> |
45 | 45 | @font-face { |
46 | | - font-family: avertaRegular; |
47 | | - src: url(fonts/AvertaDemoPECuttedDemo-Regular.otf); |
| 46 | + font-family: avertaRegular; |
| 47 | + src: url(fonts/AvertaDemoPECuttedDemo-Regular.otf); |
48 | 48 | } |
49 | 49 |
|
50 | 50 | @font-face { |
51 | | - font-family: avertaExtraBold; |
52 | | - src: url(fonts/AvertaDemoPE-ExtraBold.otf); |
53 | | - font-weight: bold; |
| 51 | + font-family: avertaExtraBold; |
| 52 | + src: url(fonts/AvertaDemoPE-ExtraBold.otf); |
| 53 | + font-weight: bold; |
54 | 54 | } |
55 | 55 |
|
56 | 56 | body { |
57 | | - font-family: avertaRegular; |
| 57 | + font-family: avertaRegular; |
58 | 58 | } |
59 | 59 |
|
60 | 60 | h1, h2, h3 { |
61 | | - font-family: avertaExtraBold; |
| 61 | + font-family: avertaExtraBold; |
62 | 62 | } |
63 | 63 | </style> |
64 | 64 | </xsl:template> |
|
89 | 89 | <xsl:variable name="section-id" select="generate-id($section)"/> |
90 | 90 |
|
91 | 91 | <!-- section --> |
92 | | - <li><xsl:value-of select="string-join($numbers, '.')"/><xsl:text>. </xsl:text><a name="{$section-id}" href="{$page-url}"><xsl:value-of select="$section/title"/></a></li> |
| 92 | + <li class="toc-entry-level-{$level}"><xsl:value-of select="string-join($numbers, '.')"/><xsl:text>. </xsl:text><a name="{$section-id}" href="{$page-url}"><xsl:value-of select="$section/title"/></a></li> |
93 | 93 |
|
94 | 94 | <!-- then process sub sections recursively (no more than 4 levels deep!) --> |
95 | | - <xsl:if test="$level le 4"> |
96 | | - <ol style="list-style-type: none;"> |
| 95 | + <xsl:if test="$level le 4 and exists($section/body/section|$section/section)"> |
| 96 | + <ol class="toc-level-{$level + 1}" style="list-style-type: none;"> |
97 | 97 | <xsl:for-each select="$section/body/section|$section/section"> |
98 | 98 | <xsl:call-template name="hcom:toc-entry"> |
99 | 99 | <xsl:with-param name="section" select="."/> |
|
0 commit comments