base.html 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. <!doctype html>
  2. {% include "layout/banner.html" %}
  3. {% assign title = page.title | default: layout.title %}
  4. <html lang="en"{% if layout-rtl %} dir="rtl" {% endif %}>
  5. <head>
  6. <meta charset="utf-8"/>
  7. <meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover"/>
  8. <meta http-equiv="X-UA-Compatible" content="ie=edge"/>
  9. <title>{% if title %}{{ title }} - {% endif %}{% if site.title %}{{ site.title }} - {% endif %}{{ site.description }}</title>
  10. {% if environment == 'preview' %}
  11. {% include "layout/analytics.html" %}
  12. <meta name="msapplication-TileColor" content="{{ site.themeColor }}"/>
  13. <meta name="theme-color" content="{{ site.themeColor }}"/>
  14. <meta name="apple-mobile-web-app-status-bar-style" content="black-translucent"/>
  15. <meta name="apple-mobile-web-app-capable" content="yes"/>
  16. <meta name="mobile-web-app-capable" content="yes"/>
  17. <meta name="HandheldFriendly" content="True"/>
  18. <meta name="MobileOptimized" content="320"/>
  19. <link rel="icon" href="{{ page | relative }}/favicon.ico" type="image/x-icon"/>
  20. <link rel="shortcut icon" href="{{ page | relative }}/favicon.ico" type="image/x-icon"/>
  21. <meta name="description" content="{{ page.description | default: 'Tabler comes with tons of well-designed components and features. Start your adventure with Tabler and make your dashboard great again. For free!' | escape }}"/>
  22. {% include "layout/og.html" %}
  23. {% endif %}
  24. {% include "layout/css.html" %}
  25. <style>
  26. @import url('https://rsms.me/inter/inter.css');
  27. </style>
  28. </head>
  29. {% assign layout-dark = layout-dark | default: site.layoutDark %}
  30. <body{% if layout.body-class or body-class %} class="{% if layout.body-class %} {{ layout.body-class }}{% endif %}{% if body-class %} {{ body-class }}{% endif %}"{% endif %}>
  31. <script src="{{ page | relative }}/preview/js/demo-theme{% if environment != 'development' %}.min{% endif %}.js{% if environment != 'development' %}?{{ 'now' | date: '%s' }}{% endif %}"></script>
  32. {{ content }}
  33. {% include "layout/modals-capture.html" %}
  34. {% include "layout/js.html" %}
  35. {% if site.debug and environment == 'development' %}
  36. {% include "layout/debug.html" %}
  37. {% endif %}
  38. </body>
  39. </html>