diff --git a/theme/css/page.css b/theme/css/page.css index e99d7d5..e649a51 100644 --- a/theme/css/page.css +++ b/theme/css/page.css @@ -105,4 +105,16 @@ h2 { font-size: 1.2em !important; margin-top: 10px !important; margin-right: 4px !important; +} + +@media (max-width: 641px) { + .hideonmobile { + display: none !important; + } +} + +@media (min-width: 640px) { + .hideonmobile { + display: inline-flex !important; + } } \ No newline at end of file diff --git a/theme/index.hbs b/theme/index.hbs index d0294f6..d61aa55 100755 --- a/theme/index.hbs +++ b/theme/index.hbs @@ -57,14 +57,19 @@ + {{#if is_print }} + {{#toc}}{{/toc}} + {{/if}} + + {{#unless is_print }} - 实验环境 + 实验环境 {{ book_title }}
{{#previous}} - 上一章 + 上一章 {{/previous}} {{#next}} 下一章 @@ -73,20 +78,18 @@ {{/if}} {{#if print_enable}} - + {{/if}}
+ {{/unless}} - - {{#if is_print }} - {{#toc}}{{/toc}} - {{/if}} + {{#unless is_print }}