_layout.swig 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. <!DOCTYPE html>
  2. <html lang="{{ config.language }}">
  3. <head>
  4. {{ partial('_partials/head/head.swig', {}, {cache: theme.cache.enable}) }}
  5. {% include '_partials/head/head-unique.swig' %}
  6. {{- next_inject('head') }}
  7. <title>{% block title %}{% endblock %}</title>
  8. {{ partial('_third-party/analytics/index.swig', {}, {cache: theme.cache.enable}) }}
  9. {{ partial('_scripts/noscript.swig', {}, {cache: theme.cache.enable}) }}
  10. </head>
  11. <body itemscope itemtype="http://schema.org/WebPage">
  12. <div class="container{%- if theme.motion.enable %} use-motion{%- endif %}">
  13. <div class="headband"></div>
  14. <header class="header" itemscope itemtype="http://schema.org/WPHeader">
  15. <div class="header-inner">{% include '_partials/header/index.swig' %}</div>
  16. </header>
  17. {{ partial('_partials/widgets.swig', {}, {cache: theme.cache.enable}) }}
  18. <main class="main">
  19. <div class="main-inner">
  20. <div class="content-wrap">
  21. {% include '_partials/header/sub-menu.swig' %}
  22. <div class="content {% block class %}{% endblock %}">
  23. {% block content %}{% endblock %}
  24. </div>
  25. {% include '_partials/comments.swig' %}
  26. </div>
  27. {%- if theme.sidebar.display !== 'remove' %}
  28. {% block sidebar %}{% endblock %}
  29. {%- endif %}
  30. </div>
  31. </main>
  32. <footer class="footer">
  33. <div class="footer-inner">
  34. {% include '_partials/languages.swig' %}
  35. {{ partial('_partials/footer.swig', {}, {cache: theme.cache.enable}) }}
  36. {{ partial('_third-party/statistics/index.swig', {}, {cache: theme.cache.enable}) }}
  37. </div>
  38. </footer>
  39. </div>
  40. {{ partial('_scripts/index.swig', {}, {cache: theme.cache.enable}) }}
  41. {{ partial('_third-party/index.swig', {}, {cache: theme.cache.enable}) }}
  42. {%- if theme.pjax %}
  43. <div id="pjax">
  44. {%- endif %}
  45. {% include '_third-party/math/index.swig' %}
  46. {% include '_third-party/quicklink.swig' %}
  47. {{- next_inject('bodyEnd') }}
  48. {%- if theme.pjax %}
  49. </div>
  50. {%- endif %}
  51. </body>
  52. </html>